在做編譯的時候出現這種情況,
Could not find the required component 'ecl_threads'. 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 "ecl_threads" with
any of the following names:
ecl_threadsConfig.cmake
ecl_threads-config.cmake
Add the installation prefix of "ecl_threads" to CMAKE_PREFIX_PATH or set
"ecl_threads_DIR" to a directory containing one of the above files. If
"ecl_threads" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
follower_velocity_smoother/CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/a/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/a/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:2488: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
打開CMakelists檔案不知道哪兒有問題,求助啊!!!!!
以下時CMakelists檔案的內容
# toplevel CMakeLists.txt for a catkin workspace
# catkin/cmake/toplevel.cmake
cmake_minimum_required(VERSION 2.8.3)
set(CATKIN_TOPLEVEL TRUE)
# search for catkin within the workspace
set(_cmd "catkin_find_pkg" "catkin" "${CMAKE_SOURCE_DIR}")
execute_process(COMMAND ${_cmd}
RESULT_VARIABLE _res
OUTPUT_VARIABLE _outCould not find the required component 'ecl_threads'. 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 "ecl_threads" with
any of the following names:
ecl_threadsConfig.cmake
ecl_threads-config.cmake
Add the installation prefix of "ecl_threads" to CMAKE_PREFIX_PATH or set
"ecl_threads_DIR" to a directory containing one of the above files. If
"ecl_threads" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
follower_velocity_smoother/CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/a/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/a/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:2488: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
ERROR_VARIABLE _err
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
)
if(NOT _res EQUAL 0 AND NOT _res EQUAL 2)
# searching fot catkin resulted in an error
string(REPLACE ";" " " _cmd_str "${_cmd}")
message(FATAL_ERROR "Search for 'catkin' in workspace failed (${_cmd_str}): ${_err}")
endif()
# include catkin from workspace or via find_package()
if(_res EQUAL 0)
set(catkin_EXTRAS_DIR "${CMAKE_SOURCE_DIR}/${_out}/cmake")
# include all.cmake without add_subdirectory to let it operate in same scope
include(${catkin_EXTRAS_DIR}/all.cmake NO_POLICY_SCOPE)
add_subdirectory("${_out}")
else()
# use either CMAKE_PREFIX_PATH explicitly passed to CMake as a command line argument
# or CMAKE_PREFIX_PATH from the environment
if(NOT DEFINED CMAKE_PREFIX_PATH)
if(NOT "$ENV{CMAKE_PREFIX_PATH}" STREQUAL "")
if(NOT WIN32)
string(REPLACE ":" ";" CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
else()
set(CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
endif()
endif()
endif()
# list of catkin workspaces
set(catkin_search_path "")
foreach(path ${CMAKE_PREFIX_PATH})
if(EXISTS "${path}/.catkin")
list(FIND catkin_search_path ${path} _index)
if(_index EQUAL -1)
list(APPEND catkin_search_path ${path})
endif()
endif()
endforeach()
# search for catkin in all workspaces
set(CATKIN_TOPLEVEL_FIND_PACKAGE TRUE)
find_package(catkin QUIET
NO_POLICY_SCOPE
PATHS ${catkin_search_path}
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
unset(CATKIN_TOPLEVEL_FIND_PACKAGE)
if(NOT catkin_FOUND)
message(FATAL_ERROR "find_package(catkin) failed. catkin was neither found in the workspace nor in the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh was sourced before.")
endif()
endif()
catkin_workspace()
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/97975.html
標籤:機器視覺
上一篇:創建自定義筆刷技巧
