我下载了最新版本的 opencv 3.3.0 和 opencv_contrib,做了支持 CUDA 的 cmake,make 给了我:
....
[ 80%] Built target opencv_xfeatures2d_pch_dephelp
[ 80%] Built target pch_Generate_opencv_xfeatures2d
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/sift.cpp.o
/home/cesar/programas/instaladores/OpenCV/opencv_contrib-master/modules/xfeatures2d/src/sift.cpp: In member function ‘virtual void cv::xfeatures2d::SIFT_Impl::detectAndCompute(cv::InputArray, cv::InputArray, std::vector<cv::KeyPoint>&, cv::OutputArray, bool)’:
/home/cesar/programas/instaladores/OpenCV/opencv_contrib-master/modules/xfeatures2d/src/sift.cpp:1156:9: error: ‘removeDuplicatedSorted’ is not a member of ‘cv::KeyPointsFilter’
KeyPointsFilter::removeDuplicatedSorted( keypoints );
^
modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/build.make:670: fallo en las instrucciones para el objetivo 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/sift.cpp.o'
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/sift.cpp.o] Error 1
CMakeFiles/Makefile2:21949: fallo en las instrucciones para el objetivo 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all'
我在这里迷路了。我尝试将我的 cmake 从 3.5 更新到 3.8,并且建筑物在同一点停止。
谢谢你的帮助!