discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Porting cgran AIS to the new cmake build system


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Porting cgran AIS to the new cmake build system
Date: Tue, 17 Jul 2012 13:31:34 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1


On 07/17/2012 01:27 PM, Christian Gagneraud wrote:
> Hi,
> 
> I tried to build https://cgran.org/wiki/AIS against gnuradio-3.6, and i
> fails.
> As 3.6 brings in a new build system, I decided to give it a go on the
> AIS module. I based everything on gr-howto-write-a-block
> 
> I can build and install everything, here is what get installed:
> address@hidden:~/Downloads/gr-ais-ng/build> sudo make install
> [ 22%] Built target gnuradio-ais
> [ 27%] Built target _ais_swig_swig_tag
> [ 31%] Built target _ais_swig_doc_tag
> [ 54%] Built target _ais_swig
> [ 81%] Built target pygen_swig_a8cc0
> [ 90%] Built target pygen_python_a8569
> [100%] Built target pygen_apps_4b161
> Linking CXX shared module CMakeFiles/CMakeRelink.dir/_ais_swig.so
> Install the project...
> -- Install configuration: "Release"
> -- Up-to-date: /usr/local/include/ais/ais_unstuff.h
> -- Up-to-date: /usr/local/include/ais/ais_shift.h
> -- Up-to-date: /usr/local/include/ais/ais_parse.h
> -- Up-to-date: /usr/local/include/ais/ais_invert.h
> -- Up-to-date: /usr/local/include/ais/ais_extended_lms_dfe_ff.h
> -- Up-to-date: /usr/local/lib/libgnuradio-ais.so
> -- Installing: /usr/local/lib/python2.7/site-packages/ais/_ais_swig.so
> -- Installing: /usr/local/lib/python2.7/site-packages/ais/ais_swig.py
> -- Installing: /usr/local/lib/python2.7/site-packages/ais/ais_swig.pyc
> -- Installing: /usr/local/lib/python2.7/site-packages/ais/ais_swig.pyo
> -- Installing: /usr/local/include/ais/swig/ais_swig.i
> -- Up-to-date: /usr/local/include/ais/swig/ais_swig_doc.i
> -- Up-to-date: /usr/local/lib/python2.7/site-packages/ais/__init__.py
> -- Up-to-date: /usr/local/lib/python2.7/site-packages/ais/__init__.pyc
> -- Up-to-date: /usr/local/lib/python2.7/site-packages/ais/__init__.pyo
> -- Up-to-date: /usr/local/bin/ais_decode.py
> -- Up-to-date: /usr/local/bin/ais_demod.py
> 
> But now, if I want to test one of the "app", this is what i get:
> address@hidden:~/Downloads/gnuradio-3.6.0> ais_decode.py
> Traceback (most recent call last):
>   File "/usr/local/bin/ais_decode.py", line 13, in <module>
>     import ais
>   File "/usr/local/lib/python2.7/site-packages/ais/__init__.py", line
> 46, in <module>
>     from ais_swig import *
>   File "/usr/local/lib/python2.7/site-packages/ais/ais_swig.py", line
> 26, in <module>
>     _ais_swig = swig_import_helper()
>   File "/usr/local/lib/python2.7/site-packages/ais/ais_swig.py", line
> 22, in swig_import_helper
>     _mod = imp.load_module('_ais_swig', fp, pathname, description)
> ImportError: /usr/local/lib/python2.7/site-packages/ais/_ais_swig.so:
> undefined symbol: _Z14ais_make_shiftv
> 

Just a guess, but

In gnuradio we explicitly export the library symbols. If you arent doing
that for libgnuradioais, make sure that the visibility flag is being set
to default. You can read more here: http://gcc.gnu.org/wiki/Visibility

-josh



reply via email to

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