Error During ROS install, "Unable to find the requested Boost libraries"
I am having having trouble installing ROS kinetic on Raspbian sketch, using the instructions at Installing ROS Kinetic on the Raspberry Pi . It works fine up until 3.2.2 Resolving Dependencies with rosdep. But when I run the command
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic
I get error when it tries to process class_loader
the message reads
imported targets not available for Boost version Call Stack
It is unable to find requested boost libraries. I am pasting the entire console ouput after the last successful package processing:
Processing catkin package: 'class_loader'
==> Building with env: '/opt/ros/kinetic/env.sh'
==> cmake /home/pi/ros_catkin_ws/src/class_loader -DCATKIN_DEVEL_PREFIX=/home/pi/ros_catkin_ws/devel_isolated/class_loader -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/pi/ros_catkin_ws/build_isolated/class_loader'
CMake Warning at /usr/share/cmake-3.7/Modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.7/Modules/FindBoost.cmake:1470 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:4 (find_package)
CMake Warning at /usr/share/cmake-3.7/Modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.7/Modules/FindBoost.cmake:1470 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:4 (find_package)
CMake Error at /usr/share/cmake-3.7/Modules/FindBoost.cmake:1831 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
-- Using CATKIN_DEVEL_PREFIX: /home/pi/ros_catkin_ws/devel_isolated/class_loader
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /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/pi/ros_catkin_ws/build_isolated/class_loader/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.8
-- Searching for Poco library...
-- Found Poco!
-- components found: Foundation.
CMake Warning at /usr/share/cmake-3.7/Modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.7/Modules/FindBoost.cmake:1470 (_Boost_MISSING_DEPENDENCIES)
test/CMakeLists.txt:3 (find_package)
CMake Error at /usr/share/cmake-3.7/Modules/FindBoost.cmake:1831 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
test/CMakeLists.txt:3 (find_package)
CMake Error at /home/pi/ros_catkin_ws/devel_isolated/class_loader/share/class_loader/cmake/class_loaderConfig.cmake:113 (message):
Project 'class_loader' specifies 'Boost_INCLUDE_DIR-NOTFOUND' as an include
dir, which is not found. It does neither exist as an absolute directory
nor in
'/home/pi ...
Welcome! I formatted your question for you, but in the future please use the preformatted text (
101010
) button to format any code or terminal output. Otherwise, it just looks like a wall of text that's difficult to read.I've seen similar issues (on regular
amd64
hosts) with such new CMake versions. You're using3.7
, while Kinetic is specced to work with3.0.2
(see REP-3). That is a huge difference. Not saying it is the cause though.But aren't those the minimum requirements? And if that is the cause, how should I go about fixing it?
Yes, they are the minimum requirements, but CMake has evolved quite a bit. Again, I'm not sure, as I haven't digged into the issue myself. Which version of Boost do you have installed?
Perhaps @Dirk Thomas can way in.
I ask because I get a lot of Google results (searching for
Imported targets not available for Boost version
) that seem to imply that newer Boost versions require new CMake versions.See https://stackoverflow.com/questions/4... fi.