[已解决] 编译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()

你可能感兴趣的:(安装软件,ubuntu,opencv,linux)