ich finden versucht, alles wie:CMake ist nicht in der Lage BOOST Bibliotheken
- konfigurieren Umgebungsvariable
- frisch Make build
- neu installieren BOOST von der Quelle
sudo apt-get install libboost-all-dev
Aber immer noch folgende Fehler:
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (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:147 (find_package)
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (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.
Quellcode-Verzeichnis für boost: /usr/local/src/boost_1_45_0
Boost-Bibliothek Pfad: /usr/local/lib
Boost-Header-Datei: /usr/local/include/boost
Hier ist bashrc file
:
BOOST_ROOT="/usr/local/src/boost_1_45_0"
Boost_LIBRARY_DIRS="/usr/local/lib"
BOOST_INCLUDEDIR="/usr/local/src/boost_1_45_0"
, wie diese Fehler zu lösen? Fehle ich etwas?
Edit:
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN -DBOOST_ROOT=/usr/local/src/boost_1_45_0 -DBOOST_INCLUDEDIR=/usr/local/include/boost -DBOOST_LIBRARYDIR=/usr/local/lib -DPYTHON_LIBRARIES=/usr/local/lib/python2.7 -DPYTHON_INCLUDE_DIRS=/usr/include/python2.7 -DCMA-DRDK_BUILD_PYTHON_WRAPPERS=
Können Sie die Ausgabe von CMake zeigen, wenn Sie 'cmake tun. -DBoost_DEBUG = Ein'? – Fraser
@Fraser: http: //pastebin.com/cPRNegEi BTW meine Boost-Version ist 1_45_0 –
Sieht aus wie es die Umgebungsvariablen nicht abgreift. Siehe Zeilen 8-10 Ihrer Ausgabe. Sie können versuchen, diese als CMake-Variablen zu übergeben. Vielleicht würde auch nur BOOST_ROOT reichen: 'cmake. -DBOOST_ROOT =/usr/local' – Fraser