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

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

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度