• 书中提到,如果将源码包 ros_exploring 直接放到 catkin 工作空间中,需要将 ros2 文件夹移出到工作空间之外,否则编译失败。

  • 将 ros2 文件夹移出之后仍然报错,具体信息如下:

Could not find the required component ‘ecto’. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.

CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by “ecto” with any of
the following names:
ectoConfig.cmake
ecto-config.cmake

Add the installation prefix of “ecto” to CMAKE_PREFIX_PATH or set
“ecto_DIR” to a directory containing one of the above files. If “ecto”
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
ros_exploring-master/robot_perception/ork_tutorials/CMakeLists.txt:4 (find_package)

– Configuring incomplete, errors occurred!
See also “/home/qinpeiwang/catkin_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/qinpeiwang/catkin_ws/build/CMakeFiles/CMakeError.log”.
Invoking “cmake” failed

出错原因为缺少 ecto 这个包,使用如下命令安装再重新编译即可解决问题:

$ sudo apt-get install ros-kinetic-ecto 

同理,若缺少 manipulation-msgs 包则如下命令安装:

$ sudo apt install ros-kinetic-manipulation-msgs 

gazebo_ros_control 包:

$ sudo apt install ros-kinetic-gazebo-ros-control

  • 缺少链接库报错:

/usr/bin/ld: cannot find -lmsc
collect2: error: ld returned 1 exit status

解决方法:参考书中207页说明,将科大讯飞的SDK库文件拷贝到系统目录下:

注:先进入库文件所在文件夹 ros_exploring/robot_perception/robot_voice/libs/x64(32位系统最后选择x86文件夹) 再执行如下命令

$ sudo cp libmsc.so /usr/lib/libmsc.so
  • 权限错误

/home/jyk/catkin_ws/build/ros_exploring/ros_advanced/dynamic_tutorials/setup_custom_pythonpath.sh: 5:exec: /home/jyk/catkin_ws/src/ros_exploring/ros_advanced/dynamic_tutorials/cfg/Tutorials.cfg: Permission denied
ros_exploring/ros_advanced/dynamic_tutorials/CMakeFiles/dynamic_tutorials_gencfg.dir/build.make:63: recipe for target ‘/home/jyk/catkin_ws/devel/include/dynamic_tutorials/TutorialsConfig.h’ failed

进入 ros_exploring/ros_advanced/dynamic_tutorials/cfg 文件夹,执行如下命令:

$ chmod +x Tutorials.cfg
  • pocketsphinx 语音包安装报错:

ImportError: No module named pygst

错误原因为缺少 python-gst 依赖,执行如下命令即可解决问题:

  $ sudo apt install python-gst0.10

机器人开发实践源码编译报错问题解决方法相关推荐

  1. 古月居 机器人开发实践源码 编译报错问题解决方法

    ubuntu:16.04.7 ros:kinetic 移植<机器人开发实践>源码包 ros_exploring,出现的问题都包含于以下内容中. 书中提到,如果将源码包 ros_explor ...

  2. Spring源码编译报错那些事

    Spring源码编译报错那些事(不会吧不会吧,不会真的有人刚学习源码就被劝退了吧

  3. Android 12源码编译报错:FAILED: out/soong/build.ninja

    Android 12源码编译报错:FAILED: out/soong/build.ninja android12源码编译中报如下错误: 网上查了比较多资料发现是swap分区不够导致的,报错时使用fre ...

  4. 源码编译报错系列之:Fatal error compiling: 无效的标记: --release -> [Help 1]

    源码编译报错系列之:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (defau ...

  5. 如何快速解决Github下载源码编译报错并顺利运行机器人等项目案例(Webots+ROS2)

    有很多的朋友在我博客下留言交流,由于个人能力有限,加班也特别多,并不能有效解答,实在非常抱歉.于是决定写一篇通用性的解决方法的博客. 一般而言,大部分问题运用搜索工具能找到答案的,不在此赘述. 于是, ...

  6. Android10源码编译报错ninja: build stopped: subcommand failed处理

    1.背景说明 虚拟机:wsl 2.0 Ubuntu18.04 虚拟机配置:8G内存,1T存储 软件版本:Android10源码,无任何修改 报错内容:编译至97%时,ninja编译中断,ninja: ...

  7. ROS机器人开发实践源码

    胡大大开源到github上,有人搬到CSDN上还要付费下载??github下载可能不是很方便,所以搬运以下百度云: 链接:https://pan.baidu.com/s/1FUjk9lTceYOeLe ...

  8. Apollo自动驾驶开发笔记47——apollo编译报错this rule is missing dependency declarations for the following files

    Apollo自动驾驶开发笔记47--apollo编译报错this rule is missing dependency declarations for the following files 报错信 ...

  9. Vue3运行源码-调试报错:Command failed with exit code 128: git rev-parse HEAD

    Vue3运行源码-调试报错:Command failed with exit code 128: git rev-parse HEAD 下载源码 运行源码 运行源码报错 成功运行 下载源码 官网下载源 ...

最新文章

  1. NFS v3 RPC
  2. 推荐系统resys小组线下活动见闻2009-08-22
  3. 全球及中国氢气储运行业规划方向及投资决策建议报告2021-2027年
  4. windows和ubuntu虚拟机之间不能自由复制粘贴东西(要安装VMware Tools)vmware-install.pl
  5. 前端开发工程化探讨--基础篇(长文)
  6. 公开课 | 知识图谱构建与应用概述
  7. 工作之余,如何再赚一份收入?
  8. 05月08日 学习列表
  9. maple化简_Maple对多项式化简教程
  10. 用python根据最新的汇率,假设你要出国留学要换外币,输入一定数量的人民币,比如1000元人民币, 按照中国银行的现钞卖出价,输出可换到对应的加元和澳元分别是多少。
  11. STM32L476+STM32cubeMx+Freemodbus移植记录
  12. 5分钟外设学堂:耳机不响别慌,换个插头能救活!
  13. TOF/结构光camera区别、TOF同时成像深度图、IR图原理?
  14. 高通平台QCRILD
  15. 设计模式八(享元模式)
  16. 为什么很多智能锁没有防破坏报警功能?
  17. Python计算机视觉之全景图像拼接
  18. C++中矩阵求秩问题
  19. 有几种水果不能空腹吃,你知道吗?
  20. Ubuntu_Ubuntu 12.04下设置笔记本成为wifi热点

热门文章

  1. JavaAPI第二章
  2. 微信小程序只能发起https请求吗,能不能发送http请求
  3. 基于51单片机的时钟闹钟温度计LCD1602显示proteus仿真原理图PCB
  4. 微信小程序文件下载预览 真机调试可以 但直接预览打不开 小程序文件下载 小程序文件预览
  5. 腾讯云不同账号的服务器,网站如何迁移
  6. DOS微信多开高级版
  7. nvidia-smi 报错
  8. ps4服务器维修要多久,《街头霸王5》内测不顺卡普空致歉 服务器维护延长
  9. 诺基亚301支持java评测_诺基亚301评测详细介绍【图解】
  10. vue中.sync修饰符与自定义组件的v-model的使用