# Error installing gnuradio+uhd --\> gr-uhd/swig

**URL:** <https://www.ruby-forum.com/t/error-installing-gnuradio-uhd-gr-uhd-swig/206814>\
**Category:** GNU Radio\
**Created:** [May 11, 2011, 1:49am UTC](https://www.ruby-forum.com/t/error-installing-gnuradio-uhd-gr-uhd-swig/206814 "2011-05-11T01:49:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 11, 2011, 1:49am UTC](https://www.ruby-forum.com/t/error-installing-gnuradio-uhd-gr-uhd-swig/206814/1 "2011-05-11T01:49:17Z")

</div>

Hi there,

Please could someone shed some lights on the following problem I am  
facing.

I have installed UHD drivers following the guidance from this site:  
[http://www.raullen.net/2011/02/20/hello-usrp-n210-how-to-make-usrp-n210-running/](http://www.raullen.net/2011/02/20/hello-usrp-n210-how-to-make-usrp-n210-running/)

My N210 works perfectly. I have even installed openbts-uhd, all works  
well.

Unfortunately, I am having problem install Gnuradio with the gr-uhd.

git clone [gnuradio.git - GNU Radio](http://gnuradio.org/git/gnuradio.git)  
cd gnuradio  
./bootstrap  
./configure --enable-gr-uhd  
make

All component made without errors except the gr-uhd. The errors are:

make[5]: Entering directory `/home/jonathan/gnuradio/gr-uhd/swig' if /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/home/jonathan/gnuradio/gnuradio-core/src/lib/runtime -I/home/jonathan/gnuradio/gnuradio-core/src/lib/general -I/home/jonathan/gnuradio/gnuradio-core/src/lib/general -I/home/jonathan/gnuradio/gnuradio-core/src/lib/gengen -I/home/jonathan/gnuradio/gnuradio-core/src/lib/gengen -I/home/jonathan/gnuradio/gnuradio-core/src/lib/filter -I/home/jonathan/gnuradio/gnuradio-core/src/lib/filter -I/home/jonathan/gnuradio/gnuradio-core/src/lib/missing -I/home/jonathan/gnuradio/gnuradio-core/src/lib/reed-solomon -I/home/jonathan/gnuradio/gnuradio-core/src/lib/viterbi -I/home/jonathan/gnuradio/gnuradio-core/src/lib/io -I/home/jonathan/gnuradio/gnuradio-core/src/lib/g72x -I/home/jonathan/gnuradio/gnuradio-core/src/lib/swig -I/home/jonathan/gnuradio/gnuradio-core/src/lib/hier -I/home/jonathan/gnuradio/gnuradio-core/src/lib/swig -I/home/jonathan/gnuradio/gruel/src/include -I/home/jonathan/gnuradio/gruel/src/include -I/usr/include -I/usr/include/python2.6 -I/usr/local/include -I/home/jonathan/gnuradio/gr-uhd/include -g -O1 -Wno-strict-aliasing -Wno-parentheses -I../.. -pthread -MT _uhd_swig_la-uhd_swig.lo -MD -MP -MF ".deps/_uhd_swig_la-uhd_swig.Tpo" -c -o _uhd_swig_la-uhd_swig.lo `test -f ‘python/uhd\_swig.cc’ || echo ‘./‘`python/uhd_swig.cc; \ then mv -f ".deps/_uhd_swig_la-uhd_swig.Tpo" ".deps/_uhd_swig_la-uhd_swig.Plo"; else rm -f ".deps/_uhd_swig_la-uhd_swig.Tpo"; exit 1; fi libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/home/jonathan/gnuradio/gnuradio-core/src/lib/runtime -I/home/jonathan/gnuradio/gnuradio-core/src/lib/general -I/home/jonathan/gnuradio/gnuradio-core/src/lib/general -I/home/jonathan/gnuradio/gnuradio-core/src/lib/gengen -I/home/jonathan/gnuradio/gnuradio-core/src/lib/gengen -I/home/jonathan/gnuradio/gnuradio-core/src/lib/filter -I/home/jonathan/gnuradio/gnuradio-core/src/lib/filter -I/home/jonathan/gnuradio/gnuradio-core/src/lib/missing -I/home/jonathan/gnuradio/gnuradio-core/src/lib/reed-solomon -I/home/jonathan/gnuradio/gnuradio-core/src/lib/viterbi -I/home/jonathan/gnuradio/gnuradio-core/src/lib/io -I/home/jonathan/gnuradio/gnuradio-core/src/lib/g72x -I/home/jonathan/gnuradio/gnuradio-core/src/lib/swig -I/home/jonathan/gnuradio/gnuradio-core/src/lib/hier -I/home/jonathan/gnuradio/gnuradio-core/src/lib/swig -I/home/jonathan/gnuradio/gruel/src/include -I/home/jonathan/gnuradio/gruel/src/include -I/usr/include -I/usr/include/python2.6 -I/usr/local/include -I/home/jonathan/gnuradio/gr-uhd/include -g -O1 -Wno-strict-aliasing -Wno-parentheses -I../.. -pthread -MT _uhd_swig_la-uhd_swig.lo -MD -MP -MF .deps/_uhd_swig_la-uhd_swig.Tpo -c python/uhd_swig.cc -fPIC -DPIC -o .libs/_uhd_swig_la-uhd_swig.o python/uhd_swig.cc: In function PyObject* _wrap_tune_request_t_inter_freq_policy_set(PyObject*, PyObject*): python/uhd_swig.cc:12088: error: struct uhd::tune_request_t has no member named inter_freq_policy python/uhd_swig.cc: In function PyObject* _wrap_tune_request_t_inter_freq_policy_get(PyObject*, PyObject*): python/uhd_swig.cc:12110: error: struct uhd::tune_request_t has no member named inter_freq_policy python/uhd_swig.cc: In function PyObject* _wrap_tune_request_t_inter_freq_set(PyObject*, PyObject*): python/uhd_swig.cc:12140: error: struct uhd::tune_request_t has no member named inter_freq python/uhd_swig.cc: In function PyObject* _wrap_tune_request_t_inter_freq_get(PyObject*, PyObject*): python/uhd_swig.cc:12162: error: struct uhd::tune_request_t has no member named inter_freq python/uhd_swig.cc: In function PyObject* _wrap_tune_result_t_target_inter_freq_set(PyObject*, PyObject*): python/uhd_swig.cc:12335: error: struct uhd::tune_result_t has no member named target_inter_freq python/uhd_swig.cc: In function PyObject* _wrap_tune_result_t_target_inter_freq_get(PyObject*, PyObject*): python/uhd_swig.cc:12357: error: struct uhd::tune_result_t has no member named target_inter_freq python/uhd_swig.cc: In function PyObject* _wrap_tune_result_t_actual_inter_freq_set(PyObject*, PyObject*): python/uhd_swig.cc:12387: error: struct uhd::tune_result_t has no member named actual_inter_freq python/uhd_swig.cc: In function PyObject* _wrap_tune_result_t_actual_inter_freq_get(PyObject*, PyObject*): python/uhd_swig.cc:12409: error: struct uhd::tune_result_t has no member named actual_inter_freq make[5]: *** [_uhd_swig_la-uhd_swig.lo] Error 1 make[5]: Leaving directory `/home/jonathan/gnuradio/gr-uhd/swig’  
make[4]: \*\*\* [all] Error 2  
make[4]: Leaving directory `/home/jonathan/gnuradio/gr-uhd/swig' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/jonathan/gnuradio/gr-uhd’  
make[2]: \*\*\* [all] Error 2  
make[2]: Leaving directory `/home/jonathan/gnuradio/gr-uhd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jonathan/gnuradio’  
make: \*\*\* [all] Error 2

Hear from you soon.

Best regards,  
Jonathan

---

<div class="post-metadata">

**Author:** ![Jonathan\_Loo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Jonathan\_Loo](https://www.ruby-forum.com/u/Jonathan_Loo)\
**Post date:** [May 11, 2011, 2:15am UTC](https://www.ruby-forum.com/t/error-installing-gnuradio-uhd-gr-uhd-swig/206814/2 "2011-05-11T02:15:47Z")

</div>

On 05/10/2011 04:45 PM, Jonathan Loo wrote:

> git clone [gnuradio.git - GNU Radio](http://gnuradio.org/git/gnuradio.git)  
> cd gnuradio  
> ./bootstrap  
> ./configure --enable-gr-uhd  
> make

That was related to a recent bug fix.  
Can you remove python/uhd\_swig.cc so it gets regenerated and/or make  
clean and try again?

-Josh

---

<div class="post-metadata">

**Author:** ![Jonathan\_Loo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Jonathan\_Loo](https://www.ruby-forum.com/u/Jonathan_Loo)\
**Post date:** [May 11, 2011, 3:43pm UTC](https://www.ruby-forum.com/t/error-installing-gnuradio-uhd-gr-uhd-swig/206814/3 "2011-05-11T15:43:23Z")

</div>

Hi Josh, and others,

I have tried your suggestion by removing the python/uhd\_swig.cc, and I  
follow the usual steps again from “./bootstrap” to “make”.  
Unfortunately, the errors still persist.

make[5]: \*\*\* [\_uhd\_swig\_la-uhd\_swig.lo] Error 1  
make[5]: Leaving directory `/home/jonathan/gnuradio/gr-uhd/swig' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/jonathan/gnuradio/gr-uhd/swig’  
make[3]: \*\*\* [all-recursive] Error 1  
make[3]: Leaving directory `/home/jonathan/gnuradio/gr-uhd' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/jonathan/gnuradio/gr-uhd’  
make[1]: \*\*\* [all-recursive] Error 1  
make[1]: Leaving directory `/home/jonathan/gnuradio’  
make: \*\*\* [all] Error 2

Any other suggestion to resolve these errors?

Another question:  
As I learned from others, I set the environment variables as follows:

export LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:/usr/local/lib  
export PKG\_CONFIG\_PATH=/usr/local/lib/pkgconfig

I guess this is pointing towards the UHD driver which stalled in there.  
I wonder if the above variables got anything to do with the gnuradio  
installation?

Hope to hear from anyone.

Kind regards,  
Jonathan

* * *

From: [discuss-gnuradio-bounces+j.loo=removed\_email\_address@domain.invalid](mailto:discuss-gnuradio-bounces+j.loo=removed_email_address@domain.invalid)  
[discuss-gnuradio-bounces+j.loo=removed\_email\_address@domain.invalid] On Behalf Of Josh  
Blum [removed\_email\_address@domain.invalid]  
Sent: 11 May 2011 00:59  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] error installing gnuradio+uhd →   
gr-uhd/swig

On 05/10/2011 04:45 PM, Jonathan Loo wrote:

> git clone [gnuradio.git - GNU Radio](http://gnuradio.org/git/gnuradio.git)  
> cd gnuradio  
> ./bootstrap  
> ./configure --enable-gr-uhd  
> make

That was related to a recent bug fix.  
Can you remove python/uhd\_swig.cc so it gets regenerated and/or make  
clean and try again?

-Josh

* * *

Discuss-gnuradio mailing list  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> **[Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)**

---

<div class="post-metadata">

**Author:** ![Jonathan\_Loo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Jonathan\_Loo](https://www.ruby-forum.com/u/Jonathan_Loo)\
**Post date:** [May 11, 2011, 6:42pm UTC](https://www.ruby-forum.com/t/error-installing-gnuradio-uhd-gr-uhd-swig/206814/4 "2011-05-11T18:42:51Z")

</div>

On Wed, May 11, 2011 at 4:38 PM, Josh B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Just nuke everything. Delete the source repository checkouts and any  
> installed folders from uhd/gnuradio. It will probably be quicker, and  
> you will catch the problem if there is one.
> 
> Marcus has an automated script to install everything floating around on  
> this list. If that helps.
> 
> -josh

Make sure you take care of anything in /usr/lib or /usr/include. Somehow  
some UHD stuff was installed there on my machine (probably from a deb  
package install at some point) and was taking over, so the newer libuhd  
built and installed into /usr/local/ was not being found and causing  
this  
problem.

Tom

---

<div class="post-metadata">

**Author:** ![Jonathan\_Loo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Jonathan\_Loo](https://www.ruby-forum.com/u/Jonathan_Loo)\
**Post date:** [May 11, 2011, 5:39pm UTC](https://www.ruby-forum.com/t/error-installing-gnuradio-uhd-gr-uhd-swig/206814/5 "2011-05-11T17:39:52Z")

</div>

Just nuke everything. Delete the source repository checkouts and any  
installed folders from uhd/gnuradio. It will probably be quicker, and  
you will catch the problem if there is one.

Marcus has an automated script to install everything floating around on  
this list. If that helps.

-josh

---

<div class="post-metadata">

**Author:** ![Jonathan\_Loo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Jonathan\_Loo](https://www.ruby-forum.com/u/Jonathan_Loo)\
**Post date:** [May 11, 2011, 8:24pm UTC](https://www.ruby-forum.com/t/error-installing-gnuradio-uhd-gr-uhd-swig/206814/6 "2011-05-11T20:24:56Z")

</div>

Thanks…Josh and Tom. Both your comments are extremely useful!

I have got it fully working now. I have actually reinstalled a clean  
Ubuntu 11.04, and just executed Marcus’ script. It works beautifully…!

Jonathan

* * *

From: Tom R. [removed\_email\_address@domain.invalid]  
Sent: 11 May 2011 17:41  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Cc: Jonathan Loo; [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Discuss-gnuradio] error installing gnuradio+uhd →   
gr-uhd/swig

On Wed, May 11, 2011 at 4:38 PM, Josh B.  
\<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
Just nuke everything. Delete the source repository checkouts and any  
installed folders from uhd/gnuradio. It will probably be quicker, and  
you will catch the problem if there is one.

Marcus has an automated script to install everything floating around on  
this list. If that helps.

-josh

Make sure you take care of anything in /usr/lib or /usr/include. Somehow  
some UHD stuff was installed there on my machine (probably from a deb  
package install at some point) and was taking over, so the newer libuhd  
built and installed into /usr/local/ was not being found and causing  
this problem.

Tom

On 05/11/2011 06:41 AM, Jonathan Loo wrote:

> make[3]: Leaving directory `/home/jonathan/gnuradio/gr-uhd’
> 
> * * *
> 
> > I have installed UHD drivers following the guidance from this site:  
> > [http://www.raullen.net/2011/02/20/hello-usrp-n210-how-to-make-usrp-n210-running/](http://www.raullen.net/2011/02/20/hello-usrp-n210-how-to-make-usrp-n210-running/)
> 
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

* * *

Discuss-gnuradio mailing list  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

---

<div class="post-metadata">

**Author:** ![Jonathan\_Loo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Jonathan\_Loo](https://www.ruby-forum.com/u/Jonathan_Loo)\
**Post date:** [November 18, 2011, 6:04pm UTC](https://www.ruby-forum.com/t/error-installing-gnuradio-uhd-gr-uhd-swig/206814/7 "2011-11-18T18:04:00Z")

</div>

Hi there,

I got the same problem as Jonathan. I don’t know how to fix it. Can I  
also have the script by Marcus?

Thank you very much!
