discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] OOT module based on file_sink_base generates symb


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] OOT module based on file_sink_base generates symbol not found error
Date: Thu, 06 Feb 2014 21:16:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jose,

this is an advanced question :)
Usually this causes an linker error, but can you verify that you
include the blocks in CMakeLists.txt like the following?

set(GR_REQUIRED_COMPONENTS RUNTIME BLOCKS)

Greetings,
Marcus

On 06.02.2014 20:48, Jose Rodriguez wrote:
> 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
> 
> 
> 
> _______________________________________________ Discuss-gnuradio
> mailing list address@hidden 
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS8+2UAAoJEAFxB7BbsDrLTKEIAJEvU9CvGbZL/Y+X562vT3M6
hBSHEcwP/EB1Xz+0dL4sYI3NnBYKL6HthMGEnXdpWHEF+dblqqhvnbYbBWyobeDh
yDSl3Sf+HuGWuuuPXbwY+5Fviln71bxtf03U7zDROA+KNzWKV21L1ftEDzGR0w2d
Qofgi+ria0D32BWq2u+RIosUOrk/6AiUaffjTJ4LyubiFLWpwDAgA9WxQtf1y4P2
o0nfztUxsDnTnKKoo10tdNyBCRfcfpP0pE1aBWNHEA328UP3Hv73toueyIckgCgz
p3ONKUWWEn8pXyAVChyWcw4/wXfzQZjUJG4SK81Wj37eRMBNcAZJQpQc/rzBN94=
=YvXL
-----END PGP SIGNATURE-----



reply via email to

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