tôi đã cố gắng tất cả mọi thứ như:CMake là không thể tìm thấy thư viện BOOST
- biến môi trường Configure
- Hãy build tươi
- Cài đặt lại BOOST từ nguồn
sudo apt-get install libboost-all-dev
Nhưng vẫn nhận được lỗi sau:
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.
thư mục Source mã cho tăng: /usr/local/src/boost_1_45_0
Boost Thư viện đường dẫn: /usr/local/lib
Boost header file: /usr/local/include/boost
Đây là 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"
Làm thế nào để giải quyết những lỗi? Tui bỏ lỡ điều gì vậy?
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=
Bạn có thể hiển thị đầu ra của CMake nếu bạn làm 'cmake. -DBoost_DEBUG = ON'? – Fraser
@Fraser: http: //pastebin.com/cPRNegEi BTW phiên bản tăng cường của tôi là 1_45_0 –
Có vẻ như nó không chọn các biến môi trường. Xem các dòng 8-10 của đầu ra của bạn. Bạn có thể thử chuyển chúng dưới dạng biến CMake. Có lẽ chỉ cần BOOST_ROOT là đủ: 'cmake. -DBOOST_ROOT =/usr/local' – Fraser