/usr/bin/ld:找不到 -lboost_serialization
/usr/bin/ld:找不到 -lboost_timer
/usr/bin/ld:找不到 -lboost_chrono
slam编译遇到的问题
一般就是两个原因,要么没有库,要么没链接上。网上有很多安装boost库的教程,但是也有链接的教程,不再赘述。
但是可能有第三个原因,就是slam的cmakelist.txt文件里,压根没设置
在slam功能包的cmakelist.txt文件里找到这一行
find_package(Boost COMPONENTS thread filesystem date_time system REQUIRED)
发现没有serialization timer chrono这三项,需要添加,在thread后面进行添加
find_package(Boost COMPONENTS thread serialization timer chrono filesystem date_time system REQUIRED)
添加之后再编译就行了。
如果问题还没解决,再考虑安装boost库和链接的问题
另外,安装boost库的参考文章:
https://blog.csdn.net/challenglistic/article/details/129097988