本文主要是介绍ROS wiki 教程中 make install -j8 -l8 failed,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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
这篇关于ROS wiki 教程中 make install -j8 -l8 failed的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!