catkin_make報錯Invoking "make cmake_check_build_system" failed
按照官網(wǎng)的要求安裝好了ROS Melodic(Ubuntu18.04.5),但是catkin_make命令一直報錯。
網(wǎng)上雖然有很多catkin_make報錯的解決辦法,但是沒有出現(xiàn)我這個報錯信息的。
Invoking "make cmake_check_build_system" failed
還是需要從具體報錯信息里面看,
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "rospy" with any of
the following names:
rospyConfig.cmake
rospy-config.cmake
Add the installation prefix of "rospy" to CMAKE_PREFIX_PATH or set
"rospy_DIR" to a directory containing one of the above files. If "rospy"
provides a separate development package or SDK, be sure it has been
installed.
缺少rospy
軟件包。
網(wǎng)上有大佬針對提示缺少gazebo_ros_control
功能包給出的解決方案是
sudo apt-get install ros-kinetic-gazebo-ros-control
依樣畫葫蘆寫了我的安裝命令
sudo apt-get install ros-melodic-rospy
之后再運行catkin_make
就沒有報錯信息了磁携。
網(wǎng)上搜到的catkin_make報錯類型五花八門,我也不清楚為什么同樣的安裝方式會出現(xiàn)不同軟件包的缺失良风。自己解決問題的經(jīng)驗是要多看看自己電腦的詳細報錯信息谊迄,找到準(zhǔn)確的缺失內(nèi)容以后再去找方法。