问题引出:

catkin_make编译项目时出现下列错误:

make[2]: *** No rule to make target ‘/usr/lib/libOpenNI2.so’, needed by ‘/home/yujie/Test_ws/devel/lib/libloam.so’。 停止。
CMakeFiles/Makefile2:2708: recipe for target ‘loam_velodyne/src/lib/CMakeFiles/loam.dir/all’ failed
make[1]: *** [loam_velodyne/src/lib/CMakeFiles/loam.dir/all] Error 2
Makefile:138: recipe for target ‘all’ failed
make: *** [all] Error 2
Invoking “make -j4 -l4” failed

如下图所示:

解决方法:
由于要编译的项目在之前已经编译过了,此次编译是增加了新功能的代码。经过分析,直接删除编译文件夹devel和build,再次编译,问题即可解决。要删除的文件夹如下图所示:

解决catkin_make时出现make[2]: *** No rule to make target ‘/usr/lib/libOpenNI2.so‘, needed by ‘*******‘。相关推荐

  1. error: No rule to make target '/usr/lib/libOpenNI.so', needed by 'bin/euroc_rectify'。 停止。

    这类问题的出现说明程序在编译时,CMakeLists.txt 文件没有找到OpenNI.so, 即 Pangolin库未安装或破损. 重新安装pangolin库即可.(亲测) 转载于:https:// ...

  2. ubuntu16.04 catkin_make报错No rule to make target '/usr/lib/x86_64-linux-gnu/libGL.so'

    最近,博主遇到了极其糟心的事情,Ubuntu16.04系统的主机开机重启之后,循环显示输入密码进入的提示,天地良心,密码绝对正确,就是进不到桌面.后来在好心人的帮助下,终于可以看到Ubuntu系统的桌 ...

  3. QT添加lib库后提示 No rule to make target “xxx.lib“ needed by “xxx.exe“

    QT添加外部的lib库: 首先右键项目,选择添加库 进行选择: 这里加入的是静态库 添加库后编译一直报错No rule to make target 'xxx.lib' needed by 'xxx' ...

  4. Linux kernel进行编译时提示No rule to make target `menconfig'

    进入linux-2.6.37目录下.运行make menconfig,提示:   make[1]: *** No rule to make target `menconfig'.  Stop. 截图如 ...

  5. Ubuntu18.04报错:make[1]: *** No rule to make target armv4-mont.o, needed by build-msm8916/lk. Stop.

    报错:make[1]: *** No rule to make target build-msm8916/lib/openssl/crypto/bn/asm/armv4-mont.o, needed ...

  6. [华为][Atlas]Ubuntu can‘t open file ‘/usr/lib/python3.7/py_compile.py解决办法总结

    from:https://blog.csdn.net/weixin_43613991/article/details/109004174 解决方法 no.1 安装python3.7.5时,增加如下软链 ...

  7. cmake -- No rule to make target xxx.so

    catkin build 时出现错误: No rule to make target "xxx.so " 这种情况大概率是so路径不对,或者该路径下没有xxx.so 原cmakel ...

  8. Qt编译运行提示No rule to make target ‘xxx.h‘ needed by ‘xxx.o‘.Stop

    Qt编译运行提示No rule to make target 'xxx.h' needed by 'xxx.o'.Stop 今天使用Qt运行程序时突然报错No rule to make target ...

  9. make时 No rule to make target错误解决办法

    make时出错如下: make[1]: Entering directory `/home/leon/test/HiviewDtvUboot/U-boot/board/hs3000' make[1]: ...

最新文章

  1. PI=3.1415926....
  2. linux下crontab实现定时服务详解
  3. java线程池有哪几种,真香系列
  4. C#遍历指定文件夹中的所有文件和子文件夹
  5. MySQL 高级 - 索引 - 概述
  6. 人月神话阅读笔记(二)
  7. 学习 Linux/C/C++ 必备资料
  8. 解决IE6中 PNG图片透明的终极方案-八种方案!
  9. mycat-sublun数据库分片
  10. Windows系统下的socket编程
  11. 数据结构视频教程 -《[北大张铭 精品课程版]数据结构与算法(C++)》
  12. 两相四线混合式步进电机用双H桥驱动电路
  13. 计算机类绘图的文献,基于计算机CAD绘图探讨论文
  14. Kafka:分布式消息系统
  15. HUAS Summer Trainning #3 M
  16. Vivado HLS #pragma 学习笔记(一)
  17. 规范自己的JavaScript书写 – Dojo Javascript 编程规范
  18. 信息学奥赛一本通高手训练1679:子集
  19. 来自 Planet Cambra 的 Dragon NFT 系列上架
  20. [iOS]-单例模式\通知\代理

热门文章

  1. 有水量服务器水温还是不稳定,我的热水器水量忽大忽小
  2. android pppd log,未记录的pppd退出代码
  3. 治疗贫血的几款食疗方
  4. 【入门】(二)相机标定、矩阵求解、相机位姿势估计
  5. 机器学习——Matplotlib入门教程
  6. PCIE及南桥芯片组
  7. Codeforces869C The Intriguing Obsession
  8. 算法回顾---贝叶斯分类器
  9. HTML小游戏15 —— 网页版3D反恐英雄(附完整源码)
  10. Android黄油计划之Choreographer原理解析