opencv 编译常见错误

报错:

fatal error: boostdesc_bgm.i: No such file or directory #include "boostdesc_bgm.i"

解决:

https://www.cnblogs.com/arxive/p/11778731.html

下载文件 链接:https://pan.baidu.com/s/1r5gbPk6ogt0xUlXxmjLuoA
提取码:1234
--来自百度网盘超级会员V4的分享

解压后放到

 opencv_contrib/modules/xfeatures2d/src/

 

报错:

fatal error: opencv2/xfeatures2d.hpp: No such file or directory
   44 | #include <opencv2/xfeatures2d.hpp

解决:

cmake -DBUILD_opencv_xfeatures2d=OFF ..

或者

解决办法:
在<你的路径>/opencv-3.4.0/modules/stitching/ CMakeLists.txt增加以下内容:
INCLUDE_DIRECTORIES("/works/opencv-3.4.0/opencv_contrib-3.4.0/modules/xfeatures2d/include")

报错:

 fatal error: opencv2/sfm/conditioning.hpp: No such file or directory

 

posted @ 2024-06-21 23:13  dsfsadfdgd  阅读(6)  评论(0编辑  收藏  举报