ROS wiki 教程中 make install -j8 -l8 failed

news/2025/1/12 1:59:58/

ROS wiki 教程中 “make install -j8 -l8” failed

之前一直跟着ros wiki 做遇到了一個問題,在生成msg 和 srv 的部分,

按照之前的步驟,一步步往下做,到了編譯的部分,就會出先如下圖所示的錯誤

在这里插入图片描述
一直摸索了半天沒搞明白

最後在師兄的幫忙下,解決了

huang@huang-Lenovo-Gaming:~/catkin_ws$ rm -rf build devel

個人推測的原因應該是之前編譯的過程中的生成文件(之前的tutorial)與結果衝突,導致不能成功編譯,在網上找了很久也沒有找到相關的解決辦法,自己mark一下,如果有大佬看到知道原因,歡顏糾正(小白一枚)

huang@huang-Lenovo-Gaming:~/catkin_ws$ catkin_make
Base path: /home/huang/catkin_ws
Source space: /home/huang/catkin_ws/src
Build space: /home/huang/catkin_ws/build
Devel space: /home/huang/catkin_ws/devel
Install space: /home/huang/catkin_ws/install
####
#### Running command: "cmake /home/huang/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/huang/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/huang/catkin_ws/install -G Unix Makefiles" in "/home/huang/catkin_ws/build"
####
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 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/huang/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/huang/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/huang/catkin_ws/devel;/opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/huang/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.18
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- beginner_tutorials: 1 messages, 1 services
-- Configuring done
-- Generating done
-- Build files have been written to: /home/huang/catkin_ws/build
####
#### Running command: "make -j8 -l8" in "/home/huang/catkin_ws/build"
####
Scanning dependencies of target _beginner_tutorials_generate_messages_check_deps_AddTwoInts
Scanning dependencies of target std_msgs_generate_messages_py
Scanning dependencies of target std_msgs_generate_messages_lisp
Scanning dependencies of target std_msgs_generate_messages_cpp
Scanning dependencies of target _beginner_tutorials_generate_messages_check_deps_Num
Scanning dependencies of target std_msgs_generate_messages_eus
Scanning dependencies of target std_msgs_generate_messages_nodejs
[  0%] Built target std_msgs_generate_messages_eus
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target std_msgs_generate_messages_nodejs
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target _beginner_tutorials_generate_messages_check_deps_AddTwoInts
[  0%] Built target _beginner_tutorials_generate_messages_check_deps_Num
Scanning dependencies of target beginner_tutorials_generate_messages_eus
Scanning dependencies of target beginner_tutorials_generate_messages_lisp
Scanning dependencies of target beginner_tutorials_generate_messages_nodejs
Scanning dependencies of target beginner_tutorials_generate_messages_py
Scanning dependencies of target beginner_tutorials_generate_messages_cpp
[  7%] Generating Lisp code from beginner_tutorials/Num.msg
[ 15%] Generating EusLisp code from beginner_tutorials/Num.msg
[ 23%] Generating Lisp code from beginner_tutorials/AddTwoInts.srv
[ 38%] Generating Javascript code from beginner_tutorials/Num.msg
[ 38%] Generating Javascript code from beginner_tutorials/AddTwoInts.srv
[ 46%] Generating Python from MSG beginner_tutorials/Num
[ 53%] Generating C++ code from beginner_tutorials/Num.msg
[ 61%] Generating EusLisp code from beginner_tutorials/AddTwoInts.srv
[ 69%] Generating EusLisp manifest code for beginner_tutorials
[ 76%] Generating C++ code from beginner_tutorials/AddTwoInts.srv
[ 76%] Built target beginner_tutorials_generate_messages_lisp
[ 76%] Built target beginner_tutorials_generate_messages_nodejs
[ 84%] Generating Python code from SRV beginner_tutorials/AddTwoInts
[ 92%] Generating Python msg __init__.py for beginner_tutorials
[100%] Generating Python srv __init__.py for beginner_tutorials
[100%] Built target beginner_tutorials_generate_messages_cpp
[100%] Built target beginner_tutorials_generate_messages_py
[100%] Built target beginner_tutorials_generate_messages_eus
Scanning dependencies of target beginner_tutorials_generate_messages
[100%] Built target beginner_tutorials_generate_messages

http://www.ppmy.cn/news/217108.html

相关文章

涨薪 50%,从小厂逆袭,坐上美团 L8 技术专家(面经 + 心得)

前言 大多数情况下,程序员的个人技能成长速度,远远大于公司规模或业务的成长速度。所以,跳槽成为了这个行业里最常见的一个词汇。 实际上,跳槽的目的无非是为了涨薪或是职业发展,我也不例外。普通本科毕业后&#xf…

【方向盘】因“双减”失业,厉经9面,终获美团外卖L8的Offer

2021年,会是破卷的元年吗? 本文已被https://yourbatman.cn收录;女娲Knife-Initializr工程可公开访问啦;程序员专用网盘https://wangpan.yourbatman.cn;公号后台回复“专栏列表”获取全部小而美的原创技术专栏 你好&…

RM57L8--创建SPI工程

(一)HAL驱动工程 ① 使能MIBSPI驱动 ② 在【PINMUX】选项中打开和确认对应的复用功能

JAVA SE 基础篇 L7-L8

文章目录 L71 覆盖(1) 成员的覆盖--super.(2) 方法的覆盖(3) 方法覆盖的实例(4) 方法覆盖的意义(5) instanceof 2 基类和子类的类型转换(1) 子类强转为父类(2) 拒绝父类强转为子类 3 Object类(1) Object类作为一切类的共同基类(2) Object类中的常用方法 4 覆盖toString()和equa…

小白学C++ L8关系与逻辑表达式

关系表达式 在C中&#xff0c;关系运算符用于判断表达式之间的大小关系&#xff0c;对两边的值进行6种情况的判断&#xff1a; 大于>和大于等于>运算符小于<和小于等于<运算符相等和不相等!运算符 关系运算符中&#xff0c;表达式结果的类型可以是字符或者数字&am…

L8Linux应用开发综合实战-在线词典项目(day1、2、3)

目录 一、在线词典项目介绍及框架搭建 一、有道词典流程分析及本项目在线词典介绍 1、有道词典功能分析 2、项目流程 二、 在线词典项目演示 三、流程示意图分析 1、客户端 2、服务器 四、客户端代码框架搭建 五、服务器端代码框架搭建 模板结构代码 创建数据库 演示…

(五)Langchain PGVector 补充智能客服匹配式问答

文章目录 资料背景目标FAQ-匹配式问答安装PGVector 向量数据库text2vec-large-chineseLangchain-PGVector测试向量化文本写入QA问答对特别注意问题langchain pgvector表和数据相识性问题匹配 结论 资料 NLP领域五大QA问答场景总结&#xff1a;FQA、DOC-QA、KBQA、TableQA、Tas…

TPLink 无线网卡模拟AP无法上网问题

由于手机需要和台式机网络互连&#xff0c;所以给台式机装了个无线网卡&#xff0c;台式机并启用热点 买了TPLink的无线网卡&#xff0c;下载安装了提供的网卡管理软件&#xff0c;开启模拟AP 但是老是显示下面错误 按照官方提供的解决方法&#xff0c;防火墙和相关服务已经…