Installing Multi Camera Adapter V2.2 the C++ code fails to compile

I already have a dev build of opencv 4 on my Raspberry Pi so I did not run the “sudo apt-get install libopencv-dev” command during setup. But it seems to have caused a problem.

When I run the Makefile I get an error that there is no such file or directory for “opencv2/opencv_modules.hpp”

Is there a simple solution? Thanks!


Also I am a Python user and have little experience with makefiles. Here is the makefile provided by Arducam:

CXX = g++
CXXFLAGS = pkg-config --cflags --libs opencv #sudo apt-get install libopencv-dev
LIBS = -lwiringPi
ODIR = obj
_OBJ = mutiCamOpenCV.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))

$(ODIR)/%.o: %.cpp
@mkdir -p $(@D)
$(CXX) -c -o [email protected] $< $(CXXFLAGS)

previewOpencv: $(OBJ)
$(CXX) $^ -o [email protected] $(CXXFLAGS) $(LIBS)


rm -rf $(ODIR)/*


The opencv_modules.hpp is the opencv header file. You should install the opencv usign sudo apt-get install libopencv-dev command firstly.