近日在學習rosparameter相關的c++編程實作,在編譯源代碼部分遇到錯誤“Invoking "make -j4 -l4" failed”,整體編譯程序如下所示,還請大神幫忙指點一二:
elisa@Elisa:~/ROS21Lecture/catkin_ws$ catkin_make
Base path: /home/elisa/ROS21Lecture/catkin_ws
Source space: /home/elisa/ROS21Lecture/catkin_ws/src
Build space: /home/elisa/ROS21Lecture/catkin_ws/build
Devel space: /home/elisa/ROS21Lecture/catkin_ws/devel
Install space: /home/elisa/ROS21Lecture/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/elisa/ROS21Lecture/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/elisa/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/elisa/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/elisa/catkin_ws/devel;/opt/ros/kinetic
-- 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/elisa/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- 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 3 packages in topological order:
-- ~~ - grid_path_searcher
-- ~~ - rviz_plugins
-- ~~ - waypoint_generator
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'grid_path_searcher'
-- ==> add_subdirectory(grid_path_searcher)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- iostreams
-- serialization
-- chrono
-- atomic
-- regex
-- Checking for module 'libopenni2'
-- No package 'libopenni2' found
-- Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS)
** WARNING ** io features related to openni2 will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
-- The imported target "vtkRenderingPythonTkWidgets" references the file
"/usr/lib/i386-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.
-- The imported target "vtk" references the file
"/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.
-- Checking for module 'libopenni2'
-- No package 'libopenni2' found
-- Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS)
** WARNING ** visualization features related to openni2 will be disabled
-- looking for PCL_COMMON
-- looking for PCL_KDTREE
-- looking for PCL_OCTREE
-- looking for PCL_SEARCH
-- looking for PCL_IO
-- looking for PCL_SAMPLE_CONSENSUS
-- looking for PCL_FILTERS
-- looking for PCL_GEOMETRY
-- looking for PCL_FEATURES
-- looking for PCL_SEGMENTATION
-- looking for PCL_SURFACE
-- looking for PCL_REGISTRATION
-- looking for PCL_RECOGNITION
-- looking for PCL_KEYPOINTS
-- looking for PCL_VISUALIZATION
-- looking for PCL_PEOPLE
-- looking for PCL_OUTOFCORE
-- looking for PCL_TRACKING
-- looking for PCL_APPS
-- Could NOT find PCL_APPS (missing: PCL_APPS_LIBRARY)
-- looking for PCL_MODELER
-- looking for PCL_IN_HAND_SCANNER
-- looking for PCL_POINT_CLOUD_EDITOR
-- +++ processing catkin package: 'rviz_plugins'
-- ==> add_subdirectory(rviz_plugins)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Using Qt5 based on the rviz_QT_VERSION: 5.5.1
-- +++ processing catkin package: 'waypoint_generator'
-- ==> add_subdirectory(waypoint_generator)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Configuring done
-- Generating done
-- Build files have been written to: /home/elisa/catkin_ws/build
####
#### Running command: "make -j4 -l4" in "/home/elisa/ROS21Lecture/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/elisa/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/elisa/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/elisa/catkin_ws/devel;/opt/ros/kinetic
-- 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/elisa/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- 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 3 packages in topological order:
-- ~~ - grid_path_searcher
-- ~~ - rviz_plugins
-- ~~ - waypoint_generator
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'grid_path_searcher'
-- ==> add_subdirectory(grid_path_searcher)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- date_time
-- iostreams
-- serialization
-- chrono
-- atomic
-- regex
-- Checking for module 'libopenni2'
-- No package 'libopenni2' found
-- Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS)
** WARNING ** io features related to openni2 will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
-- The imported target "vtkRenderingPythonTkWidgets" references the file
"/usr/lib/i386-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.
-- The imported target "vtk" references the file
"/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.
-- Checking for module 'libopenni2'
-- No package 'libopenni2' found
-- Could NOT find OpenNI2 (missing: OPENNI2_LIBRARY OPENNI2_INCLUDE_DIRS)
** WARNING ** visualization features related to openni2 will be disabled
-- looking for PCL_COMMON
-- looking for PCL_KDTREE
-- looking for PCL_OCTREE
-- looking for PCL_SEARCH
-- looking for PCL_IO
-- looking for PCL_SAMPLE_CONSENSUS
-- looking for PCL_FILTERS
-- looking for PCL_GEOMETRY
-- looking for PCL_FEATURES
-- looking for PCL_SEGMENTATION
-- looking for PCL_SURFACE
-- looking for PCL_REGISTRATION
-- looking for PCL_RECOGNITION
-- looking for PCL_KEYPOINTS
-- looking for PCL_VISUALIZATION
-- looking for PCL_PEOPLE
-- looking for PCL_OUTOFCORE
-- looking for PCL_TRACKING
-- looking for PCL_APPS
-- Could NOT find PCL_APPS (missing: PCL_APPS_LIBRARY)
-- looking for PCL_MODELER
-- looking for PCL_IN_HAND_SCANNER
-- looking for PCL_POINT_CLOUD_EDITOR
-- +++ processing catkin package: 'rviz_plugins'
-- ==> add_subdirectory(rviz_plugins)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Using Qt5 based on the rviz_QT_VERSION: 5.5.1
-- +++ processing catkin package: 'waypoint_generator'
-- ==> add_subdirectory(waypoint_generator)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Configuring done
-- Generating done
-- Build files have been written to: /home/elisa/catkin_ws/build
CMake Error: Target DependInfo.cmake file not found
Scanning dependencies of target turtle_command_server
CMake Error: Directory Information file not found
CMake Error: Target DependInfo.cmake file not foundCMake Error: Target DependInfo.cmake file not found
Scanning dependencies of target std_msgs_generate_messages_cpp
CMake Error: Directory Information file not found
Scanning dependencies of target turtle_spawn
CMake Error: Directory Information file not found
CMake Error: Target DependInfo.cmake file not found
Scanning dependencies of target _learning_service_generate_messages_check_deps_Person
CMake Error: Directory Information file not found
make[2]: *** No rule to make target '/home/elisa/catkin_ws/src/learning_service/src/turtle_command_server.cpp', needed by 'learning_service/CMakeFiles/turtle_command_server.dir/src/turtle_command_server.cpp.o'。 停止。
CMakeFiles/Makefile2:1032: recipe for target 'learning_service/CMakeFiles/turtle_command_server.dir/all' failed
make[1]: *** [learning_service/CMakeFiles/turtle_command_server.dir/all] Error 2
make[1]: *** 正在等待未完成的任務....
make[2]: *** No rule to make target '/home/elisa/catkin_ws/src/learning_service/src/turtle_spawn.cpp', needed by 'learning_service/CMakeFiles/turtle_spawn.dir/src/turtle_spawn.cpp.o'。 停止。
CMakeFiles/Makefile2:1198: recipe for target 'learning_service/CMakeFiles/turtle_spawn.dir/all' failed
make[1]: *** [learning_service/CMakeFiles/turtle_spawn.dir/all] Error 2
[ 0%] Built target std_msgs_generate_messages_cpp
Traceback (most recent call last):
File "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py", line 57, in
uj5u.com熱心網友回復:
先把缺失的檔案找到再說吧,估計就兩種原因要么你下載的原始碼檔案不全,要么編譯環境配置不全,第二種可能比較大轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/77677.html
標籤:應用程序開發區
上一篇:VMware Fusion 安裝vmware tool 打開是空的
下一篇:求助,運行.sh檔案
