ros catkin_make 出现add_custom_target cannot create target 错误
来源:互联网 发布:在github上下载源码 编辑:程序博客网 时间:2024/06/06 01:23
今天用catkin_make编译ros包出现如下错误:
CMake Error at /home/liwei/work/catkin_ws_land/build/mycommbase/cmake/mycommbase-genmsg.cmake:250 (add_custom_target): add_custom_target cannot create target "mycommbase_generate_messages_nodejs" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/liwei/work/catkin_ws_land/src/tld_tracker". See documentation for policy CMP0002 for more details.Call Stack (most recent call first): /opt/ros/kinetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include) mycommbase/CMakeLists.txt:20 (generate_messages)
最后的找到的原因是包的package.xml 中包依赖没有和cmakelist.txt中设置一致
cmakelist.txt:
find_package(catkin REQUIRED COMPONENTS roscpp std_msgs sensor_msgs image_transport mycommbase message_generation)
package.xml:
<build_depend>message_generation</build_depend>
<build_depend>mycommbase</build_depend>
<build_depend>image_transport</build_depend>
<run_depend>message_runtime</run_depend>
<run_depend>mycommbase</run_depend>
<run_depend>image_transport</run_depend>
主要是上面mycommbase是我自己的一个包,一定要在package.xml中 <build_depend> 里面加上
阅读全文
0 0
- ros catkin_make 出现add_custom_target cannot create target 错误
- 创建ROS工作空间catkin_make编译出现错误
- ubuntu14.04升级cmake版本后,ROS catkin_make错误解决办法
- ros Anaconda2 catkin_make
- 创建catkin_ws工作空间出现catkin_make错误解决方法
- 出现Cannot create PoolableConnectionFactory
- winodws quick launch 出现"Cannot create Toolbar"错误解决方法
- Navicat Premium 出现cannot create oci environment错误
- 采用MingW编译OPENCV,出现recipe for target xxx/can't create precompiled header错误解决方法
- 数据库连接错误Cannot create PoolableConnectionFactory
- ROS回顾学习(1)-----catkin_make编译
- 关于Keil debug 出现cannot access target shutting down debug session 错误提示
- 使用MDK5进行DEBUG时出现“cannot access target shutting down debug session”错误的解决方法
- 安装源码版apache出现 configure: error: C compiler cannot create executables错误
- SmartARM2200中编译minigui应用程序时出现错误error: C compiler cannot create executables
- SampleBrowse运行后出现Cannot create setting file in root .......错误
- 重装mysql后出现"cannot create windows service for mysql.error:0"错误
- configure编译时,出现 configure: error: C compiler cannot create executables错误解决
- SAX方法解析XML文件
- linux 下调用opencv接口函数实现鼠标在窗口画方框操作
- Android禁止输入表情符号的EditText
- CDN(内容分发网络)技术原理
- hadoop之map读取数据流程
- ros catkin_make 出现add_custom_target cannot create target 错误
- TCP三次握手连接及seq和ack号的正确理解
- BZOJ 3622 已经没有什么好害怕的了
- Objective-C 语法二(对象初始化)
- PKI系统深入介绍
- twitter工程师的一点经验
- 程序员必读书籍书单
- C++综合系列之模拟栈模版(数组版及单链表版)
- Objective-C 语法三(属性值)