问题1描述
fatal error: opencv2/xfeatures2d.hpp: 没有那个文件或目录.
解决方案:
在opencv的安装文件里,找到 CMakeLists.txt,加入(注意修改路径)
include_directories("/home/zyl/ziyuan/opencv-4.4.0/opencv_contrib-4.4.0/modules/xfeatures2d/include")
问题2描述
/home/zyl/ziyuan/opencv-4.3.0/opencv_contrib-4.3.0/modules/xfeatures2d/test/test_features2d.cpp:51:10: fatal error: features2d/test/test_detectors_regression.impl.hpp: 没有那个文件或目录
#include “features2d/test/test_detectors_regression.impl.hpp”
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
解决方案:
在opencv的安装文件里,找到 CMakeLists.txt,加入

该博客详细记录了在Ubuntu18.04环境下,安装CUDA11.2、opencv4.4.0及其opencv_contrib-4.4.0过程中遇到的四个关键问题及解决方案。包括头文件缺失、编译错误、std::integer_sequence问题以及boost库文件缺失的问题。作者提供了修改CMakeLists.txt文件、更换ceres-solver版本以及手动下载缺失文件的解决办法。
最低0.47元/天 解锁文章
1836

被折叠的 条评论
为什么被折叠?



