# Svn 9482, usrp2 trunk, host/apps compile

**URL:** <https://www.ruby-forum.com/t/svn-9482-usrp2-trunk-host-apps-compile/147488>\
**Category:** GNU Radio\
**Created:** [September 2, 2008, 1:02pm UTC](https://www.ruby-forum.com/t/svn-9482-usrp2-trunk-host-apps-compile/147488 "2008-09-02T13:02:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattias\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@mattias\_k](https://www.ruby-forum.com/u/mattias_k)\
**Post date:** [September 2, 2008, 1:02pm UTC](https://www.ruby-forum.com/t/svn-9482-usrp2-trunk-host-apps-compile/147488/1 "2008-09-02T13:02:16Z")

</div>

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/](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

---

<div class="post-metadata">

**Author:** ![mattias\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@mattias\_k](https://www.ruby-forum.com/u/mattias_k)\
**Post date:** [September 2, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/svn-9482-usrp2-trunk-host-apps-compile/147488/2 "2008-09-02T19:57:46Z")

</div>

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

> Downloaded usrp2 trunk, svn co [http://www.gnuradio.org/](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

---

<div class="post-metadata">

**Author:** ![mattias\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@mattias\_k](https://www.ruby-forum.com/u/mattias_k)\
**Post date:** [May 10, 2010, 2:02pm UTC](https://www.ruby-forum.com/t/svn-9482-usrp2-trunk-host-apps-compile/147488/3 "2010-05-10T14:02:46Z")

</div>

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](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](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![mattias\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/74df32/32.png) [@mattias\_k](https://www.ruby-forum.com/u/mattias_k)\
**Post date:** [May 10, 2010, 6:53pm UTC](https://www.ruby-forum.com/t/svn-9482-usrp2-trunk-host-apps-compile/147488/4 "2010-05-10T18:53:47Z")

</div>

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](http://gnuradio.org/redmine/wiki/gnuradio/ReportingErrors)

and ask again.

Eric
