Re: SWIG Includes for GRExtras blocks

Adding those includes to my .i file fixed it. Thanks!

-Roy

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
import argon
File “/usr/lib64/python2.6/site-packages/argon/init.py”, line
45, in
from argon_swig import *
File “/usr/lib64/python2.6/site-packages/argon/argon_swig.py”, line
26, in
_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

On 11/12/2012 02:24 PM, Roy T. wrote:

26, in
_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