sed -i 's/++11/++14/g' CMakeLists.txt
./build.sh
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/data/code/opensource/ORB_SLAM3/Examples/ROS
sed -i 's/++11/++14/g' Examples/ROS/ORB_SLAM3/CMakeLists.txt
./build_ros.sh
---------------------------------------------------------------------------------------------------------------------------
error: ‘slots_reference’ was not declared in this scope
slove:
sed -i 's/++11/++14/g' CMakeLists.txt
----------------------------------------------------------------------------------------------------------------------------
Could NOT find PythonInterp: Found unsuitable version "2.7.18", but required is at least "3" (found /usr/bin/python)
;
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 2
ImportError: No module named rospkg
slove:
export PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages
------------------------------------------------------------------------------------------------------------------------------
sudo rosdep init及解决方法
查阅很多经验贴后我发现这个问题主要是因为网络设置的问题,没有办法登录到国外的网上。
我自己使用的有效的解决办法如下:
#打开hosts文件
sudo gedit /etc/hosts
#在文件末尾添加
151.101.84.133 raw.githubusercontent.com
#保存后退出再尝试
————————————————
版权声明:本文为CSDN博主「YoloXX」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_43470275/article/details/109183600
---------------------------------------------------------------------------------------------------------------------------------