-
Notifications
You must be signed in to change notification settings - Fork 5.8k
make error with opencv-3.4.0: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory #1534
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
Comments
I have search for other issue about this problem and try those solution but it does not work for me. and most of them is for opencv 3.2 |
i met the same problem , i have no idea |
the same problem... |
I've come across the same issue, and solved by cmake -DBUILD_opencv_xfeatures2d=OFF .. according to #1131 |
the same problem for 3.4.3 |
-DBUILD_opencv_xfeatures2d=OFF is not a "solution". The contrib xfeatures2d is not supposed to depend on CUDA, does it ? |
解决办法: INCLUDE_DIRECTORIES("/works/opencv-3.4.0/opencv_contrib-3.4.0/modules/xfeatures2d/include") <你的路径>/opencv-3.4.0/modules/stitching/ CMakeLists.txt |
My solution is that copying the folder"modules/xfeatures2d/include/opencv2/" to the area where the error occurs. |
I used the way that copying the folder"modules/xfeatures2d/include/opencv2/" to the area ,however ,I failed.so,who has the better way? |
copy folder? I copy the complete path where cuda.hpp is to the area where the error, I get success on make. |
could you please show your complete path to me? i really don't know where the path of the cuda.hpp is.thanks |
okay, I added this path "/home/cw/mytool/opencv-3.4.6/opencv_contrib-3.4.6/modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp" replacing 52 line that is "opencv2/xfeatures2d/cuda.hpp" in file which path is "opencv-3.4.0/modules/stitching/include/opencv2/stitching/detail/matchers.hpp" |
what I did in my docker is to do this: sed -i '6i INCLUDE_DIRECTORIES\(\"/root/opencv_contrib-3.4.1/modules/xfeatures2d/include\"\)' /root/opencv/modules/stitching/CMakeLists.txt Please modify the line number |
@rancheng If I just write |
System information (version)
my cmake configuration is:
but when i make -j8, i got error:
The text was updated successfully, but these errors were encountered: