- edited description
Couldn't build examples
Issue #360
resolved
Hello, I successfully installed GTSAM 4.0 on Ubuntu 16.04. Then, in order to build and run examples, I did the following procedure described in [examples/README.md].
(At examples) $ mkdir build
(At examples) $ cd build
(At examples/build) $ cmake ..
However, 'cmake ..' didn't work, producing some errors. To fix the errors, I added the following lines in [examples/CMakeLists.txt].
...
find_package(GTSAMCMakeTools)
include(GtsamTesting)
set(CXX_FLAGS "-lboost_system ${CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-std=c++11 -I /usr/local/include/gtsam/3rdparty/Eigen/ ${CMAKE_CXX_FLAGS}")
...
Then, 'cmake ..' worked. However, running the following command presented in [examples/README.md]
(At examples/build) $ make CameraResectioning
gave me another errors. The error messages are as follows:
...
[ 50%] Linking CXX executable CameraResectioning
/usr/bin/ld: CMakeFiles/CameraResectioning.dir/CameraResectioning.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
//usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
...
Is there any way to fix this issue? Thanks.
Comments (6)
-
reporter -
reporter - edited description
-
reporter - edited description
-
reporter - edited description
-
reporter - edited description
-
reporter - changed status to resolved
I know it was the matter of CMakeLists.txt, and I resolved the issue by utilizing the files of https://github.com/dongjing3309/gtsam-examples. Now it is working.
- Log in to comment