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

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/

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
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

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

git clone gnuradio.git - GNU Radio
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

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
[discuss-gnuradio-bounces+j.loo=removed_email_address@domain.invalid] On Behalf Of Josh
Blum [[email protected]]
Sent: 11 May 2011 00:59
To: [email protected]
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
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
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

On Wed, May 11, 2011 at 4:38 PM, Josh B. [email protected] 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

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

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. [[email protected]]
Sent: 11 May 2011 17:41
To: [email protected]
Cc: Jonathan Loo; [email protected]
Subject: Re: [Discuss-gnuradio] error installing gnuradio+uhd →
gr-uhd/swig

On Wed, May 11, 2011 at 4:38 PM, Josh B.
<[email protected]mailto:[email protected]> 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/

Discuss-gnuradio Info Page


Discuss-gnuradio mailing list
[email protected]mailto:[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

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!