I'm getting this error
CMake Error at /usr/local/share/cmake-3.5/Modules/FindBoost.cmake:1657 (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.
In my CMake I have
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
message("\n\n Boost found \n\n")
endif()
... and then
target_link_libraries(${files}
${catkin_LIBRARIES}
${MY_LIB}
${MY_LIB}
${gsl_LIBRARIES}
# ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_REGEX_LIBRARY}
${Boost_LIBRARIES} #new for catkin ...)
I even tried find_package( Boost REQUIRED COMPONENTS components)
, find_package( Boost REQUIRED)
, find_package(Bost 1.60.0 COMPONENTS filesystem regex)
, or find_package(Boost REQUIRED COMPONENTS system)
... but did not work
For info I installed boost like
$ cd ~/soft/lib/boost/boost_1_60_0
$ /bootstrap.sh
$ ./b2
.. at the end the system prompted
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/home/~/soft/lib/boost/boost_1_60_0
The following directory should be added to linker library paths:
/home/~/soft/lib/boost/boost_1_60_0/stage/lib
I just added these two lines to my .bashrc and sourced it.
export INCLUDE="/home/~/soft/lib/boost/boost_1_60_0:$INCLUDE"
export LIBRARY_PATH="/home/~/soft/lib/boost/boost_1_60_0/stage/lib:$LIBRARY_PATH"
For info I also tried sudo apt-get install libbost-all-dev
, but still nothing. Any idea please?