Skip to content
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

编译出错 #3

Open
wq-july opened this issue Jul 14, 2022 · 3 comments
Open

编译出错 #3

wq-july opened this issue Jul 14, 2022 · 3 comments

Comments

@wq-july
Copy link

wq-july commented Jul 14, 2022

你好,我在Ubuntu18.04下手动下载编译opencv3.2.0并且把CMakeLists.txt文件的opencv都指定了路径,最终编译到96%报错。

/home/july/Project/Muti_KF_vio/orb_slam2_cg-ubuntu1804/orbslam2/lib/liborbslam2_core.so: undefined reference to `cv::line_descriptor::BinaryDescriptor::createBinaryDescriptor()'

/home/july/Project/Muti_KF_vio/orb_slam2_cg-ubuntu1804/orbslam2/lib/liborbslam2_core.so: undefined reference to `cv::line_descriptor::BinaryDescriptorMatcher::match(cv::Mat const&, cv::Mat const&, std::vector<cv::DMatch, std::allocator<cv::DMatch> >&, cv::Mat const&) const'

/home/july/Project/Muti_KF_vio/orb_slam2_cg-ubuntu1804/orbslam2/lib/liborbslam2_core.so: undefined reference to `cv::line_descriptor::BinaryDescriptorMatcher::createBinaryDescriptorMatcher()'

collect2: error: ld returned 1 exit status

orbslam2_ros/CMakeFiles/MonoLine.dir/build.make:181: recipe for target '/home/july/Project/Muti_KF_vio/orb_slam2_cg-

ubuntu1804/platforms/ros_wrapper/devel/lib/orbslam2_ros/MonoLine' failed

make[2]: *** [/home/july/Project/Muti_KF_vio/orb_slam2_cg-ubuntu1804/platforms/ros_wrapper/devel/lib/orbslam2_ros/MonoLine] Error 1

CMakeFiles/Makefile2:1057: recipe for target 'orbslam2_ros/CMakeFiles/MonoLine.dir/all' failed
@wq-july
Copy link
Author

wq-july commented Jul 15, 2022

您好,我通过安装opencv对应的contrib模块解决了问题,我发现cv::line_descriptor是属于contrib中的模块。

@cggos
Copy link
Owner

cggos commented Jul 15, 2022

@July-creater 在Ubuntu18.04,我是通过 sudo apt install libopencv-dev 安装的opencv3.2

@wq-july
Copy link
Author

wq-july commented Jul 16, 2022

好的谢谢,我在虚拟机上试了一下,也成功了!!非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants