CMAKE/SWIG build errors

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 _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 _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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs