discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Porting GR-AIS to GN3.7


From: Driesprong, Fokko
Subject: Re: [Discuss-gnuradio] Porting GR-AIS to GN3.7
Date: Thu, 5 Sep 2013 00:20:17 +0200

He Guys,

Thank you for the prompt replies, in special Nick Foster for the reply, I am very thankful for the gr-ais package! :)

Currently I am working with the modtool. I didn't know it's existence. A very helpful tool.

I might have found a bug. I have version 3.7.2git-0-gd19aa281. When I create a new block using modtool newmod I get the basic structure. When I go to gr-blockname/blockname_swig.i, I see that it includes `gnuradio.i`, In the wiki is stated that this should be 'runtime_swig.i'.

I have regenerated all the blocks using the modtool. From this base I can rebuild the module. I have ported all the code from the old-version to the 3.7 file structure. From this point I have some ground that the cmake files are ok. Everything compiles OK, but at run time I get a swig related issue.

File "/home/fokko/Desktop/gr-ais/apps/ais_rx.py", line 12, in <module>
    from ais import *
  File "/usr/local/lib/python2.7/dist-packages/ais/__init__.py", line 45, in <module>
    from ais_swig import *
  File "/usr/local/lib/python2.7/dist-packages/ais/ais_swig.py", line 26, in <module>
    _ais_swig = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/ais/ais_swig.py", line 22, in swig_import_helper
    _mod = imp.load_module('_ais_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-ais.so: undefined symbol: _Z14gr_rounduppow2j


​It seems that the `gr_rounduppow2` (from misc.h) function isn't available in the swig environment.​
​​ I believe that the declaration is interpreted as a concrete class.​ I am studying CS at the university, but I don't have much experience with ​the SWIG package
​, a nice opportunity to learn :)​


​Kind regards,
Fokko Driesprong


2013/9/4 Nick Foster <address@hidden>
I've been following the discussion and I'm grateful for the porting work to 3.7 as I haven't had time to do it myself. That said, I'm happy to help with gr-ais-specific questions.

Here's a sample file recorded a couple of years ago in SF Bay. It was recorded with a USRP1 + WBX at 256ksps.


--n


On Wed, Sep 4, 2013 at 8:04 AM, Philip Balister <address@hidden> wrote:
Side note, is there a data file containing AIS samples for testing anywhere?

Philip

On 09/04/2013 10:57 AM, Marcus Müller wrote:
> Never, it's obsolete; use gr_modtool to generate a 3.7 module, and refer
> to the GR wiki for instructions.
>
> On 04.09.2013 16:53, Driesprong, Fokko wrote:
>> Hi Martin Braun,
>>
>> Thanks for the information. I was aware of that. When can
>> gr-howto-write-a-block for version 3.7 be expected?
>>
>> Kind regards,
>>
>> ing. Fokko Driesprong
>>
>>
>> 2013/9/4 Martin Braun (CEL) <address@hidden
>> <mailto:address@hidden>>
>>
>>     FYI: Gruel was removed in 3.7.
>>
>>     See also:
>>     http://gnuradio.org/redmine/projects/gnuradio/wiki/Move_3-6_to_3-7
>>
>>     MB
>>
>>     On Wed, Sep 04, 2013 at 11:55:59AM +0200, Marcus Müller wrote:
>>     > Gruel really IS a part of GNU Radio. You never need gruel /
>>     gruel-dev on a
>>     > system to compile GNU Radio, since the GR source tree _contains_
>>     gruel.
>>     > Since it is integral to GR, a gruel from a different version of
>>     GNU Radio
>>     > (which is most probably the case when you install it via your
>>     package manager),
>>     > will almost never do. Please do not mix up GNU Radio versions.
>>     >
>>     > On 09/04/2013 11:49 AM, Driesprong, Fokko wrote:
>>     >
>>     >     Hi Marcus,
>>     >
>>     >
>>     >     Thanks for the response and thoughts.
>>     >
>>     >
>>     >     I am running Ubuntu 12.04 on the beaglebone. I don't use any
>>     GUI, and I
>>     >     start the gr-ais script from the commandline. With the
>>     cortex A8 and neon
>>     >     co-processor the beaglebone is suprisingly powerfull.
>>     >
>>     >
>>     >     Currently I am developing on a Ubuntu 13.10 desktop with the
>>     same gnuradio
>>     >     (3.7.2) and with the libgruel-dev and libgruel0 package
>>     uninstalled. I
>>     >     don't have these available on the beaglebone. I believe when
>>     I run 3.7 with
>>     >     the gruelpackage remove (since it is depricated), it uses
>>     the methods from
>>     >     these packages. Please correct me if I am wrong on this.
>>     >
>>     >
>>     >     Maybe I will go back to 3.6 to check if the Beaglebone is
>>     powerfull enough.
>>     >
>>     >
>>     >     Kind regards,
>>     >
>>     >
>>     >     Fokko Driesprong
>>     >
>>     >
>>     >
>>     >     2013/9/3 Marcus Müller <address@hidden
>>     <mailto:address@hidden>>
>>     >
>>     >
>>     >         Hi Fokko,
>>     >
>>     >         awesome project!
>>     >         Although this might not actually help the matter on hand
>>     much:
>>     >         Compiling something as big as GNU Radio on something as
>>     weak and
>>     >         embedded as a beaglebone is a really bad idea, since
>>     especially the
>>     >         linking process requires large amounts of RAM and I
>>     would not guarantee
>>     >         that it will work with only 512MB RAM at all.
>>     >
>>     >         So for your porting efforts, you really should work on a
>>     fully fledged
>>     >         PC. When everything is up and running, you might want to
>>     cross-compile
>>     >         GNU Radio and gr-ais for your beaglebone; but the latter
>>     really should
>>     >         not be your development environment of choice.
>>     >
>>     >         You should not install a version of gruel that does not
>>     belong to your
>>     >         GR version, so fetching gruel from your package manager
>>     and installing
>>     >         GR from git does not sound ok; gruel is part of the GNU
>>     Radio runtime
>>     >         and therefore is not necessary to install GNU Radio.
>>     >
>>     >         So: On your PC, uninstall gruel using your package
>>     manager, build and
>>     >         install GNU Radio from source  (using the build-gnuradio
>>     script or even
>>     >         better pybombs), and port gr-ais to GR3.7.
>>     >
>>     >         When that works, set up a cross-compiling environment
>>     for your linux of
>>     >         choice on the beaglebone (I'm tempted to say Ubuntu
>>     13.10 is not the
>>     >         right distribution for an embedded environment that is
>>     less powerful
>>     >         than recent smartphones), and compile GNU Radio for
>>     that; do the same
>>     >         for gr-ais and install both on your beaglebone.
>>     >
>>     >         Hope I was of assistance anyhow,
>>     >         Marcus Müller
>>     >
>>     >
>>     >             Dear Gnuradio members,
>>     >
>>     >
>>     >             I am working on a port for GR-AIS to version 3.7.
>>     The initial
>>     >             version was for GN3.3, later it is merged to CMake.
>>     >
>>     >
>>     >             The problem is that I am trying to compile Gnuradio
>>     with the gr-ais
>>     >             extension on a beaglebone black (bbb). I managed to
>>     compile 3.7 on
>>     >             the bbb, but the problem is that I don't have GRUEL
>>     available. On a
>>     >             x86 it is possible to pull (libgruel) from the
>>     package-manager. So
>>     >             I decided that the fastest to get everything running
>>     is to upgrade
>>     >             gr-ais to version 3.7. I managed to do this using
>>     the wiki.
>>     >
>>     >
>>     >             I believe that the cpp is up and running, it
>>     compiles fine, but am
>>     >             running into some problems with CMake. I haven't
>>     worked with CMake
>>     >             before, so I haven't worked with the scripting
>>     earlier. The problem
>>     >             is CMake+SWIG. When Python tries to invoke Boost it
>>     gives an error.
>>     >
>>     >
>>     >             Traceback (most recent call last):
>>     >
>>     >               File "/usr/local/bin/ais_rx.py", line 15, in <module>
>>     >
>>     >                 from gr_ais import *
>>     >
>>     >               File
>>     "/usr/local/lib/python2.7/dist-packages/gr_ais/__init__.py",
>>     >             line 45, in <module>
>>     >
>>     >                 from gr_ais_swig import *
>>     >
>>     >               File "/usr/local/lib/python2.7/dist-packages/gr_ais/
>>     >             gr_ais_swig.py", line 26, in <module>
>>     >
>>     >                 _gr_ais_swig = swig_import_helper()
>>     >
>>     >               File "/usr/local/lib/python2.7/dist-packages/gr_ais/
>>     >             gr_ais_swig.py", line 22, in swig_import_helper
>>     >
>>     >                 _mod = imp.load_module('_gr_ais_swig', fp,
>> pathname,
>>     >             description)
>>     >
>>     >             ImportError:
>>     /usr/local/lib/python2.7/dist-packages/gr_ais/
>>     >             _gr_ais_swig.so: undefined symbol:
>>     >             _ZN5boost6system15system_categoryEv
>>     >
>>     >
>>     >             I have re-installed Ubuntu 13.10 and installed
>>     gnuradio with the
>>     >             latest git version. The make test succeeded. I have
>>     forked the
>>     >             gr-ais repository into a seperate public repo.
>>     >
>>     >
>>     >             If someone has any idea, please let me know!
>>     >
>>     >
>>     >             Kind regards,
>>     >
>>     >
>>     >             ing. Fokko Driesprong
>>     >
>>     >
>>     >
>>     > _______________________________________________
>>     >             Discuss-gnuradio mailing list
>>     > address@hidden <mailto:address@hidden>
>>     > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>     >
>>     >
>>     >
>>     > _______________________________________________
>>     >         Discuss-gnuradio mailing list
>>     > address@hidden <mailto:address@hidden>
>>     > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>     >
>>     >
>>     >
>>     >
>>     >
>>
>>     > _______________________________________________
>>     > Discuss-gnuradio mailing list
>>     > address@hidden <mailto:address@hidden>
>>     > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>>     --
>>     Karlsruhe Institute of Technology (KIT)
>>     Communications Engineering Lab (CEL)
>>
>>     Dipl.-Ing. Martin Braun
>>     Research Associate
>>
>>     Kaiserstraße 12
>>     Building 05.01
>>     76131 Karlsruhe
>>
>>     Phone: +49 721 608-43790 <tel:%2B49%20721%20608-43790>
>>     Fax: +49 721 608-46071 <tel:%2B49%20721%20608-46071>
>>     www.cel.kit.edu <http://www.cel.kit.edu>
>>
>>     KIT -- University of the State of Baden-Württemberg and
>>     National Laboratory of the Helmholtz Association
>>
>>     _______________________________________________
>>     Discuss-gnuradio mailing list
>>     address@hidden <mailto:address@hidden>
>>     https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
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]