discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] gr_modtool and swig


From: Martin Braun
Subject: Re: [Discuss-gnuradio] gr_modtool and swig
Date: Thu, 5 May 2016 13:51:38 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Have you nuked the build dir and tried from scratch? These kind of
problems always seem to be SWIG-artifact related.

M

On 05/05/2016 01:01 PM, Laur Joost wrote:
> Hi all!
> 
> I've run into problems with swig in a project generated by gr_modtool.
> 
> When I run
> ctest -V -R tle_cc
> the test fails with import error:
> 
> 2: Traceback (most recent call last):
> 2:   File
> "/home/ec/Thesis/blocks/gr-doppler/python/qa_doppler_tle_cc.py", line
> 25, in <module>
> 2:     import doppler_swig as doppler
> 2:   File
> "/home/ec/Thesis/blocks/gr-doppler/build/swig/doppler_swig.py", line 28,
> in <module>
> 2:     _doppler_swig = swig_import_helper()
> 2:   File
> "/home/ec/Thesis/blocks/gr-doppler/build/swig/doppler_swig.py", line 24,
> in swig_import_helper
> 2:     _mod = imp.load_module('_doppler_swig', fp, pathname, description)
> 2: ImportError:
> /home/ec/Thesis/blocks/gr-doppler/build/lib/libgnuradio-doppler.so:
> undefined symbol: _ZTIN2gr7doppler14doppler_tle_ccE
> 1/1 Test #2: qa_doppler_tle_cc ................***Failed    1.83 sec
> 
> Objdump has this to say: 
> 
> address@hidden:~/Thesis/blocks/gr-doppler/build$ objdump -tT
> lib/libgnuradio-doppler.so | grep _ZTIN2gr7doppler14doppler_tle_ccE
> 0000000000000000         *UND*0000000000000000            
>  _ZTIN2gr7doppler14doppler_tle_ccE
> 0000000000000000      D  *UND*0000000000000000            
>  _ZTIN2gr7doppler14doppler_tle_ccE
> 
> doppler_tle_cc.h is the public header, with doppler_tle_cc_impl.cc/.h
> <http://doppler_tle_cc_impl.cc/.h> being the implementation header and
> source. The code compiles.
> 
> The test worked before. I refactored the parameters and added setters
> and getters, and initialized some variables, but can't pinpoint which of
> these broke it.
> 
> I know this is not a lot to go on, but perhaps someone has seen
> something like this before and can chime in on where to look?
> 
> All the best
> Laur Joost
> 
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 




reply via email to

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