找回密码
 立即注册
搜索
查看: 9761|回复: 1

修改msg文件后cmake报错

[复制链接]

4

主题

7

帖子

25

积分

新手上路

Rank: 1

积分
25
发表于 2021-4-2 17:55:49 | 显示全部楼层 |阅读模式
本来打算在 自定义功能包的msg文件里面加一个bool型flag,但是加上之后编译出现如下报错:(删除这个变量就能编译成功)
CMake Error at /opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  
  execute_process(/home/wheeltec/wheeltec_robot/build/catkin_generated/env_cached.sh
  "/usr/bin/python2" "/usr/bin/empy" "--raw-errors" "-F"
  "/home/wheeltec/wheeltec_robot/build/ball_find/cmake/ball_find-genmsg-context.py"
  "-o"
  "/home/wheeltec/wheeltec_robot/build/ball_find/cmake/ball_find-genmsg.cmake"
  "/opt/ros/melodic/share/genmsg/cmake/pkg-genmsg.cmake.em") returned error
  code 1
Call Stack (most recent call first):
  /opt/ros/melodic/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
  /opt/ros/melodic/share/genmsg/cmake/genmsg-extras.cmake:303 (em_expand)
  ball_find/CMakeLists.txt:75 (generate_messages)


-- Configuring incomplete, errors occurred!
See also "/home/wheeltec/wheeltec_robot/build/CMakeFiles/CMakeOutput.log".
See also "/home/wheeltec/wheeltec_robot/build/CMakeFiles/CMakeError.log".
Makefile:838: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed





回复

使用道具 举报

2

主题

428

帖子

1307

积分

金牌会员

Rank: 6Rank: 6

积分
1307

论坛元老

发表于 2021-4-6 09:23:29 | 显示全部楼层
这个可能是编译顺序的问题,参照这里修改你的CMake文件
4f.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

粤ICP备20017043号|小黑屋|手机版|Archiver|轮趣科技(东莞)有限公司  

GMT+8, 2024-11-26 05:28 , Processed in 0.064341 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表