[CMake] cmake can't find boost
Tim Chan
vash_the_stampede_twc at yahoo.com
Wed Sep 2 05:27:13 EDT 2009
I am getting the error:
-- Boost version required: 1.35.0. Found: ..
CMake Error at /usr/share/cmake-2.6/Modules/FindBoost.cmake:553 (MESSAGE):
Couldn't find the Boost libraries and/or include directory, or the version
found is too old. Please install the Boost libraries AND development
packages. You can set BOOST_ROOT, BOOST_INCLUDEDIR and BOOST_LIBRARYDIR to
help find Boost.
Call Stack (most recent call first):
cmake/SearchForStuff.cmake:184 (FIND_PACKAGE)
CMakeLists.txt:68 (INCLUDE)
I am running ubuntu 8.10, CMake 2.6-patch 0, and boost 1.40.
I have boost installed in /usr/local/boost_1_40_0
I set the following variables:
export BOOST_ROOT=/usr/local/boost_1_40_0
export BOOST_INCLUDEDIR=/usr/local/boost_1_40_0/boost
export BOOST_LIBRARYDIR=/usr/local/boost_1_40_0/libs
but CMake is still unable to find boost. I know this is a semi-common problem but I couldn't find an adequate fix. Any suggestions?
More information about the CMake
mailing list