CMake Error at CMakeLists.txt:23 (find_package):
By not providing "Findgazebo.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "gazebo", but
CMake did not find one.
Could not find a package configuration file provided by "gazebo_ros_pkgs"
with any of the following names:
gazebo_ros_pkgsConfig.cmake
gazebo_ros_pkgs-config.cmake
通过终端输入apt-cache search libgazebo查看存在的dev后缀的包

sudo apt install libgazebo-dev
安装即可
文章讲述了在CMakeLists.txt中遇到的FindPackage错误,指出项目请求了Gazebo和gazebo_ros_pkgs包的配置文件,但未找到。解决方法是通过终端使用`apt-cachesearchlibgazebo`查找相关包,然后执行`sudoaptinstalllibgazebo-dev`进行安装。
1872

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



