Svn 9482, usrp2 trunk, host/apps compile

Hi list,

I checked out usrp2- trunk svn9482 today, and got some errors when I
tried to build it.

the following steps was taken:

Installed boost-1.36, from source with configure --with-libraries=all
option
made a symbolic link from /usr/local/include/boost-1.36 to
/usr/local/include/boost
Downloaded usrp2 trunk, svn co http://www.gnuradio.org/… usrp2
cd usrp2
bootstrap
configure --with-warnings --with-gprof --with-gnu-ld

The configuration went fine, as well as making of the library (I think,
since there is no errors reported from the libs- dir). But when the
make- script tried to compile things from the apps- directory the
following message was produced:

gcc -g -O2 -Wall -pg -o .libs/find_usrps find_usrps.o
…/lib/.libs/libusrp2.so /usr/local/lib/libgruel.so
…/lib/.libs/libusrp2.so: undefined reference to
boost::thread_resource_error::thread_resource_error()' ../lib/.libs/libusrp2.so: undefined reference to typeinfo for
boost::thread_resource_error’
…/lib/.libs/libusrp2.so: undefined reference to
`boost::thread_resource_error::~thread_resource_error()’
collect2: ld returned 1 exit status
make[2]: *** [find_usrps] Error 1

When I check the linking in /usr/local/lib/ all the sym- links for
libboost_* seemd to be linked to boost-1.36, which is the one to use,
right?

Anyone got an idea about what to do about this? Or is it just I who has
“the last PM about the apps directory”.

BR
Mattias

On Tue, Sep 02, 2008 at 01:01:06PM +0200, Mattias K. wrote:

Downloaded usrp2 trunk, svn co http://www.gnuradio.org/… usrp2
cd usrp2
bootstrap
configure --with-warnings --with-gprof --with-gnu-ld

Please don’t create any symlinks etc. The configure macros assume
that boost is installed the way that the boost build system installs it.

I strongly suggest that you build boost as described in the
README.building-boost with a --prefix of /opt/boost_1_36_0.

Eric

I’m still unable to compile apps for USRP2 due to the following errors
on the
Boost libraries:

gcc -g -O2 -Wall -pg -o .libs/find_usrps find_usrps.o
…/lib/.libs/libusrp2.so /usr/local/lib/libgruel.so
…/lib/.libs/libusrp2.so: undefined reference to
boost::thread_resource_error::thread_resource_error()' ../lib/.libs/libusrp2.so: undefined reference to typeinfo for
boost::thread_resource_error’
…/lib/.libs/libusrp2.so: undefined reference to
`boost::thread_resource_error::~thread_resource_error()’
collect2: ld returned 1 exit status
make[2]: *** [find_usrps] Error 1

So PLEASE, can anyone enlighten me about how can I solve this issue so
that
I can test my boards and apps too?

Eric B. wrote:

Installed boost-1.36, from source with configure --with-libraries=all


View this message in context:
http://old.nabble.com/svn-9482%2C-usrp2-trunk%2C-host-apps-compile-tp19268084p28510674.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On Mon, May 10, 2010 at 04:59:15AM -0700, STErm wrote:

…/lib/.libs/libusrp2.so: undefined reference to
`boost::thread_resource_error::~thread_resource_error()’
collect2: ld returned 1 exit status
make[2]: *** [find_usrps] Error 1

So PLEASE, can anyone enlighten me about how can I solve this issue so that
I can test my boards and apps too?

We need more clues from you to be of assistance.

Please read this:

http://gnuradio.org/redmine/wiki/gnuradio/ReportingErrors

and ask again.

Eric