ubuntu:16.04.7

ros:kinetic

移植《机器人开发实践》源码包 ros_exploring,出现的问题都包含于以下内容中。

书中提到,如果将源码包 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

1

pocketsphinx 语音包安装报错:

ImportError: No module named pygst

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

$ sudo apt install python-gst0.10

原文链接:

机器人开发实践源码编译报错问题解决方法_YiKangJ的博客-CSDN博客

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

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

    书中提到,如果将源码包 ros_exploring 直接放到 catkin 工作空间中,需要将 ros2 文件夹移出到工作空间之外,否则编译失败. 将 ros2 文件夹移出之后仍然报错,具体信息如下: ...

  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. 追查连接mysql的客户端
  2. linux centos 使用 alpine 编译的二进制文件 报错 /lib/ld-musl-x86_64.so.1: bad ELF interpreter 解决方法
  3. 【精品资源】干货分享:20款精美的手机网站模板下载
  4. 选择之后触_发宜常梳:4种材质的梳子,我们最常用的梳子却对头发最不好,该如何选择?...
  5. matlab 高斯迭代代码_主动降噪与双麦降噪原理与实现前篇——LMS算法的matlab实现...
  6. BSM:左手业务,右手IT
  7. THREEJS - 模型的裁切消隐
  8. 第一部分----HTML的基本结构与基本标签
  9. Boblog热门日志、随机日志、热门Tags插件源代码
  10. KITTI数据集解析和可视化
  11. 【MEMS传感器】BMI160九轴传感器SPI驱动
  12. Linux安装及管理程序
  13. 一个非常naive的分数阶微积分介绍
  14. XP的定时关机命令?
  15. 鸿蒙系统2.0的编译
  16. SM2269XT固态硬盘使用量产工具开卡成功
  17. mysql(update)
  18. 2021年5月软件设计师考前总结笔记
  19. 使用无人机进行视频直播
  20. 马云雕像事件谁在背后操刀?

热门文章

  1. 网络安全入门(一)IP欺骗
  2. EXCEL的IF函数学习
  3. 第24章 SQL SELECT INTO 语句教程
  4. 网店实名制剑指何方?
  5. 联通iphone印象
  6. 面试--北京闪银奇异
  7. 销售文案里的促销价格怎样设置更有效?
  8. 营养素的基础知识2(非技术文)
  9. GB2312字符集对应16进制ANSI、UNICODE、UTF-8编码 (4)
  10. 规则引擎Aviator实践分享