Closed Judgement9882 closed 1 month ago
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.
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
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
/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?
Hello! Is the question still relevant? If it is, I'll triage it.
[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?