Ich erhalte diesen FehlerBoost-CMake Problem mit Verknüpfung (Ubuntu 14.04)
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 meinem CMake habe ich
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
message("\n\n Boost found \n\n")
endif()
... und dann
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 sogar versucht find_package(Boost REQUIRED COMPONENTS components)
, find_package(Boost REQUIRED)
, find_package(Bost 1.60.0 COMPONENTS filesystem regex)
oder find_package(Boost REQUIRED COMPONENTS system)
... aber nicht funktioniert
Für Informationen, die ich installiert Schub wie
$ cd ~/soft/lib/boost/boost_1_60_0
$ /bootstrap.sh
$ ./b2
.. am Ende das System
aufgefordertThe 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
Habe ich nur noch diese beiden Zeilen zu meinem .bashrc und bezogen es.
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"
Für Informationen habe ich auch versucht sudo apt-get install libbost-all-dev
, aber immer noch nichts. Irgendeine Idee bitte?
Was über die Einstellung 'BOOST_ROOT' Variable, als Fehlermeldung Ratschläge? – Tsyvarev
Habe den Punkt nicht verstanden. Können Sie bitte klarstellen? – Courier
Setzen Sie 'BOOST_ROOT' auf das Root-Verzeichnis der Boost-Installation. In Ihrem Fall sollte es etwa so aussehen: export BOOST_ROOT =/home/~/soft/lib/boost/boost_1_60_0. – Tsyvarev