问题:

ros noetic catkin_make 失败:

(base) alex@ubuntu-16-04:~/catkin$ catkin_make
Base path: /home/alex/catkin
Source space: /home/alex/catkin/src
Build space: /home/alex/catkin/build
Devel space: /home/alex/catkin/devel
Install space: /home/alex/catkin/install
####
#### Running command: "cmake /home/alex/catkin/src -DCATKIN_DEVEL_PREFIX=/home/alex/catkin/devel -DCMAKE_INSTALL_PREFIX=/home/alex/catkin/install -G Unix Makefiles" in "/home/alex/catkin/build"
####
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/alex/catkin/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /opt/ros/noetic
-- Found PythonInterp: /home/alex/anaconda3/bin/python3 (found suitable version "3.8.8", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /home/alex/anaconda3/bin/python3
-- Using Debian Python package layout
-- Could NOT find PY_em (missing: PY_EM)
CMake Error at /opt/ros/noetic/share/catkin/cmake/empy.cmake:30 (message):Unable to find either executable 'empy' or Python module 'em'...  tryinstalling the package 'python3-empy'
Call Stack (most recent call first):/opt/ros/noetic/share/catkin/cmake/all.cmake:164 (include)/opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:20 (include)CMakeLists.txt:58 (find_package)-- Configuring incomplete, errors occurred!
See also "/home/alex/catkin/build/CMakeFiles/CMakeOutput.log".
See also "/home/alex/catkin/build/CMakeFiles/CMakeError.log".

python依赖empy,于是通过pip安装:

base) alex@ubuntu-16-04:~/catkin$ pip install empy
Collecting empyDownloading empy-3.3.4.tar.gz (62 kB)|████████████████████████████████| 62 kB 83 kB/s
Building wheels for collected packages: empyBuilding wheel for empy (setup.py) ... doneCreated wheel for empy: filename=empy-3.3.4-py3-none-any.whl size=29330 sha256=63c13546baef652d25a46202986771de15544ec6536ba34bc6be7e99ba48fe98Stored in directory: /home/alex/.cache/pip/wheels/b0/d7/80/0e8ad4f073e05b2435c3b4c12c230cb219135bae4f59978612
Successfully built empy
Installing collected packages: empy
Successfully installed empy-3.3.4

再测试仍然失败,提示catkin_pkg未安装

(base) alex@ubuntu-16-04:~/catkin$ catkin_make
Base path: /home/alex/catkin
Source space: /home/alex/catkin/src
Build space: /home/alex/catkin/build
Devel space: /home/alex/catkin/devel
Install space: /home/alex/catkin/install
####
#### Running command: "cmake /home/alex/catkin/src -DCATKIN_DEVEL_PREFIX=/home/alex/catkin/devel -DCMAKE_INSTALL_PREFIX=/home/alex/catkin/install -G Unix Makefiles" in "/home/alex/catkin/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/alex/catkin/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /opt/ros/noetic
-- Using PYTHON_EXECUTABLE: /home/alex/anaconda3/bin/python3
-- Using Debian Python package layout
-- Found PY_em: /home/alex/anaconda3/lib/python3.8/site-packages/em.py
-- Using empy: /home/alex/anaconda3/lib/python3.8/site-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/alex/catkin/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /home/alex/anaconda3/bin/python3 (found version "3.8.8")
-- Found Threads: TRUE
-- Using Python nosetests: /usr/bin/nosetests3
ImportError: "from catkin_pkg.package import parse_package" failed: No module named 'catkin_pkg'
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
CMake Error at /opt/ros/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):execute_process(/home/alex/anaconda3/bin/python3"/opt/ros/noetic/share/catkin/cmake/parse_package_xml.py""/opt/ros/noetic/share/catkin/cmake/../package.xml""/home/alex/catkin/build/catkin/catkin_generated/version/package.cmake")returned error code 1
Call Stack (most recent call first):/opt/ros/noetic/share/catkin/cmake/catkin_package_xml.cmake:74 (safe_execute_process)/opt/ros/noetic/share/catkin/cmake/all.cmake:168 (_catkin_package_xml)/opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:20 (include)CMakeLists.txt:58 (find_package)-- Configuring incomplete, errors occurred!
See also "/home/alex/catkin/build/CMakeFiles/CMakeOutput.log".
See also "/home/alex/catkin/build/CMakeFiles/CMakeError.log".

继续安装

(base) alex@ubuntu-16-04:~/catkin$ pip install catkin_pkg
Collecting catkin_pkgDownloading catkin_pkg-0.4.24-py3-none-any.whl (75 kB)|████████████████████████████████| 75 kB 19 kB/s
Requirement already satisfied: pyparsing in /home/alex/anaconda3/lib/python3.8/site-packages (from catkin_pkg) (2.4.7)
Requirement already satisfied: docutils in /home/alex/anaconda3/lib/python3.8/site-packages (from catkin_pkg) (0.17.1)
Requirement already satisfied: python-dateutil in /home/alex/anaconda3/lib/python3.8/site-packages (from catkin_pkg) (2.8.1)
Requirement already satisfied: six>=1.5 in /home/alex/anaconda3/lib/python3.8/site-packages (from python-dateutil->catkin_pkg) (1.15.0)
Installing collected packages: catkin-pkg
Successfully installed catkin-pkg-0.4.24

再次测试成功:

base) alex@ubuntu-16-04:~/catkin$ catkin_makCommand 'catkin_mak' not found, did you mean:command 'catkin_make' from deb catkin (0.8.0-1ubuntu2)Try: sudo apt install <deb name>(base) alex@ubuntu-16-04:~/catkin$ catkin_make
Base path: /home/alex/catkin
Source space: /home/alex/catkin/src
Build space: /home/alex/catkin/build
Devel space: /home/alex/catkin/devel
Install space: /home/alex/catkin/install
####
#### Running command: "cmake /home/alex/catkin/src -DCATKIN_DEVEL_PREFIX=/home/alex/catkin/devel -DCMAKE_INSTALL_PREFIX=/home/alex/catkin/install -G Unix Makefiles" in "/home/alex/catkin/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/alex/catkin/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /opt/ros/noetic
-- Found PythonInterp: /home/alex/anaconda3/bin/python3 (found suitable version "3.8.8", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /home/alex/anaconda3/bin/python3
-- Using Debian Python package layout
-- Using empy: /home/alex/anaconda3/lib/python3.8/site-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/alex/catkin/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /home/alex/anaconda3/bin/python3 (found version "3.8.8")
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/catkin/build
####
#### Running command: "make -j4 -l4" in "/home/alex/catkin/build"
####

ros noetic catkin_make 失败解决方法相关推荐

  1. Jenkins执行shell脚本启动tomcat失败解决方法

    Jenkins执行shell脚本启动tomcat失败解决方法 参考文章: (1)Jenkins执行shell脚本启动tomcat失败解决方法 (2)https://www.cnblogs.com/wa ...

  2. SVN地址正确,能在网页打开,但是检出失败解决方法

    SVN地址正确,能在网页打开,但是检出失败解决方法 参考文章: (1)SVN地址正确,能在网页打开,但是检出失败解决方法 (2)https://www.cnblogs.com/zzd0916/p/76 ...

  3. svn update 报错,必须先cleanup,然后cleanup失败解决方法

    svn update 报错,必须先cleanup,然后cleanup失败解决方法 参考文章: (1)svn update 报错,必须先cleanup,然后cleanup失败解决方法 (2)https: ...

  4. Jenkins安装maven integration plugin失败解决方法

    Jenkins安装maven integration plugin失败解决方法 参考文章: (1)Jenkins安装maven integration plugin失败解决方法 (2)https:// ...

  5. ubuntu sudo apt-get update 失败 解决方法

    ubuntu sudo apt-get update 失败 解决方法 参考文章: (1)ubuntu sudo apt-get update 失败 解决方法 (2)https://www.cnblog ...

  6. 检索 COM 类工厂中 CLSID 为 {10020200-E260-11CF-AE68-00AA004A34D5} 的组件时失败,解决方法如下:...

    检索 COM 类工厂中 CLSID 为 {10020200-E260-11CF-AE68-00AA004A34D5} 的组件时失败,解决方法如下: 第 一步:首先将msvcr71.dll,  SQLD ...

  7. 访问IIS元数据库失败解决方法(转)

    访问IIS元数据库失败解决方法(转) 这个问题一般在做.net开发网站时候会遇到,我就是在那个时候遇到的 访问 IIS 元数据库失败 解决方法 现象如下: 访问 IIS 元数据库失败. 说明: 执行当 ...

  8. ORA-12638: 身份证明检索失败 解决方法

    用PL/SQL或Navicat连接本地或远程Oracle数据库的时候报错:ORA-12638: 身份证明检索失败 解决方法: 开始 -> 所有程序 -> Oracle - Oracle_h ...

  9. android studio socket 失败,Android应用开发Android Studio建立Socket连接失败解决方法

    本文将带你了解Android应用开发Android Studio建立Socket连接失败解决方法,希望本文对大家学Android有所帮助. < Android Studio建立Socket连接失 ...

最新文章

  1. 独家 | 用spaCy蒸馏BERT模型
  2. 自动管理Windows2003好用的“远程桌面”
  3. git File name too long
  4. 【数学建模】MATLAB应用实战系列(九十三)-岭回归应用案例(附MATLAB和Python代码)
  5. 第6章 Selenium2-Java 自动化测试模型
  6. BGP——路由抖动惩罚机制(讲解+配置)
  7. 【赛尔笔记】文本摘要论文列表
  8. 抛出异常,打印错误信息,追踪错误
  9. ARG MIN的含义是什么?
  10. numpy库学习总结
  11. 管理感悟:管理人员要不要技术好
  12. java中的移位操作
  13. 2021年1月PHP面试题总结
  14. 荔枝派zero编译rtl8723bs驱动并连接WiFi
  15. uniapp 图片浏览及保存图片到手机
  16. OpenVAS下载与安装
  17. 微服务实施笔记(四)——部署服务发现
  18. win7怎样打开无线服务器,Win7怎么设置tplink路由器_Win7安装tplink路由器方法-192路由网...
  19. 3. oracle学习入门系列之三Unix、Linux历史及基础
  20. 央视3·15晚会起底直播乱象 直播平台佣金高达50%

热门文章

  1. python里叹号的用法涵义_叹号的用法是什么如何正确使用
  2. PostgreSQL中函数json_populate_recordset的参数null::myrowtype如何使用
  3. 百度云Windows Git-2.31.0-64-bit.exe下载,Git Bash
  4. HI3559V200获取IMX458摄像头数据_(3)实例分析+问题解决
  5. text shadow 兼容ie
  6. windows更新后无法上网问题(wifi和有线都不行)
  7. 知乎大神关于高级ios进阶
  8. 基于51单片机的多彩霓虹灯控制系统proteus仿真
  9. 研报精选230505
  10. 实战案例|聚焦攻击面管理,腾讯安全威胁情报守护头部券商资产安全