discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] How to specify boost include path to configure?


From: Justin Ford
Subject: Re: [Discuss-gnuradio] How to specify boost include path to configure?
Date: Tue, 6 Dec 2011 19:08:57 +0000



>
> How do I point configure for gnuradio to the boost141 include directory?
>

I discovered that libraries from a failed attempt at building boost from source 
were being used.  I removed these, and now my problem is more fundamental: 
configure fails to identify boost.  I have boost141 (v1.41) from EPEL on my 
RHEL 5.7 machine.  The libraries are in /usr/lib64/boost141.  The includes are 
in /usr/include/boost141/boost.

How do I get configure to see the correct libraries and includes?

Presently I have:

$ PYTHON="/usr/bin/python26" SWIG="/usr/share/swig/2.0.4/bin/swig" ./configure 
--with-boost-libdir=/usr/lib64/boost141 --with-boost=/usr/include/boost141

<snip>
configure:20483: checking for boost >= 1.35
configure:20545: g++ -c   -I/usr/include/boost141/include conftest.cpp >&5
conftest.cpp:112:8: error: #error Boost version is too old
configure:20545: $? = 1
configure: failed program was:
| /* confdefs.h */
<snip>
| /* end confdefs.h.  */
| 
|     #include <boost/version.hpp>
| 
| int
| main ()
| {
| 
|     #if BOOST_VERSION >= 103500
|     // Everything is okay
|     #else
|     #  error Boost version is too old
|     #endif
| 
|   ;
|   return 0;
| }
configure:20625: g++ -c   -I/include/boost-0 conftest.cpp >&5
conftest.cpp:112:12: error: #error Boost version is too old
configure:20625: $? = 1
configure: failed program was:
| /* confdefs.h */
<snip>
| /* end confdefs.h.  */
| 
|         #include <boost/version.hpp>
| 
| int
| main ()
| {
| 
|         #if BOOST_VERSION >= 103500
|         // Everything is okay
|         #else
|         #  error Boost version is too old
|         #endif
| 
|   ;
|   return 0;
| }
configure:20644: result: no
configure:20648: error: we could not detect the boost libraries (version 1.35 
or higher).
If you are sure you have boost installed, then check your version number 
looking in <boost/version.hpp>.

I have symlinked /usr/include/boost141/include to /usr/include/boost141/boost 
but I suspect that the path being followed is 
/usr/include/boost141/include/boost which doesn't exist.

What's the right way to do this?

Justin
                                          


reply via email to

[Prev in Thread] Current Thread [Next in Thread]