Skip to content

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

@zinwalin

Description

@zinwalin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions