Run problems with latest UHD build

Ubuntu 10.4

I (intended) to pull over the latest GIT and did the usual procedure
which has worked before i.e.

cmake …/
make
make test
sudo make install

however, when I run the GNURadio Companion as before, I now get:

Traceback (most recent call last):
File “/home/john/lsb_tx_bpf.py”, line 14, in
from gnuradio import uhd
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/uhd/init.py”, line
27, in
from uhd_swig import *
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/uhd/uhd_swig.py”, line
6, in
import _uhd_swig
ImportError:
/usr/local/lib/python2.6/dist-packages/gnuradio/uhd/_uhd_swig.so:
undefined symbol: _ZNK3uhd12meta_range_tIfE4clipERKfb

I am sure that the error is all mine but would appreciate someone
pointing out where I am going wrong?

Kind Regards,

              John

On Sun, Jan 23, 2011 at 8:11 AM, john [email protected] wrote:

“/usr/local/lib/python2.6/dist-packages/gnuradio/uhd/uhd_swig.py”, line
6, in
import _uhd_swig
ImportError: /usr/local/lib/python2.6/dist-packages/gnuradio/uhd/_uhd_swig.so:
undefined symbol: _ZNK3uhd12meta_range_tIfE4clipERKfb

I am sure that the error is all mine but would appreciate someone
pointing out where I am going wrong?

Hi John,

There have been some API changes in the latest UHD announcement so you
have to rebuild GNU Radio with the new UHD libs (make clean, make,
sudo make install).

Alex

On Sun, 2011-01-23 at 11:43 +0100, Alexandru C. wrote:

sudo make install
File

There have been some API changes in the latest UHD announcement so you
have to rebuild GNU Radio with the new UHD libs (make clean, make,
sudo make install).

Alex

Thanks Alex for the pointer. I have recreated UHD and find_devices
works. When I try GNURadio rebuild, after a lot of (seemingly)
successful operations, I get:

make[4]: Entering directory /home/john/gnuradio/gr-uhd/swig' /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/home/john/gnuradio/gnuradio-core/src/lib/runtime -I/home/john/gnuradio/gnuradio-core/src/lib/general -I/home/john/gnuradio/gnuradio-core/src/lib/general -I/home/john/gnuradio/gnuradio-core/src/lib/gengen -I/home/john/gnuradio/gnuradio-core/src/lib/gengen -I/home/john/gnuradio/gnuradio-core/src/lib/filter -I/home/john/gnuradio/gnuradio-core/src/lib/filter -I/home/john/gnuradio/gnuradio-core/src/lib/missing -I/home/john/gnuradio/gnuradio-core/src/lib/reed-solomon -I/home/john/gnuradio/gnuradio-core/src/lib/viterbi -I/home/john/gnuradio/gnuradio-core/src/lib/io -I/home/john/gnuradio/gnuradio-core/src/lib/g72x -I/home/john/gnuradio/gnuradio-core/src/lib/swig -I/home/john/gnuradio/gnuradio-core/src/lib/hier -I/home/john/gnuradio/gnuradio-core/src/lib/swig -I/home/john/gnuradio/gruel/src/include -I/home/john/gnuradio/gruel/src/include -I/home/john/gnuradio/volk/include -I/usr/include -I/usr/include/python2.6 -I/usr/local/include -I/home/john/gnuradio/gr-uhd/lib -g -O1 -Wno-strict-aliasing -Wno-parentheses -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.lotest
-f ‘uhd_swig.cc’ || echo ‘./’`uhd_swig.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I…/…
-I/home/john/gnuradio/gnuradio-core/src/lib/runtime
-I/home/john/gnuradio/gnuradio-core/src/lib/general
-I/home/john/gnuradio/gnuradio-core/src/lib/general
-I/home/john/gnuradio/gnuradio-core/src/lib/gengen
-I/home/john/gnuradio/gnuradio-core/src/lib/gengen
-I/home/john/gnuradio/gnuradio-core/src/lib/filter
-I/home/john/gnuradio/gnuradio-core/src/lib/filter
-I/home/john/gnuradio/gnuradio-core/src/lib/missing
-I/home/john/gnuradio/gnuradio-core/src/lib/reed-solomon
-I/home/john/gnuradio/gnuradio-core/src/lib/viterbi
-I/home/john/gnuradio/gnuradio-core/src/lib/io
-I/home/john/gnuradio/gnuradio-core/src/lib/g72x
-I/home/john/gnuradio/gnuradio-core/src/lib/swig
-I/home/john/gnuradio/gnuradio-core/src/lib/hier
-I/home/john/gnuradio/gnuradio-core/src/lib/swig
-I/home/john/gnuradio/gruel/src/include
-I/home/john/gnuradio/gruel/src/include
-I/home/john/gnuradio/volk/include -I/usr/include
-I/usr/include/python2.6 -I/usr/local/include
-I/home/john/gnuradio/gr-uhd/lib -g -O1 -Wno-strict-aliasing
-Wno-parentheses -pthread -MT _uhd_swig_la-uhd_swig.lo -MD -MP
-MF .deps/_uhd_swig_la-uhd_swig.Tpo -c uhd_swig.cc -fPIC -DPIC
-o .libs/_uhd_swig_la-uhd_swig.o
uhd_swig.cc:4278: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4286: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4286: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4294: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4297: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4300: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4300: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4303: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4303: error: ‘uhd::range_t’ is not a template
uhd_swig.cc: In function ‘uhd::range_t
std_vector_Sl_uhd_range_t_Sl_float_Sg__Sg__pop(std::vector<uhd::range_t,
std::allocatoruhd::range_t >*)’:
uhd_swig.cc:4306: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4306: error: ‘uhd::range_t’ is not a template
uhd_swig.cc: At global scope:
uhd_swig.cc:4310: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4310: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4310: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4310: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4310: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4313: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4313: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4313: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4313: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4313: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4316: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4316: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4316: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4319: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4319: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4322: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4322: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4322: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4325: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4325: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4325: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4328: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4328: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4333: error: ‘uhd::range_t’ is not a template
uhd_swig.cc:4333: error: redefinition of ‘struct
swig::traitsuhd::range_t
uhd_swig.cc:4278: error: previous definition of ‘struct
swig::traitsuhd::range_t

Do you have any further advice, Alex?

Kind Regards,

           John

On Sun, 2011-01-23 at 14:54 -0800, Josh B. wrote:

[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Yes, Josh, you are correct. Will pull the next branch from gnuradio and
give it a try.

    Thanks for your assistance,

           Slainte,

                 John

uhd_swig.cc:4333: error: ‘uhd::range_t’ is not a template

thats true, its not, but it was… so something is out of date

uhd_swig.cc:4333: error: redefinition of ‘struct
swig::traitsuhd::range_t
uhd_swig.cc:4278: error: previous definition of ‘struct
swig::traitsuhd::range_t

Do you have any further advice, Alex?

Does your uhd_swig.i look like this one:
http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/swig/uhd_swig.i?h=next

I think you may not have the most recent next branch?

-josh

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs