CMake Error at /usr/lib/cmake/Boost-1.75.0/BoostConfig.cmake:141 (find_package):
Could not find a package configuration file provided by "boost_signals"
(requested version 1.75.0) with any of the following names:
boost_signalsConfig.cmake
boost_signals-config.cmake
Add the installation prefix of "boost_signals" to CMAKE_PREFIX_PATH or set
"boost_signals_DIR" to a directory containing one of the above files. If
"boost_signals" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
/usr/lib/cmake/Boost-1.75.0/BoostConfig.cmake:258 (boost_find_component)
/usr/share/cmake-3.10/Modules/FindBoost.cmake:242 (find_package)
/usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:159 (find_package)
turtlebot3_simulations/turtlebot3_gazebo/CMakeLists.txt:24 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/chen/turtlebot3_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/chen/turtlebot3_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
解决方法:
此处( turtlebot3_simulations/turtlebot3_gazebo/CMakeLists.txt:24 (find_package))报错的行数的find package 注释并设置参数 Boost_INCLUDE_DIRS ,该语句的用以为告诉项目Boost库文件所在。
set(Boost_INCLUDE_DIRS /usr/include/boost)
例如:我的是24行报错,将24行的find package 注释掉,同时在后面加上set(Boost_INCLUDE_DIRS /usr/include/boost)