Forum: GNU Radio CMAKE/SWIG build errors

Posted by Joel Spark (joelspark)
on 2012-11-27 01:21
I'm trying to make a copy of the USRP Source block included in the UHD
module, so that I can freely modify the work() function. Eventually I'll
be adding a serial monitor function to alternate the block between
sending and receiving for half-duplex audio.

For the moment, I'm just trying to make a block that works exactly like
the "USRP Source" block. I made a new module called "asat", created the
.cc, .h, .xml, CMakeLists, and __init__ files, and got the whole thing
to compile and install without an error.

However, when I try and run the GRC .py file, I get the following error:

File "/usr/local/lib/python2.7/dist-packages/asat/__init__.py", line
128, in <module> _prepare_asat_swig()

File "/usr/local/lib/python2.7/dist-packages/asat/__init__.py", line 32,
in _prepare_asat_swig import asat_swig

File "/usr/local/lib/python2.7/dist-packages/asat/asat_swig.py", line
26, in <module> _asat_swig = swig_import_helper()

File "/usr/local/lib/python2.7/dist-packages/asat/asat_swig.py", line
22, in swig_import_helper _mod = imp.load_module('_asat_swig', fp,
pathname, description)

ImportError: /usr/local/lib/python2.7/dist-packages/asat/_asat_swig.so:
undefined symbol: /ZTIN3uhd9key_errorE


I've been tearing my hair out trying to resolve the error, and from my
googling I suspect it's an issue of libraries not being linked correctly
in CMAKE, but I'm new to SWIG/CMAKE and I can't seem to resolve it.

I would really appreciate any help troubleshooting the cause of the
error, if I'm on the right track with the libraries, even if someone
could suggest a library to link to.

I've made a github repo with my source and build directories for anyone
willing to help me out: https://github.com/JoelSpark/gr-asat

Regards,
Joel Spark
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.