Using gr-atsc library

Hi,

My name is Yuri and I’m new to the GNU Radio “world”. I’m trying to use
some pieces of the code from the gr-atsc librabry in my project, for
latter
adaptation to my purpose, but I don’t know if what I’m doing is correct
(I
suspect not), so any tip and hint would be of great help. I’m trying to
use
it in GRC.

The file is attached.

I did the installation using gr_modtool, but I attached the other
libraries
I thought useful manually (copy and paste). The installation occurs
without
problems, but when I run it, I got the following errors:

Generating: “/home/aluno/teste_RS.py”

Generating: “/home/aluno/teste_RS.py”

Executing: “/home/aluno/teste_RS.py”

Traceback (most recent call last):
File “/home/aluno/teste_RS.py”, line 17, in
import meusBlocos
File “/usr/local/lib/python2.7/dist-packages/meusBlocos/init.py”,
line 45, in
from meusBlocos_swig import *
File
“/usr/local/lib/python2.7/dist-packages/meusBlocos/meusBlocos_swig.py”,
line 26, in
_meusBlocos_swig = swig_import_helper()
File
“/usr/local/lib/python2.7/dist-packages/meusBlocos/meusBlocos_swig.py”,
line 22, in swig_import_helper
_mod = imp.load_module(’_meusBlocos_swig’, fp, pathname,
description)
ImportError: /usr/local/lib/libgnuradio-meusBlocos.so: undefined symbol:
_ZN18atsci_reed_solomonD1Ev

I tried to follow the advices from this link, but without success:

http://lists.gnu.org/archive/html/discuss-gnuradio/2013-09/msg00316.html

Thank you very much.

Yuri PM.

Hi Yuri,

I’m also fairly new but I can offer a suggestion. When you create a new
OOT
module, the gr_modtool does a couple of things mainly create some files
and
edit your CMakeLists and your meusBlocos.i. You already edited
CMakeLists
so now try to edit the meusBlocos.i in your swig folder to include your
outside library. It’s just a guess so let us know if it works!

AM KC3BBL

On Sat, Nov 16, 2013 at 01:21:20PM -0200, Yuri P.M wrote:

Hi,

My name is Yuri and I’m new to the GNU Radio “world”. I’m trying to use some
pieces of the code from the gr-atsc librabry in my project, for latter
adaptation to my purpose, but I don’t know if what I’m doing is correct (I
suspect not), so any tip and hint would be of great help. I’m trying to use it
in GRC.

Can you please specify how you installed GNU Radio?

My first thought is that maybe your OOT-module is not configured link
against gr-atsc. In your modules top CMakeFile.txt, look for lines that
look like this:

set(GR_REQUIRED_COMPONENTS RUNTIME ATSC)
find_package(Gnuradio “3.7.2” REQUIRED)

…and make sure the ‘ATSC’ is in there.

MB


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Hi Mr. Muniz,

Thanks for the help and the tips.

After the changes suggested by Mr. Braun, I’ve tried to add the lines of
code in the file meusBlocos_swig.i you suggested (in the /swig folder)
as
the file attached. I did these modifications as suggested in the topic
that
I mentioned in my first question:
http://lists.gnu.org/archive/html/discuss-gnuradio/2013-09/msg00316.html

But then I got these errors:

/home/aluno/Public/meusBlocos/
gr-meusBlocos/include/meusBlocos/rs_encoder.h:33: Error: Syntax error in
input(1).
make[2]: *** [swig/meusBlocos_swigPYTHON_wrap.cxx] Error 1
make[1]: *** [swig/CMakeFiles/_meusBlocos_swig.dir/all] Error 2
make: *** [all] Error 2

I will try to find out what they mean.

Again, thanks for the help and the consideration.

Hello Mr. Braun,

Thank you for the attention and the assistance.

I have installed it by the repositories, right now I’m using the 3.7.1
version (I am using a virtual machine VM Ware, and the distribution is
Ubuntu 12.04.3 64 bits, running in a
Intel
core i7 processor)

I’ve tried to include this line of code that you told me, but I still
get
the same error messages. First I included it in the CMakeList.txt in the
top module of the directory where the files are included, the
n
I’ve included it in all the other CMakeLists that have lines that look
like
that, but in both situations I get the same error.

Thank you again.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs