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

做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日

悬赏问题

  • ¥20 电脑拓展屏桌面被莫名遮挡
  • ¥20 ensp,用局域网解决
  • ¥15 Python语言实验
  • ¥15 我每周要在投影仪优酷上自动连续播放112场电影,我每一周遥控操作一次投影仪,并使得电影永远不重复播放,请问怎样操作好呢?有那么多电影看吗?
  • ¥20 电脑重启停留在grub界面,引导出错需修复
  • ¥15 matlab透明图叠加
  • ¥50 基于stm32l4系列 使用blunrg-ms的ble gatt 创建 hid 服务失败
  • ¥150 计算DC/DC变换器平均模型中的参数mu
  • ¥25 C语言代码,大家帮帮我
  • ¥15 请问以下文字内容及对应编码是用了什么加密算法或压缩算法呢?