Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ask for Help] simple_camera.cpp:10:10: fatal error: opencv2/opencv.hpp: No such file or directory #37

Open
zinwalin opened this issue Mar 4, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@zinwalin
Copy link

zinwalin commented Mar 4, 2021

Describe the issue
jetson@nano:~/CSI-Camera$ g++ -std=c++11 -Wall -I/usr/lib/opencv simple_camera.cpp -L/usr/lib -lopencv_core -lopencv_highgui -lopencv_videoio -o simple_camera
simple_camera.cpp:10:10: fatal error: opencv2/opencv.hpp: No such file or directory
#include <opencv2/opencv.hpp>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.

What version of L4T/JetPack
L4T/JetPack version:
jetson@nano:~/CSI-Camera$ jetson_release

  • NVIDIA Jetson Nano (Developer Kit Version)
    • Jetpack 4.5.1 [L4T 32.5.1]
    • NV Power Mode: MAXN - Type: 0
    • jetson_stats.service: active
  • Libraries:
    • CUDA: 10.2.89
    • cuDNN: 8.0.0.180
    • TensorRT: 7.1.3.0
    • Visionworks: 1.6.0.501
    • OpenCV: 4.1.1 compiled CUDA: NO
    • VPI: ii libnvvpi1 1.0.15 arm64 NVIDIA Vision Programming Interface library
    • Vulkan: 1.2.70

What version of OpenCV
OpenCV version:
jetson@nano:~/CSI-Camera$ python
Python 2.7.17 (default, Sep 30 2020, 13:38:04)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import cv2
cv2.version
'4.1.1'

Python Version
Python version if applicable:
jetson@nano:/CSI-Camera$ python3 --version
Python 3.6.9
jetson@nano:
/CSI-Camera$ python --version
Python 2.7.17

To Reproduce
Steps to reproduce the behavior:
For example, what command line did you run?

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

Additional context
Add any other context about the problem here.

@zinwalin zinwalin added the bug Something isn't working label Mar 4, 2021
@RobotianViking
Copy link

Location of included OpenCV include files are placed in /usr/include/opencv4
Compiled it succesfully with
g++ -std=c++11 -Wall -I/usr/include/opencv4 simple_camera.cpp -L/usr/lib -lopencv_core -lopencv_highgui -lopencv_videoio -o simple_camera

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants