discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] OOT module based on file_sink_base generates symbol n


From: Jose Rodriguez
Subject: [Discuss-gnuradio] OOT module based on file_sink_base generates symbol not found error
Date: Thu, 6 Feb 2014 14:48:16 -0500


Guys,

This may be a beginner question, but here it goes. I have built several OOT modules for my own blocks using gr_modtool as indicated in the Out-of-tree tutorial w. great success. These blocks were subclasses of gr::blocks.

Now I have created a new block called file_format_sink very similar to file_sink whose parent class is gr::file_sink_base. It all builds fine but when I run a flowgraph with file_format_sink using grc, I get the following error:

Traceback (most recent call last):
  File "/home/joser/Desktop/Panorama/grc/top_block.py", line 24, in <module>
    import jmr
  File "/usr/local/lib/python2.7/dist-packages/jmr/__init__.py", line 45, in <module>
    from jmr_swig import *
  File "/usr/local/lib/python2.7/dist-packages/jmr/jmr_swig.py", line 26, in <module>
    _jmr_swig = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/jmr/jmr_swig.py", line 22, in swig_import_helper
    _mod = imp.load_module('_jmr_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-jmr.so: undefined symbol: _ZN2gr6blocks14file_sink_baseD2Ev

>>> Done

The missing symbol above, ...file_sink_base... is in /usr/local/libgnuradio-blocks.so (actually in libgnuradio-blocks-3.7.2.1.so.0.0.0)
And I believe the above error is caused by not finding the right lib but I have tried many things including the suggestions in the FAQ (involving ldconfig and /etc/ld.so.conf) and I have searched in google with no luck.

I have looked at swig/jmr_swig.i and the module directory's CMakeList.txt file and can't determine how Python's lib load path is set.

Does anyone have any suggestions on how to fix this? thanks,

Jose Rodriguez
address@hidden



reply via email to

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