please help to solve this error.
[ 11%] Built target thirdparty
[ 16%] Building CXX object CMakeFiles/val3dity.dir/src/geomtools.cpp.o
[ 22%] Building CXX object CMakeFiles/val3dity.dir/src/input.cpp.o
[ 27%] Building CXX object CMakeFiles/val3dity.dir/src/main.cpp.o
[ 33%] Building CXX object CMakeFiles/val3dity.dir/src/validate_prim_toporel.cpp.o
[ 38%] Building CXX object CMakeFiles/val3dity.dir/src/validate_shell.cpp.o
[ 44%] Linking CXX executable val3dity
/usr/bin/ld: CMakeFiles/val3dity.dir/src/main.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
//usr/lib/x86_64-linux-gnu/libboost_system.so.1.62.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/val3dity.dir/build.make:466: recipe for target 'val3dity' failed
make[2]: * [val3dity] Error 1
CMakeFiles/Makefile2:680: recipe for target 'CMakeFiles/val3dity.dir/all' failed
make[1]: [CMakeFiles/val3dity.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: ** [all] Error 2
@vinodvin369 , have you solved this problem, I meet the similar problem
Hello,
I saw this PR #507 by rdelfin. It can solve this issue.
open u Example/ROS/ORB-SLAM2/CMakelist.txt
and rewrite as the following :
find_package(Eigen3 3.1.0 REQUIRED)
find_package(Pangolin REQUIRED)
+find_package(Boost COMPONENTS system)
include_directories(
${PROJECT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/../../../
${PROJECT_SOURCE_DIR}/../../../include
${Pangolin_INCLUDE_DIRS}
+${Boost_INCLUDE_DIRS}
)
set(LIBS
${OpenCV_LIBS}
${EIGEN3_LIBS}
${Pangolin_LIBRARIES}
+${Boost_LIBRARIES}
${PROJECT_SOURCE_DIR}/../../../Thirdparty/DBoW2/lib/libDBoW2.so
${PROJECT_SOURCE_DIR}/../../../Thirdparty/g2o/lib/libg2o.so
${PROJECT_SOURCE_DIR}/../../../lib/libORB_SLAM2.so
Thank you a million
Most helpful comment
Hello,
I saw this PR #507 by rdelfin. It can solve this issue.
open u Example/ROS/ORB-SLAM2/CMakelist.txt
and rewrite as the following :
find_package(Eigen3 3.1.0 REQUIRED)
find_package(Pangolin REQUIRED)
+find_package(Boost COMPONENTS system)
include_directories(
${PROJECT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/../../../
${PROJECT_SOURCE_DIR}/../../../include
${Pangolin_INCLUDE_DIRS}
+${Boost_INCLUDE_DIRS}
)
set(LIBS
${OpenCV_LIBS}
${EIGEN3_LIBS}
${Pangolin_LIBRARIES}
+${Boost_LIBRARIES}
${PROJECT_SOURCE_DIR}/../../../Thirdparty/DBoW2/lib/libDBoW2.so
${PROJECT_SOURCE_DIR}/../../../Thirdparty/g2o/lib/libg2o.so
${PROJECT_SOURCE_DIR}/../../../lib/libORB_SLAM2.so