问题描述:ros学习中,一个小插曲,还以为出什么大问题了,真是苦笑不得

CMake Error at hello/CMakeLists.txt:138 (target_link_libraries):Cannot specify link libraries for target"hello/opt/ros/noetic/lib/libroscpp.so" which is not built by this project.-- Configuring incomplete, errors occurred!
See also "/home/jackson/hello_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/jackson/hello_ws/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:614:cmake_check_build_system] 错误 1
Invoking "make cmake_check_build_system" failed

解决方案:真的只是粗心,hello后面少加了一个空格,原来没什么大问题,错误如下:

target_link_libraries(hello${catkin_LIBRARIES})

谨以此篇,告诫自己:还是对cmake文件理解不够深刻,希望后面的错误也能得到解决

CMake Error:Cannot specify link libraries for target相关推荐

  1. CMake编译报错:Cannot specify link libraries for target “test“ which is not built by this project.

    参考博文:https://blog.csdn.net/wan_exe/article/details/70307692 解决方法:要将 ADD_EXECUTABLE的声明放到设置库文件的TARGET_ ...

  2. import导入工程时出现error:Description Resource Path Location Type Target runtime com.genuitec.runtime.gener

    Myeclipse把一个workspace里的项目导入另一个workspace时,项目提示error: Description Resource Path Location Type Target r ...

  3. CMake Error: Could not find a package configuration file provided by “serial“

    CMakeLists.txt中添加了串口的package,如下: find_package(catkin REQUIRED COMPONENTS nav_msgs roscpp rospy seria ...

  4. CMake Error:Found unsuitable Qt version “5.14.2“ from D:\, this code requires Qt 4.x

    使用 Cmake 编译安装 VTK-7.1.1 时抛出错误: 意为 QT 版本不合适,因为我使用的是 QT5 ,因此,在 Cmake 里面找到版本控制,将之修改便可. CMake Error at D ...

  5. cmake error:could not find git for clone of xxx

    背景: 我在用visual Studio 2017下带的shell,执行 cmake -G "Visual Studio 15 2017 Win64" .. 遇到了上述问题: 解决 ...

  6. 报错:CMake Error at CMakeLists.txt:9 (target_link_libraries): Cannot specify link libraries for targ

    文章目录 问题描述 解决方法 参考 问题描述 第一次使用手写cmake编译 c++ 项目时,使用cmake ..出现以下报错: CMake Error at CMakeLists.txt:9 (tar ...

  7. CMake error 合集(Configuring incomplete errors occurred!)

    其实,每次碰到要安装一些软件啊,通常软件的源码都是c/c++,刚开始LZ不理解,从来都是跟着Readme.txt,一步步安装,如果说一帆风顺的把软件安装好了,也就罢了,很可能不会深究到底 cmake ...

  8. 【已解决】CMake Error: Cannot determine link language for target “xxx“. CMake Error: CMake can not determ

    报错: CMake Error: Cannot determine link language for target "CMakeLists". CMake Error: CMak ...

  9. 报错:CMake Error at /usr/share/cmake-3.10/Modules/CMakeDetermineCCompiler.cmake:48 (message):

    虚拟机ubuntu系统下执行bash ./build-linux_RK3588.sh 报错:` ```python CMake Error: CMAKE_C_COMPILER not set, aft ...

最新文章

  1. py-redis中的批量删除key方法
  2. 成为技术领导者——解决问题的有机方法
  3. 细数Android 7.0“牛轧糖”的五大缺陷:不支持悬浮窗口
  4. Vue.js中 computed 和 methods 的区别
  5. 并发编程-19AQS同步组件之重入锁ReentrantLock、 读写锁ReentrantReadWriteLock、Condition
  6. 中科院sci分区表_最新 | 2020中科院SCI分区表 食品科技类
  7. jvm_虚拟机组成部分概述
  8. Angular jasmine spied Method toHaveBeenCalled的执行原理
  9. 人民的名义中,为什么蔡成功的贷款这么难?
  10. 通过Dapr实现一个简单的基于.net的微服务电商系统(九)——一步一步教你如何撸Dapr之OAuth2授权...
  11. msdn画圆弧函数_精确之美——用TikZ画硬盘示意图
  12. 精打细算使用MaxCompute搭建数仓
  13. 二、噪音大小对使用的影响
  14. 关于pdf阅读器的选择
  15. 使用two.js生成的卫星环绕动画效果
  16. apache+nginx 实现动静分离
  17. Visual Studio 2017入门教程丨如何运行一个Fortran程序
  18. 民间的三种说法-Java与咖啡的故事
  19. 《Java 程序设计任务驱动式实训教程》pdf,附下载链接
  20. 笔记本开启热点后上不了网

热门文章

  1. react Hooks 实现倒计时
  2. FlexPaper控件实现文档的上传和预览
  3. 浅谈ajax原理、优缺点
  4. 多层穿梭式货架立柱设计细节
  5. souce insight symble window 关闭
  6. MHA高可用架构搭建
  7. cf554题意的理解和组合问题
  8. android toolbar的使用方法,Toolbar使用详解
  9. 数学基础之方差、标准差和协方差三者之间的定义与计算
  10. Leetcode 79. 单词搜索