- 当pcl和gtsam同时link到某个可执行文件时就会产生error
Observations and Issues Noticed:
When CMakeLists.txt has "target_link_libraries(linkErr ${PCL_LIBRARIES})" the code works fine.
When that line is replaced with "target_link_libraries(linkErr ${PCL_LIBRARIES} gtsam)" the code gets the runtime error.
To help with debugging, additional observations are provided as a comment at the end of src/linkErr.cpp file.
- 解决办法:
- 重新编译gtsam,编译时选用和pcl一致的eigen
- GTSAM_USE_SYSTEM_EIGEN=On
- GTSAM_BUILD_WITH_MARCH_NATIVE=Off
https://groups.google.com/g/gtsam-users/c/jdySXchYVQg