1。/usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0:-1: error: error adding symbols: DSO missing fro
boost filesystem
boost.filesystem处理目录确实方便,于是本人使用cmake来加载的boost,但使用filesystem出现这一bug。
上网google,别人说要加上"-lboost_system",但我添加上仍然不好使用。
最后,抱着试试的心态使用了
target_link_libraries(ABC boost_system boost_filesystem)
2。编译时出现下列错误:error: undefined reference to `cv::imread(cv::String const&, int)'
undefined reference to 'cv::imread(cv::String const&, int)'
undefined reference to 'cv::String::deallocate()'
undefined reference to 'cv::imread(cv::String const&, int)'
undefined reference to 'cv::String::deallocate()'
undefined reference to 'cv::String::allocate(unsigned long)'
undefined reference to 'cv::String::allocate(unsigned long)'
undefined reference to 'cv::String::deallocate()'
undefined reference to 'cv::String::deallocate()'
解决方法:在CMakeLists.txt加入安装OpenCV的版本号:
将
find_package( OpenCV REQUIRED )
更改为
find_package( OpenCV 3 REQUIRED ) 。
3。Could not find a package configuration file – OpenCVConfig.cmake
I am playing nowadays with OpenCV for visual computing usin
boost filesystem
boost.filesystem处理目录确实方便,于是本人使用cmake来加载的boost,但使用filesystem出现这一bug。
上网google,别人说要加上"-lboost_system",但我添加上仍然不好使用。
最后,抱着试试的心态使用了
target_link_libraries(ABC boost_system boost_filesystem)
2。编译时出现下列错误:error: undefined reference to `cv::imread(cv::String const&, int)'
undefined reference to 'cv::imread(cv::String const&, int)'
undefined reference to 'cv::String::deallocate()'
undefined reference to 'cv::imread(cv::String const&, int)'
undefined reference to 'cv::String::deallocate()'
undefined reference to 'cv::String::allocate(unsigned long)'
undefined reference to 'cv::String::allocate(unsigned long)'
undefined reference to 'cv::String::deallocate()'
undefined reference to 'cv::String::deallocate()'
解决方法:在CMakeLists.txt加入安装OpenCV的版本号:
将
find_package( OpenCV REQUIRED )
更改为
find_package( OpenCV 3 REQUIRED ) 。
3。Could not find a package configuration file – OpenCVConfig.cmake
I am playing nowadays with OpenCV for visual computing usin

本文汇总了在Ubuntu16上编译LSD_SLAM时遇到的常见问题,包括DSO缺失错误、OpenCV版本不匹配导致的编译错误以及找不到OpenCVConfig.cmake文件的问题,并提供了相应的解决方法,如更新CMakeLists.txt配置、设置环境变量等。
最低0.47元/天 解锁文章
1万+





