十六钧 2022-01-25 16:53 采纳率: 66.7%
浏览 105
已结题

做STDR simulator时运行catkin_make报错,如何解决?(操作系统-ubuntu)

按照古月居的教程,从github下完了程序之后,运行catkin_make出现如下报错

-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Could NOT find map_server (missing: map_server_DIR)
-- Could not find the required component 'map_server'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "map_server" with
any of the following names:

map_serverConfig.cmake
map_server-config.cmake

Add the installation prefix of "map_server" to CMAKE_PREFIX_PATH or set
"map_server_DIR" to a directory containing one of the above files. If
"map_server" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
stdr_simulator/stdr_server/CMakeLists.txt:4 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/paterocika/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/paterocika/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:1594:cmake_check_build_system] 错误 1
Invoking "make cmake_check_build_system" failed

应该是少东西,但是查了很多方法都不对

请教一下该如何解决这个问题

  • 写回答

1条回答 默认 最新

  • 陆宇杭 2022-01-25 17:10
    关注

    map_serverConfig.cmake
    map_server-config.cmake
    缺了这个东西,安装一下就好了

    sudo apt-get install ros-kinetic-map-server
    

    kinetic换成自己的ros版本

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 2月2日
  • 已采纳回答 1月25日
  • 创建了问题 1月25日

悬赏问题

  • ¥15 数据库原理及应用上机练习题
  • ¥15 征集Python提取PDF文字属性的代码
  • ¥15 如何联系真正的开发者而非公司
  • ¥15 有偿求苍穹外卖环境配置
  • ¥15 代码在keil5里变成了这样怎么办啊,文件图像也变了,
  • ¥20 Ue4.26打包win64bit报错,如何解决?(语言-c++)
  • ¥15 clousx6整点报时指令怎么写
  • ¥30 远程帮我安装软件及库文件
  • ¥15 关于#自动化#的问题:如何通过电脑控制多相机同步拍照或摄影(相机或者摄影模组数量大于60),并将所有采集的照片或视频以一定编码规则存放至规定电脑文件夹内
  • ¥20 深信服vpn-2050这台设备如何配置才能成功联网?