在树莓派上基于raspbian(Buster)安装ros
参考网页:http://wiki.ros.org/ROSberryPi/Installing ROS Kinetic on the Raspberry Pi
在执行:sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic时
首先遇到错误:'boost/tr1/unordered_set.hpp' file not found
这在参考网页中有提到,On Raspbian Buster the compilation may fail with "'boost/tr1/unordered_set.hpp' file not found". This is because rospack version used in Kinetic is dependent on boost 1.58. To fix this error try installing boost 1.58 manually.之后便手动下载安装boost_1.58.0
接着遇到第二个错误:
CMake Error at usr/share/cmake/Modules/FindBoost.cmake:1138 (message): Unable to find the requested Boost libraries. Unable to find the Boost header files. Please set BOOST_ROOT to the root directory containing Boost or BOOST_INCLUDEDIR to the directory con

在树莓派上安装ROS Kinetic时,遇到Boost库找不到的错误。尝试重装和手动下载安装boost_1.58.0未果,也未成功通过修改CMakeLists.txt或FindBoost.cmake解决。最终,通过在命令行设置环境变量的方式成功解决,例如设置BOOST_ROOT为boost文件夹路径。
最低0.47元/天 解锁文章
593

被折叠的 条评论
为什么被折叠?



