./configure fail to find boost in a custom location
./configure for graph-toosl 2.31 fails if boost in a custom location ./configure --disable-cairo --disable-openmp --disable-sparsehash --prefix=/users/lisergey --with-boost=/users/lisergey --with-boost-libdir=/users/lisergey/lib --with-boost-python --with-cgal=/users/lisergey --with-python-module-path=/users/lisergey/lib/site-packages checking whether the Boost::Python library is available... yes checking whether boost_python36 is the correct library... yes checking whether the Boost::IOStreams library is available... yes checking for exit in -lboost_iostreams... yes checking whether the Boost::Regex library is available... yes checking for exit in -lboost_regex... yes checking whether the Boost::Context library is available... yes checking for exit in -lboost_context... yes checking whether the Boost::Coroutine library is available... yes checking for exit in -lboost_coroutine... no checking for exit in -lboost_coroutine... (cached) no checking for exit in -lboost_coroutine... (cached) no checking for exit in -lboost_coroutine... (cached) no checking for exit in -lboost_coroutine... (cached) no configure: error: Could not link against boost_coroutine ! It passes if I set extra flags ./configure --disable-cairo --disable-openmp --disable-sparsehash --prefix=/users/lisergey --with-boost=/users/lisergey --with-boost-libdir=/users/lisergey/lib --with-boost-python --with-cgal=/users/lisergey --with-python-module-path=/users/lisergey/lib/site-packages LIBS=-lboost_context -lboost_thread -lboost_regex -lboost_system LDFLAGS=-Wl,-rpath -Wl,/users/lisergey/lib -L/users/lisergey/lib -- Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
Am 01.06.20 um 12:31 schrieb slitvinov:
It passes if I set extra flags ./configure --disable-cairo --disable-openmp --disable-sparsehash --prefix=/users/lisergey --with-boost=/users/lisergey --with-boost-libdir=/users/lisergey/lib --with-boost-python --with-cgal=/users/lisergey --with-python-module-path=/users/lisergey/lib/site-packages LIBS=-lboost_context -lboost_thread -lboost_regex -lboost_system LDFLAGS=-Wl,-rpath -Wl,/users/lisergey/lib -L/users/lisergey/lib
That is what you are supposed to do in these cases; configure cannot guess your custom locations. (But I believe "LIBS" is unnecessary.) It's all explained in the installation instructions: https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions#in... Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
Thank you. I was misinformed by ./configure --help --with-boost-libdir=LIB_DIR Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located. -- Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
participants (2)
-
slitvinov -
Tiago de Paula Peixoto