Forum: GNU Radio Re: SWIG Includes for GRExtras blocks

Posted by Roy Thompson (Guest)
on 2012-11-12 22:20
(Received via mailing list)
Adding those includes to my .i file fixed it.  Thanks!

-Roy
Posted by Roy Thompson (Guest)
on 2012-11-12 23:25
(Received via mailing list)
Well, I guess it fixed the compilation problem, but now I am having a
problem when I try to import the swig module in Python:

Traceback (most recent call last):
  File "/root/mockup_test.py", line 15, in <module>
    import argon
  File "/usr/lib64/python2.6/site-packages/argon/__init__.py", line
45, in <module>
    from argon_swig import *
  File "/usr/lib64/python2.6/site-packages/argon/argon_swig.py", line
26, in <module>
    _argon_swig = swig_import_helper()
  File "/usr/lib64/python2.6/site-packages/argon/argon_swig.py", line
22, in swig_import_helper
    _mod = imp.load_module('_argon_swig', fp, pathname, description)
ImportError: /usr/lib64/libgnuradio-argon.so: undefined symbol:
_ZN8gnuradio5block5startEv

It looks like it's not pulling in gnuradio::block::start() even though
libgnuradio-extras.so should be in my load path.  Any ideas?

Thanks,
Roy
Posted by Josh Blum (Guest)
on 2012-11-13 19:28
(Received via mailing list)
On 11/12/2012 02:24 PM, Roy Thompson wrote:
> 26, in <module>
>     _argon_swig = swig_import_helper()
>   File "/usr/lib64/python2.6/site-packages/argon/argon_swig.py", line
> 22, in swig_import_helper
>     _mod = imp.load_module('_argon_swig', fp, pathname, description)
> ImportError: /usr/lib64/libgnuradio-argon.so: undefined symbol:
> _ZN8gnuradio5block5startEv
>
> It looks like it's not pulling in gnuradio::block::start() even though
> libgnuradio-extras.so should be in my load path.  Any ideas?
>

Probably just have to link it against gr extras library. did you set
GR_SWIG_LIBRARIES ?

-josh
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.