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

[Error] fatal error: opencv2/opencv_modules.hpp: No such file or directory #4

Open
Judgement9882 opened this issue Aug 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Judgement9882
Copy link

[Error] fatal error: opencv2/opencv_modules.hpp: No such file or directory

Device : Raspberry Pi 4 Model B Rev 1.5
OS : "Raspbian GNU/Linux 10 (buster)"
gcc version : gcc (Raspbian 8.3.0-6+rpi1) 8.3.0

Hello! I tried to build this project, but I cannot do anything because of this error.

result

g++ -Wall -g -Wno-strict-aliasing -I. -Isource -Imodel-parameters -Itflite-model -Ithird_party/ -Os -DNDEBUG -DEI_CLASSIFIER_ENABLE_DETECTION_POSTPROCESS_OP -g -DEI_CLASSIFIER_USE_FULL_TFLITE=1 -Itensorflow-lite/ -Iopencv/build_opencv/ -Iopencv/opencv/include -Iopencv/opencv/3rdparty/include -Iopencv/opencv/3rdparty/quirc/include -Iopencv/opencv/3rdparty/carotene/include -Iopencv/opencv/3rdparty/ittnotify/include -Iopencv/opencv/3rdparty/openvx/include -Iopencv/opencv/modules/video/include -Iopencv/opencv/modules/flann/include -Iopencv/opencv/modules/core/include -Iopencv/opencv/modules/stitching/include -Iopencv/opencv/modules/imgproc/include -Iopencv/opencv/modules/objdetect/include -Iopencv/opencv/modules/gapi/include -Iopencv/opencv/modules/world/include -Iopencv/opencv/modules/ml/include -Iopencv/opencv/modules/imgcodecs/include -Iopencv/opencv/modules/dnn/include -Iopencv/opencv/modules/dnn/src/vkcom/include -Iopencv/opencv/modules/dnn/src/ocl4dnn/include -Iopencv/opencv/modules/dnn/src/tengine4dnn/include -Iopencv/opencv/modules/videoio/include -Iopencv/opencv/modules/highgui/include -Iopencv/opencv/modules/features2d/include -Iopencv/opencv/modules/ts/include -Iopencv/opencv/modules/photo/include -Iopencv/opencv/modules/calib3d/include -std=c++14 -c source/camera.cpp -o source/camera.o
In file included from source/camera.cpp:24:
opencv/opencv/include/opencv2/opencv.hpp:48:10: fatal error: opencv2/opencv_modules.hpp: No such file or directory
#include "opencv2/opencv_modules.hpp"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:105: source/camera.o] Error 1

I installed opencv 4.5.2 by using "build-opencv-linux.sh" file.

When building, I proceeded with the

$ APP_CAMERA=1 TARGET_LINUX_ARMV7=1 USE_FULL_TFLITE=1 make -j

command.

And to solve the error, I used the following command to find the "modules.hpp" file.

$ sudo find / -iname "*opencv*" | grep "modules.hpp

result

/home/pi/example-standalone-inferencing-linux/opencv/opencv/cmake/templates/opencv_modules.hpp.in

I could not find the "modules.hpp" file.

What can I do?

@AIWintermuteAI AIWintermuteAI added the bug Something isn't working label Oct 28, 2022
@AIWintermuteAI
Copy link
Contributor

Hello! Is the question still relevant? If it is, I'll triage it.

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