# Using gr-atsc library

**URL:** <https://www.ruby-forum.com/t/using-gr-atsc-library/237507>\
**Category:** GNU Radio\
**Created:** [November 16, 2013, 4:23pm UTC](https://www.ruby-forum.com/t/using-gr-atsc-library/237507 "2013-11-16T16:23:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [November 16, 2013, 4:23pm UTC](https://www.ruby-forum.com/t/using-gr-atsc-library/237507/1 "2013-11-16T16:23:06Z")

</div>

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](http://lists.gnu.org/archive/html/discuss-gnuradio/2013-09/msg00316.html)

Thank you very much.

Yuri PM.

---

<div class="post-metadata">

**Author:** ![Yuri\_P.M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ea5d25/32.png) [@Yuri\_P.M](https://www.ruby-forum.com/u/Yuri_P.M)\
**Post date:** [November 20, 2013, 1:30am UTC](https://www.ruby-forum.com/t/using-gr-atsc-library/237507/2 "2013-11-20T01:30:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Yuri\_P.M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ea5d25/32.png) [@Yuri\_P.M](https://www.ruby-forum.com/u/Yuri_P.M)\
**Post date:** [November 18, 2013, 12:44pm UTC](https://www.ruby-forum.com/t/using-gr-atsc-library/237507/3 "2013-11-18T12:44:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Yuri\_P.M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ea5d25/32.png) [@Yuri\_P.M](https://www.ruby-forum.com/u/Yuri_P.M)\
**Post date:** [November 24, 2013, 3:15pm UTC](https://www.ruby-forum.com/t/using-gr-atsc-library/237507/4 "2013-11-24T15:15:17Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![Yuri\_P.M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/ea5d25/32.png) [@Yuri\_P.M](https://www.ruby-forum.com/u/Yuri_P.M)\
**Post date:** [November 20, 2013, 1:08am UTC](https://www.ruby-forum.com/t/using-gr-atsc-library/237507/5 "2013-11-20T01:08:53Z")

</div>

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.
