# How to add c++ modules after gnuradio-3.2.2. binary installation?

**URL:** <https://www.ruby-forum.com/t/how-to-add-c-modules-after-gnuradio-3-2-2-binary-installation/185865>\
**Category:** GNU Radio\
**Created:** [March 27, 2010, 9:27pm UTC](https://www.ruby-forum.com/t/how-to-add-c-modules-after-gnuradio-3-2-2-binary-installation/185865 "2010-03-27T21:27:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yao\_Jack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@Yao\_Jack](https://www.ruby-forum.com/u/Yao_Jack)\
**Post date:** [March 27, 2010, 9:27pm UTC](https://www.ruby-forum.com/t/how-to-add-c-modules-after-gnuradio-3-2-2-binary-installation/185865/1 "2010-03-27T21:27:56Z")

</div>

Hi

I installed gnuradio-3.2.2. Binary package in Ubuntu 9.04.  
It was not flexible to include new c++ files  
(I could not find bootstrap, configure.ac files etc in  
usr/share/gnuradio  
installation directory).

I then downloaded gnuradio-3.2.2.tar.gz and  
gr-howto-write-a-block-3.2.2.tar.gz files and unzipped them in my home  
folder,  
and  
gr-howto-write-a-block-3.2.2 was included as a subdirectory in the  
gnuradio-3.2.2 directory.

I used installation commands ./bootstrap, ./configure, make, sudo  
make  
install  
in gnuradio-3.2.2 directory, and no error was reported. I then tried to  
run  
file  
qa\_howto.py (after chmod +x qa\* ) in directory  
gr-howto-write-a-block-3.2.2/src/python, as follows:

./qa\_howto.py

Error was reported that “in import howto”, “howto” module could not be  
recognized.  
I tried many other means, including modifying makefile.am in several  
directories,  
and  
using installation ./bootstrap, ./configure, make, sudo make install  
in gr-howto-write-a-block-3.2.2 directory. No error was reported.

But still  
./qa\_howto.py  
could not work.

Questions:

1. How can I make this work?
2. How can I add new functions and modules using c++ files based on  
gnuradio-3.2.2 binary installation?

Thank you.

## Jack

View this message in context:  
[http://old.nabble.com/How-to-add-c%2B%2B-modules-after-gnuradio-3.2.2.-binary-installation--tp28036932p28036932.html](http://old.nabble.com/How-to-add-c%2B%2B-modules-after-gnuradio-3.2.2.-binary-installation--tp28036932p28036932.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Yao\_Jack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@Yao\_Jack](https://www.ruby-forum.com/u/Yao_Jack)\
**Post date:** [March 27, 2010, 10:17pm UTC](https://www.ruby-forum.com/t/how-to-add-c-modules-after-gnuradio-3-2-2-binary-installation/185865/2 "2010-03-27T22:17:06Z")

</div>

Hi,

1. 

I don’t think gr-howto-write-a-block is part of the normal build  
environment  
– there’s a separate one within this directory.

Try running:  
./bootstrap  
./configure  
make  
make check  
sudo make install

from inside this directory (i.e gnuradio/gr-howto-write-a-block)

You might run into some weird issues if you’ve installed the binary  
packages  
before compiling from source (unless youve changed the prefix) as it’s  
possible you’ve got two copies of gnuradio - Make sure you’ve removed  
the  
old binary installs.

1. 

I add new C++ blocks into my own module by following the instructions at  
[http://www.mail-archive.com/removed\_email\_address@domain.invalid/msg00123.html](http://www.mail-archive.com/removed_email_address@domain.invalid/msg00123.html) (and a  
bit  
of trial and error whilst I got the hang of automake etc)

There might be an easier way than this however!

Cheers,

Tim

---

<div class="post-metadata">

**Author:** ![Yao\_Jack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@Yao\_Jack](https://www.ruby-forum.com/u/Yao_Jack)\
**Post date:** [April 1, 2010, 9:34am UTC](https://www.ruby-forum.com/t/how-to-add-c-modules-after-gnuradio-3-2-2-binary-installation/185865/3 "2010-04-01T09:34:41Z")

</div>

Hi, Tim

I Tried running:  
./bootstrap  
./configure  
make  
make check  
sudo make install

from inside this directory (i.e gnuradio/gr-howto-write-a-block)

But the problem was not solved for qa\_howto.py.

I also ran  
make distclean,  
in gnuradio-3.2.2 source installation directory,  
but seems I didn’t remove binary installation.

1. Can you please tell me how to remove former binary installation?  
After cd  
/src/share/gnuradio, then I didn’t know what to do.
2. How to change prefix to specify the installed GNU directory?

After fixing the howto modules, then I will check how to add new cc+  
modules.

Thanks.

Yao

Tim P.-2 wrote:

> ./configure  
> old binary installs.
> 
> > (I could not find bootstrap, configure.ac files etc in  
> > I used installation commands ./bootstrap, ./configure, make, sudo make  
> > recognized.  
> > Questions:  
> > [http://old.nabble.com/How-to-add-c%2B%2B-modules-after-gnuradio-3.2.2.-binary-installation--tp28036932p28036932.html](http://old.nabble.com/How-to-add-c%2B%2B-modules-after-gnuradio-3.2.2.-binary-installation--tp28036932p28036932.html)
> 
> * * *
> 
> Discuss-gnuradio mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](http://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

–  
View this message in context:  
[http://old.nabble.com/How-to-add-c%2B%2B-modules-after-gnuradio-3.2.2.-binary-installation--tp28036932p28105330.html](http://old.nabble.com/How-to-add-c%2B%2B-modules-after-gnuradio-3.2.2.-binary-installation--tp28036932p28105330.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).
