ArduCAM / ArduCAM_USB_Camera_Shield

This is the repository for ArduCAM USB Camera Shield
126 stars 69 forks source link

NVidia Jetson - Compilation error #140

Open Schuck84 opened 3 years ago

Schuck84 commented 3 years ago

Hello, when I try to compile the ArduCam_Demo on my NVidia Jetson, I get the following error. I have checked, the libopencv, libopencv-dev ect. is installed, I can't install them new with apt get install libopencv Could you give me some advice how to solve the issue?

Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found ArduCam_Demo.cpp:18:10: fatal error: opencv2/opencv.hpp: No such file or directory

include <opencv2/opencv.hpp>

      ^~~~~~~~~~~~~~~~~~~~

compilation terminated. makefile:8: recipe for target 'ArduCam_Demo' failed make: *** [ArduCam_Demo] Error 1

Grungeby52 commented 3 years ago

Hi, I encountered this error, you can try change opencv --> opencv4 in makefile. The problem for me was solved. And You should use opencv 4.5.22