我是靠谱客的博主 贪玩小蝴蝶,最近开发中收集的这篇文章主要介绍[已解决] 编译openmvs出现: undefined reference to symbol ‘_ZN5boost6system15system_categoryEv‘,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
#ubuntu16.04 配置openmvg与mvs
系统介绍:
ubuntu 16.04
Eigen 3.3.7
Ceres-solver 1.14.0
vcglib 1.0.1
编译openmvs出现: undefined reference to symbol ‘_ZN5boost6system15system_categoryEv’
FIND_PACKAGE(Boost ${SYSTEM_PACKAGE_REQUIRED} COMPONENTS filesystem iostreams program_options system serialization)
if(Boost_FOUND)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
ADD_DEFINITIONS(${Boost_DEFINITIONS} -D_USE_BOOST)
# LINK_DIRECTORIES(${Boost_LIBRARIES})
# LINK_DIRECTORIES(${Boost_LIBRARY_DIRS} ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} )
LIST(APPEND OpenMVS_EXTRA_LIBS ${Boost_LIBRARIES}) #新添加
SET(_USE_BOOST TRUE)
else()
MESSAGE("-- Can't find boost")
endif()
FIND_PACKAGE(Eigen ${SYSTEM_PACKAGE_REQUIRED})
if(EIGEN_FOUND)
INCLUDE_DIRECTORIES(${EIGEN_INCLUDE_DIRS})
ADD_DEFINITIONS(${EIGEN_DEFINITIONS} -D_USE_EIGEN)
SET(_USE_EIGEN TRUE)
endif()
FIND_PACKAGE(OpenCV ${SYSTEM_PACKAGE_REQUIRED})
if(OpenCV_FOUND)
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
ADD_DEFINITIONS(${OpenCV_DEFINITIONS})
LIST(APPEND OpenMVS_EXTRA_LIBS ${OpenCV_LIBS}) #新添加
SET(_USE_OPENCV TRUE)
MESSAGE(STATUS "OpenCV ${OpenCV_VERSION} found (include: ${OpenCV_INCLUDE_DIRS})")
else()
MESSAGE("-- Can't find OpenCV. Please specify OpenCV directory using OpenCV_DIR variable")
endif()
最后
以上就是贪玩小蝴蝶为你收集整理的[已解决] 编译openmvs出现: undefined reference to symbol ‘_ZN5boost6system15system_categoryEv‘的全部内容,希望文章能够帮你解决[已解决] 编译openmvs出现: undefined reference to symbol ‘_ZN5boost6system15system_categoryEv‘所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复