JetsonHacksNano / CSI-Camera

Simple example of using a CSI-Camera (like the Raspberry Pi Version 2 camera) with the NVIDIA Jetson Developer Kit
Other
830 stars 286 forks source link

CV2 headers missing #20

Closed EnricoBeltramo closed 4 years ago

EnricoBeltramo commented 4 years ago

Describe the issue Please describe the issue When i try to compile simple_camera.cpp, I have error of cv2 includes missing:

simple_camera.cpp:10:10: fatal error: opencv2/opencv.hpp: No such file or directory

include <opencv2/opencv.hpp>

What version of L4T/JetPack L4T/JetPack version: nv-jetson-nano-sd-card-image-r32.3.1

What version of OpenCV OpenCV version: Missing???

Python Version Python version if applicable: 3

To Reproduce Steps to reproduce the behavior: For example, what command line did you run? g++ -std=c++11 -Wall -I/usr/lib/opencv simple_camera.cpp -L/usr/lib -lopencv_core -lopencv_highgui -lopencv_videoio -o simple_camera

Expected behavior A clear and concise description of what you expected to happen. compile without error

Additional context Add any other context about the problem here.

EnricoBeltramo commented 4 years ago

Fixed installing Opencv from source. I was expecting was already installed in jetson, but isn't.