编译ROS包出现错误 提示:invoking "make cmake_check_build_system" failed

2023-05-16

问题原因:不同包里不允许有重名的节点

解决方案:编辑重复的package文件夹里的CMakeLists.txt文件,对涉及到节点名称的代码进行修改

调试过程:逐行分析问题代码,问题的BUG基本都能找到原因,记住一定要从第一个ERROR开始修复,有时候出现了一堆BUG,其实都是第一个BUG引起的

贴上问题代码:

-- Using CATKIN_DEVEL_PREFIX: /home/jier/dev/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/jier/dev/catkin_ws/devel;/home/jier/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/jier/dev/catkin_ws/devel;/home/jier/catkin_ws/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/jier/dev/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.8
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 2 packages in topological order:
-- ~~  - chapter2_tutorials
-- ~~  - chapter3_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'chapter2_tutorials'
-- ==> add_subdirectory(chapter2_tutorials)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- chapter2_tutorials: 1 messages, 1 services
-- +++ processing catkin package: 'chapter3_tutorials'
-- ==> add_subdirectory(chapter3_tutorials)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
--   iostreams
--   serialization
--   chrono
--   atomic
--   regex
-- Checking for module 'libopenni2'
--   No package 'libopenni2' found
-- Could NOT find OpenNI2 (missing:  OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS) 
** WARNING ** io features related to openni2 will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- Checking for module 'libopenni2'
--   No package 'libopenni2' found
-- Could NOT find OpenNI2 (missing:  OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS) 
** WARNING ** visualization features related to openni2 will be disabled
-- looking for PCL_COMMON
-- looking for PCL_KDTREE
-- looking for PCL_OCTREE
-- looking for PCL_SEARCH
-- looking for PCL_IO
-- looking for PCL_SAMPLE_CONSENSUS
-- looking for PCL_FILTERS
-- looking for PCL_GEOMETRY
-- looking for PCL_FEATURES
-- looking for PCL_SEGMENTATION
-- looking for PCL_SURFACE
-- looking for PCL_REGISTRATION
-- looking for PCL_RECOGNITION
-- looking for PCL_KEYPOINTS
-- looking for PCL_VISUALIZATION
-- looking for PCL_PEOPLE
-- looking for PCL_OUTOFCORE
-- looking for PCL_TRACKING
-- looking for PCL_APPS
-- Could NOT find PCL_APPS (missing:  PCL_APPS_LIBRARY) 
-- looking for PCL_MODELER
-- looking for PCL_IN_HAND_SCANNER
-- looking for PCL_POINT_CLOUD_EDITOR
-- chapter3_tutorials: 0 messages, 1 services
CMake Error at chapter3_tutorials/CMakeLists.txt:57 (add_executable):
  add_executable cannot create target "example4" because another target with
  the same name already exists.  The existing target is an executable created
  in source directory "/home/jier/dev/catkin_ws/src/chapter2_tutorials".  See
  documentation for policy CMP0002 for more details.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/opt/ros/kinetic/lib/libdynamic_reconfigure_config_init_mutex.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libcv_bridge.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libopencv_core3.so.3.3.1"
  to target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/opt/ros/kinetic/lib/libopencv_imgproc3.so.3.3.1" to target "example4"
  which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/opt/ros/kinetic/lib/libopencv_imgcodecs3.so.3.3.1" to target "example4"
  which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libimage_transport.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libtinyxml2.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libclass_loader.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/libPocoFoundation.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libdl.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libroslib.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/librospack.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libpython2.7.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/usr/lib/x86_64-linux-gnu/libboost_program_options.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libtinyxml.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/opt/ros/kinetic/lib/libinteractive_markers.so" to target "example4" which
  is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libtf.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libtf2_ros.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libactionlib.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libmessage_filters.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libroscpp.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/usr/lib/x86_64-linux-gnu/libboost_filesystem.so" to target "example4"
  which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libboost_signals.so"
  to target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libxmlrpcpp.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libtf2.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/librosconsole.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/librosconsole_log4cxx.so"
  to target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/opt/ros/kinetic/lib/librosconsole_backend_interface.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/liblog4cxx.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libboost_regex.so"
  to target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/opt/ros/kinetic/lib/libroscpp_serialization.so" to target "example4"
  which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/librostime.so" to target
  "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/opt/ros/kinetic/lib/libcpp_common.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libboost_system.so"
  to target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libboost_thread.so"
  to target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libboost_chrono.so"
  to target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/usr/lib/x86_64-linux-gnu/libboost_date_time.so" to target "example4"
  which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libboost_atomic.so"
  to target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library "/usr/lib/x86_64-linux-gnu/libpthread.so" to
  target "example4" which is not built in this directory.


CMake Error at chapter3_tutorials/CMakeLists.txt:59 (target_link_libraries):
  Attempt to add link library
  "/usr/lib/x86_64-linux-gnu/libconsole_bridge.so" to target "example4" which
  is not built in this directory.


CMake Error at /opt/ros/kinetic/share/catkin/cmake/test/gtest.cmake:128 (_install):
  install TARGETS given target "example4" which does not exist in this
  directory.
Call Stack (most recent call first):
  chapter3_tutorials/CMakeLists.txt:81 (install)


-- Configuring incomplete, errors occurred!
See also "/home/jier/dev/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/jier/dev/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:1844: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Base path: /home/jier/dev/catkin_ws
Source space: /home/jier/dev/catkin_ws/src
Build space: /home/jier/dev/catkin_ws/build
Devel space: /home/jier/dev/catkin_ws/devel
Install space: /home/jier/dev/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/jier/dev/catkin_ws/build"
####
Invoking "make cmake_check_build_system" failed

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

编译ROS包出现错误 提示:invoking "make cmake_check_build_system" failed 的相关文章

随机推荐

  • stm32串口的发送与中断接收

    stm32串口是实现单片机到上位机通讯的重要手段 xff0c 通常使用usb转ttl模块进行单片机与上位机的连接 xff0c 以实现串口的收发等功能 今天学习了串口的发送与中断接收 xff0c 现总结如下 xff1a 步骤总结 xff1a
  • 用Android的Activity生命周期解释HarmonyOS的Page Ability生命周期

    由华为出品 我国完全自主知识产权的HarmonyOS是一款 面向未来 面向全场景 xff08 移动办公 运动健康 社交通信 媒体娱乐等 xff09 的分布式操作系统 现已于2020年9月10日开源 xff0c 并面向应用开发者发布Beta版
  • 宗师级Linux 系统管理员的倾囊相授——《Linux命令行与shell脚本编程大全(第4版)》

    信息安全 早已上升为国家战略 xff0c 发展自主可控的国产操作系统迫在眉睫 为了满足国防 公安等涉密领域对操作系统平台的安全需求 xff0c 国防科技大学研制了以操作系统技术为核心 xff0c 安全可信为特色的中标麒麟 xff08 Ubu
  • Java语言的极限,就是面向对象的极限——《On Java中文版》

    自从1995年问世以来 xff0c Java已经发展成了全世界使用范围最广的语言之一 xff0c 每天都有30亿台运行Java的设备活跃在这个世界上的各个角落里 世界上大多数网站的后台使用Spring开发 xff0c 而Spring开发者必
  • 展望10年内VR技术的盈利模式的发展历程

    2016年被誉为中国VR元年 xff0c VR也成为了就像2012年的团购 2013年的P2P 2014年的O2O 2015年的大数据一样成为了创客们在咖啡厅里向投资人侃侃而谈的网络流行语 情 xff08 gen xff09 怀 xff08
  • 做后台开发用到的技能都在这儿——《后台开发:核心技术与应用实践》

    大多数面向对象语言没有指针的概念 xff0c C语言也没有对象的概念 xff0c 同时具有指针和对象的 C 43 43 语言在学习时有高昂的门槛 xff0c 同时在服务端后台开发 处理多并发的海量网络请求等方面有天然的优势 就像 Andro
  • Android Canvas 多张图片拼接成长图

    容我慢写
  • Android Canvas 给图片加上水印

    容我慢写
  • 我做面试官的故事

    2016年就要过完了 xff0c 我入行也快三年了 三年来被人面试过也面试过人 xff0c 我来给大家分享一下我面试别人的两个有趣经历吧 xff1a 1 有一天我穿着环信的T恤 xff0c 前胸是一个巨大的环信logo xff0c 后颈是环
  • 2016年点亮的新技能树——指导·招聘·业务

    2015年入职的公司刚倒闭 xff0c 一家公司招我进去带俩新人做项目 xff0c 我刚来了没半个月他俩都跑了 我成了2016年春夏之交的CSDN首页上 到新公司带新人 xff0c 新人跑了 的笑话 这个故事是有续集的 xff0c 他俩跑了
  • 给CheckBox加上动画

    容我慢写
  • SEC物权链奖金制度分析

    启程SEC物权链是什么 xff1f 靠谱吗 xff1f SEC公链是什么 xff1f 物权链怎么样 xff1f 分析于下 xff1a 一 定位 xff1a 依托原中小企业上市包装辅导策划以及不良资产运作等业务 xff0c 130家实体资产分
  • Linux安装pqsql

    PostgreSQL安装部署 1 解压 tar xvf postgresql 10 5 1 linux x64 binaries tar gz 将解压文件重命名 mv pgsql postgresql PostgreSQL无法在root用户
  • 高考失败的程序员的逆袭

    高考作文不得出现真实的校名和人名 xff0c 所以本文不包含任何真实的校名 人名乃至赞助学校的企业名 xff0c 小说情节纯属虚构 如果情节与现实生活的事实雷同 xff0c 请谨记 xff1a 英国有个人叫牛顿 xff0c 德国有个人叫莱布
  • Android程序员的十大转型之路

    IT行业是一个瞬息万变的行业 xff0c 程序员是一个不进则退的职业 我作为一个Android程序员 xff0c 多年来一直保持随时可以转型其他技术领域的状态 xff0c 保持对新技术敏感的嗅觉 我先说说Android程序员不可能转型的几个
  • 【玖哥乱弹】编程语言间的斗争

    在初级程序员阶段 xff0c 每个人都不可避免遇到选择编程语言和职业方向的难题 我挑选了几个常见的编程语言 xff0c 分析了优缺点和职业方向 xff0c 以供想当程序员的人参考 C C 43 43 一句话概括 xff1a 大多数中国程序员
  • 【玖哥乱弹】成功的IT人士这样转型AI

    AlphaGo在与围棋世界冠军的对弈大获全胜 xff0c 不但让我们领略到了AI的巨大潜力 xff0c 还把AI推上了新的浪潮之巅 作为一个从即将过去的移动互联网时代走来的Android工程师 xff0c 我深深感受到自己成了传统行业 xf
  • 【玖哥乱弹】程序员如何成为别人的男朋友

    这个世界上程序员数量很多 xff0c 有女朋友的程序员在其中的比例却很少 究其原因 xff0c 不外乎大多数程序员根本不知道怎么才能成为别人的男朋友 成为别人的男朋友对于富二代和拆迁户很容易 xff0c 而对于程序员却很难 xff0c 潘驴
  • Linux库函数之opendir/closedir/readdir

    在Linux环境下 xff0c 有时候需要编写一些实用的工具 xff0c 比如检索功能 xff0c 最近在做病毒查杀应用开发 xff0c 涉及到批量扫描指定目录下文件 xff0c 因为要测试大量病毒文件 xff0c 该部分功能又是要通过AP
  • 编译ROS包出现错误 提示:invoking "make cmake_check_build_system" failed

    问题原因 xff1a 不同包里不允许有重名的节点 解决方案 xff1a 编辑重复的package文件夹里的CMakeLists txt文件 xff0c 对涉及到节点名称的代码进行修改 调试过程 xff1a 逐行分析问题代码 xff0c 问题