当运行下面命令报错时
ros2 run turtlesim turtlesim_node
错误信息:
/opt/ros/foxy/lib/turtlesim/turtlesim_node: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
最佳答案
我用这个方法,来自https://answers.ros.org/question/354808/error-running-turtlesim-noetic/ .
关键是一定要找到你的libQtCore所在的位置,不要直接复制别人的答案
你可以试试:
whereis libQt5Core.so.5
复制那个地址
sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
最后再试试上面的命令,发现已经可以了
标签:文件,libQt5Core,so.5,file,turtlesim,ros From: https://www.cnblogs.com/databank/p/18009168