Thanks for your post. I have tried others like this one and I cannot get past this error when trying to install on Raspbian. Below is my cmake command that does not include the explicit python version parameters.
Is OpenCV only supported with python 3 and can this be why I get the following results?
[ 96%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/opencv_stitching_pch_dephelp.cxx.o
In file included from /home/pi/src/opencv-3.4.1/modules/stitching/include/opencv2/stitching.hpp:49:0,
from /home/pi/src/opencv-3.4.1/modules/stitching/src/precomp.hpp:59,
from /home/pi/src/opencv-3.4.1/build/modules/stitching/opencv_stitching_pch_dephelp.cxx:1:
/home/pi/src/opencv-3.4.1/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
Thanks for your post. I have tried others like this one and I cannot get past this error when trying to install on Raspbian. Below is my cmake command that does not include the explicit python version parameters.
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_opencv_java=OFF -D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.4.1/modules -D WITH_CUDA=OFF ..
Is OpenCV only supported with python 3 and can this be why I get the following results?
[ 96%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/opencv_stitching_pch_dephelp.cxx.o In file included from /home/pi/src/opencv-3.4.1/modules/stitching/include/opencv2/stitching.hpp:49:0, from /home/pi/src/opencv-3.4.1/modules/stitching/src/precomp.hpp:59, from /home/pi/src/opencv-3.4.1/build/modules/stitching/opencv_stitching_pch_dephelp.cxx:1: /home/pi/src/opencv-3.4.1/modules/stitching/include/opencv2/stitching/detail/matchers.hpp:52:42: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
include "opencv2/xfeatures2d/cuda.hpp"
compilation terminated. modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/build.make:62: recipe for target 'modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/opencv_stitching_pch_dephelp.cxx.o' failed make[2]: [modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/opencv_stitching_pch_dephelp.cxx.o] Error 1 CMakeFiles/Makefile2:8204: recipe for target 'modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/all' failed make[1]: [modules/stitching/CMakeFiles/opencv_stitching_pch_dephelp.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
I have been working on this for three days with little success. Any suggestions will be greatly appreciated.