discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Trouble Creating a UHD Sink


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Trouble Creating a UHD Sink
Date: Tue, 26 Mar 2013 12:59:45 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4


On 03/26/2013 12:43 PM, Brooke Hayden wrote:
> I have the correct ordering in my swig file, but am still getting these
> errors when I try to import my module in Python. The C++ code compiles
> fine, but I cannot even import the directory in a Python file.
> 
> Traceback (most recent call last):
>   File "sink_test_gui.py", line 10, in <module>
>     import radar2
>   File "/usr/local/lib/python2.7/dist-packages/radar2/__init__.py", line
> 45, in <module>
>     from radar2_swig import *
>   File "/usr/local/lib/python2.7/dist-packages/radar2/radar2_swig.py", line
> 26, in <module>
>     _radar2_swig = swig_import_helper()
>   File "/usr/local/lib/python2.7/dist-packages/radar2/radar2_swig.py", line
> 22, in swig_import_helper
>     _mod = imp.load_module('_radar2_swig', fp, pathname, description)
> ImportError: /usr/local/lib/libgnuradio-radar2.so: undefined symbol:
> _ZN3uhd4usrp10multi_usrp9ALL_GAINSE
> 
> 

Can you confirm that the swig library is linked against libuhd.so?

You might have something like this in your cmakelists.txt

link_directories(${UHD_LIBRARY_DIRS})
set(GR_SWIG_LIBRARIES gnuradio-uhd ${UHD_LIBRARIES})

-josh

> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 



reply via email to

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