十六钧 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日

悬赏问题

  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示