DrawingProcess
드프 DrawingProcess
DrawingProcess
전체 방문자
오늘
어제
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
  • 분류 전체보기 (965) N
    • Profile & Branding (23) N
      • Career (16) N
    • IT Trends (254)
      • Conference, Faire (Experien.. (31)
      • News (187)
      • Youtube (19)
      • TED (8)
      • Web Page (2)
      • IT: Etc... (6)
    • Contents (97)
      • Book (66)
      • Lecture (31)
    • Project Process (94)
      • Ideation (0)
      • Study Report (34)
      • Challenge & Award (22)
      • 1Day1Process (5)
      • Making (5)
      • KRC-FTC (Team TC(5031, 5048.. (10)
      • GCP (GlobalCitizenProject) (15)
    • Study: ComputerScience(CS) (72)
      • CS: Basic (9)
      • CS: Database(SQL) (5)
      • CS: Network (14)
      • CS: OperatingSystem (3)
      • CS: Linux (39)
      • CS: Etc... (2)
    • Study: Software(SW) (95)
      • SW: Language (29)
      • SW: Algorithms (1)
      • SW: DataStructure & DesignP.. (1)
      • SW: Opensource (15)
      • SW: Error Bug Fix (43)
      • SW: Etc... (6)
    • Study: Artificial Intellige.. (149)
      • AI: Research (1)
      • AI: 2D Vision(Det, Seg, Tra.. (35)
      • AI: 3D Vision (70)
      • AI: MultiModal (3)
      • AI: SLAM (0)
      • AI: Light Weight(LW) (3)
      • AI: Data Pipeline (7)
      • AI: Machine Learning(ML) (1)
    • Study: Robotics(Robot) (33)
      • Robot: ROS(Robot Operating .. (9)
      • Robot: Positioning (8)
      • Robot: Planning & Control (7)
    • Study: DeveloperTools(DevTo.. (83)
      • DevTool: Git (12)
      • DevTool: CMake (13)
      • DevTool: NoSQL(Elastic, Mon.. (25)
      • DevTool: Container (17)
      • DevTool: IDE (11)
      • DevTool: CloudComputing (4)
    • 인생을 살면서 (64)
      • 나의 취미들 (7)
      • 나의 생각들 (42)
      • 여행을 떠나자~ (10)
      • 분기별 회고 (5)

개발자 명언

“ 매주 목요일마다 당신이 항상 하던대로 신발끈을 묶으면 신발이 폭발한다고 생각해보라.
컴퓨터를 사용할 때는 이런 일이 항상 일어나는데도 아무도 불평할 생각을 안 한다. ”

- Jef Raskin

맥의 아버지 - 애플컴퓨터의 매킨토시 프로젝트를 주도

인기 글

최근 글

최근 댓글

티스토리

hELLO · Designed By 정상우.
DrawingProcess

드프 DrawingProcess

Study: Software(SW)/SW: Error Bug Fix

[Error Fix] Solved '/usr/bin/ld: cannot find - lBoost::serialization' (Feat. LIO SLAM, gtsam, boost)

2023. 10. 17. 04:56
반응형

# Problem

When I was build LIO SLAM, I got a following Error

Errors     << aloam_velodyne:make /home/sjchoi/catkin_ws/logs/aloam_velodyne/build.make.016.log
/usr/bin/ld: cannot find -lBoost::serialization
/usr/bin/ld: cannot find -lBoost::thread
/usr/bin/ld: cannot find -lBoost::timer
/usr/bin/ld: cannot find -lBoost::chrono
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/alaserPGO.dir/build.make:299: /home/sjchoi/catkin_ws/devel/.private/aloam_velodyne/lib/aloam_velodyne/alaserPGO] Error 1

# Solution

First of all, install Boost Library. then, you need to modify CMakeLists.txt.

set(Boost_USE_STATIC_LIBS OFF) 
set(Boost_USE_MULTITHREADED ON)  
set(Boost_USE_STATIC_RUNTIME OFF) 
find_package(Boost COMPONENTS serialization timer thread chrono)
include_directories(
  include
  ${catkin_INCLUDE_DIRS} 
  ${PCL_INCLUDE_DIRS}
  ${CERES_INCLUDE_DIRS}
  ${OpenCV_INCLUDE_DIRS}
  ${GTSAM_INCLUDE_DIR}
  ${Boost_INCLUDE_DIRS}
)
...
target_link_libraries(alaserPGO 
  ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${CERES_LIBRARIES}
  ${OpenMP_CXX_FLAGS} ${Boost_INCLUDE_DIRS}
  gtsam
)

If you find an error that you can't find Boost::serialization in the future, you can add the following code.

set(Boost_USE_STATIC_LIBS OFF) 
set(Boost_USE_MULTITHREADED ON)  
set(Boost_USE_STATIC_RUNTIME OFF) 
find_package(Boost COMPONENTS serialization timer thread chrono)
include_directories(
  include
  ${GTSAM_INCLUDE_DIR}
  ${Boost_INCLUDE_DIRS}
)

error like: CMake Error at /usr/local/lib/cmake/GTSAM/GTSAM-exports.cmake:68 (add_library): The link interface of target "gtsam" contains: Boost::serialization

# Reference

  • [Blog]/usr/bin/ld: cannot find -lBoost::serialization: https://blog.csdn.net/weixin_42650491/article/details/119818539
  • [StackOverFlow] How do you add Boost libraries in CMakeLists.txt?:  https://stackoverflow.com/questions/6646405/how-do-you-add-boost-libraries-in-cmakelists-txt
반응형
저작자표시 비영리 변경금지 (새창열림)

'Study: Software(SW) > SW: Error Bug Fix' 카테고리의 다른 글

[Error fix] Solved '[RTShaderSystem.cc:480] Unable to find shader lib. Shader generating will fail. Your GAZEBO_RESOURCE_PATH is probably improperly set. Have you sourced <prefix>/share/gazebo/setup.bash?'  (0) 2023.11.15
[Error fix] Solved "Error: package 'rviz_common' not found"(rviz2, colcon build)  (1) 2023.10.28
[Error Fix] Could not find a package configuration file provided by "GTSAM" with any of the following names(gtsam, Eigen)  (0) 2023.10.14
[Error Fix] Solved 'fatal error: fast_lio/Pose6D.h: No such file or directory #include <fast_lio/Pose6D.h> ^~~~~~~~~~~~~~~~~~~ compilation terminated.'(feat. FAST-LIO, FAST-LIO-LC)  (0) 2023.10.13
[Error Fix] Solved'Failed to connect. Is Docker running?'(feat. VSCode Docker docker.sock)  (0) 2023.10.09
    'Study: Software(SW)/SW: Error Bug Fix' 카테고리의 다른 글
    • [Error fix] Solved '[RTShaderSystem.cc:480] Unable to find shader lib. Shader generating will fail. Your GAZEBO_RESOURCE_PATH is probably improperly set. Have you sourced <prefix>/share/gazebo/setup.bash?'
    • [Error fix] Solved "Error: package 'rviz_common' not found"(rviz2, colcon build)
    • [Error Fix] Could not find a package configuration file provided by "GTSAM" with any of the following names(gtsam, Eigen)
    • [Error Fix] Solved 'fatal error: fast_lio/Pose6D.h: No such file or directory #include <fast_lio/Pose6D.h> ^~~~~~~~~~~~~~~~~~~ compilation terminated.'(feat. FAST-LIO, FAST-LIO-LC)
    DrawingProcess
    DrawingProcess
    과정을 그리자!

    티스토리툴바