discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Passing Blocks to C++


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Passing Blocks to C++
Date: Thu, 12 Jan 2012 21:01:58 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0


On 01/12/2012 08:50 PM, Joshua Stahl wrote:
> Hello,
> I have created a block in c++ which needs to retune after a certain number
> of samples have passed through.  To accomplish this I am passing a
> uhd_usrp_sink block to my block from python and then I am attempting to
> retune after a certain number of samples.  The block compiles correctly and
> it runs fine unless I have the retune code in the block.  If I attempt to
> retune from c++ I get this message on trying to import the module:
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib/python2.7/dist-packages/gr_my/__init__.py", line 40,
> in <module>
>     from gr_my_swig import *
>   File "/usr/local/lib/python2.7/dist-packages/gr_my/gr_my_swig.py", line
> 24, in <module>
>     _gr_my_swig = swig_import_helper()
>   File "/usr/local/lib/python2.7/dist-packages/gr_my/gr_my_swig.py", line
> 20, in swig_import_helper
>     _mod = imp.load_module('_gr_my_swig', fp, pathname, description)
> ImportError: /usr/local/lib64/libgnuradio-gr_my-3.3.0.so.0: undefined
> symbol: _ZN3uhd14tune_request_tC1Ed
> 

Its a missing symbol. Try linking your library against libuhd.

-Josh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]