./configure fail to find boost in a custom location

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

./configure fail to find boost in a custom location

slitvinov
./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/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: ./configure fail to find boost in a custom location

Tiago Peixoto
Administrator
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#installing-in-a-specific-location-eg-in-a-home-directory

Best,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>
Reply | Threaded
Open this post in threaded view
|

Re: ./configure fail to find boost in a custom location

slitvinov
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/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool