ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I have a pi4b with buster, just encountered the same problem, the reason seems to be that the compiler gcc-8 version is too high, and does not match boost1.58, I switched to gcc-5 and it worked, the record is as follows:
1, uninstall libboost1.67-dev, and execute 'sudo apt autoremove' to clean up
2, install libboost1.58-dev and libboost1.58-all-dev
3, delete build_isolated and devel_isolated folders in the ~/ros_catkin_ws directory (important!!! otherwise the compilation will still fail even if you switch to gcc-5)
4, apt install gcc-5 and g++-5 and switch the default compiler to them(please Google how to switch)
5, gcc -v g++ -v to confirm that the version is 5.5.0, than recompilation can pass
6, if you wish, switch back to gcc-8.
Good luck, and please tell me if it work on your pi4 ~
2 | No.2 Revision |
I have a pi4b with buster, when I tried to install ros kinetic ,I just encountered the same problem, the reason seems to be that the C compiler gcc-8 (gcc-8) version is too high, and does not match boost1.58, I switched to gcc-5 and fortunately it worked, the record is I've recorded my steps as follows:
1, uninstall libboost1.67-dev, libboost1.67-dev, and execute 'sudo 'sudo apt autoremove' autoremove' to clean up
2, install libboost1.58-dev and libboost1.58-dev and libboost1.58-all-dev
3, delete build_isolated and devel_isolated build_isolated and devel_isolated folders in the ~/ros_catkin_ws directory (important!!! directory, you may need sudo to do this ( important!!! otherwise the compilation will still fail even if you switch you've switched to gcc-5)
4, apt install gcc-5 and g++-5 gcc-5 and g++-5 and switch the default compiler to them(please Google how to switch)
5, gcc -v g++ -v to confirm that the version is 5.5.0, than the recompilation can passshould be successful.
6, if you wish, switch back to gcc-8.
Good luck, and please tell me if it work on your pi4 ~
3 | No.3 Revision |
I have a pi4b with buster, when I tried to install ros kinetic ,I just encountered the same problem, the reason seems to be that the C compiler (gcc-8) version is too high, and does not match boost1.58, I switched to gcc-5 and fortunately it worked, I've recorded my steps as follows:
1, uninstall libboost1.67-dev, and execute 'sudo apt autoremove' to clean up
2, install libboost1.58-dev and libboost1.58-all-dev
3, delete build_isolated and devel_isolated folders in the ~/ros_catkin_ws directory, you may need sudo to do this ( important!!! otherwise the compilation will still fail even if you've switched to gcc-5)
4, apt install gcc-5 and g++-5 and switch the default compiler to them(please Google how to switch)
5, gcc -v g++ -v to confirm that the version is 5.5.0, than then the recompilation should be successful.
6, if you wish, switch back to gcc-8.
Good luck, and please tell me if it work on your pi4 ~