# Create-gnuradio-out-of-tree-project

**URL:** <https://www.ruby-forum.com/t/create-gnuradio-out-of-tree-project/185009>\
**Category:** GNU Radio\
**Created:** [March 11, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/create-gnuradio-out-of-tree-project/185009 "2010-03-11T19:55:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bin\_zan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@bin\_zan](https://www.ruby-forum.com/u/bin_zan)\
**Post date:** [March 11, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/create-gnuradio-out-of-tree-project/185009/1 "2010-03-11T19:55:09Z")

</div>

Hi Eric,  
I am trying to study the create-gnuradio-out-of-tree-project you  
leave  
to us last week. After I run ./configure ./make ./make install, I still  
can’t run the python file successfully. The errors are shown below. Do  
you  
know what is the problem?

winuser@winuser-desktop:~/BinZan/usrp2\_oot/python$ ./qa\_usrp2\_oot.py  
Traceback (most recent call last):  
File “./qa\_usrp2\_oot.py”, line 24, in   
import usrp2\_oot\_swig  
ImportError: No module named usrp2\_oot\_swig

Thanks,  
Bin Zan  
Winlab, Rutgers

---

<div class="post-metadata">

**Author:** ![bin\_zan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@bin\_zan](https://www.ruby-forum.com/u/bin_zan)\
**Post date:** [March 16, 2010, 7:29pm UTC](https://www.ruby-forum.com/t/create-gnuradio-out-of-tree-project/185009/2 "2010-03-16T19:29:35Z")

</div>

On Thu, Mar 11, 2010 at 01:44:04PM -0500, bin zan wrote:

> ImportError: No module named usrp2\_oot\_swig
> 
> Thanks,  
> Bin Zan  
> Winlab, Rutgers

Bin,

The QA code won’t run unless you type

$ make check

This has to do with how a bunch of environment varibles are  
manipulated to allow us to test (QA) non-instatlled code.

You can use your new block after

$ make install

but you’ll need to ensure that your PYTHONPATH includes the path where  
you installed the new code. This is usually something like:

$ export PYTHONPATH=/lib/python/-packages

Eric

---

<div class="post-metadata">

**Author:** ![bin\_zan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@bin\_zan](https://www.ruby-forum.com/u/bin_zan)\
**Post date:** [March 16, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/create-gnuradio-out-of-tree-project/185009/3 "2010-03-16T20:35:08Z")

</div>

Hi Eric,  
Thank you I got it. I am also trying to study the c++ examples  
under  
…/gnuradio/usrp2/host/apps/… ( My objective is to write a channel  
switching apps in C++). However, when I run ./rx\_streaming\_samples -f  
2.45G, it doesn’t output anything when I run ./tx\_samples at the sender  
side  
( I only see one c++ execute file looks like transmit something under  
that  
directory). Please advise which files I should start with.

Thank you,  
Bin Zan  
Winlab, Rutgers.

---

<div class="post-metadata">

**Author:** ![bin\_zan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@bin\_zan](https://www.ruby-forum.com/u/bin_zan)\
**Post date:** [August 18, 2011, 8:11am UTC](https://www.ruby-forum.com/t/create-gnuradio-out-of-tree-project/185009/4 "2011-08-18T08:11:11Z")

</div>

> Did you link against libgruel? Try that.
> 
> -josh

Yep, /usr/lib/libgruel.la is there too..

Here’s the full setting in /makefile.common:

LIBS = -L$(MY\_LIB\_ROOT) $(MATLAB\_LIB\_DIR)  
-L$(MATLAB\_ROOT)/extern/include -L$(MATLAB\_ROOT)/bin/glnx86 -lmwmclmcr  
-L$(MATLAB\_ROOT)/runtime/glnx86 -lmwmclmcrrt -R$(MY\_LIB\_ROOT) -lmatinv  
-R$(RLINK\_PATH) -lmat -lmx -lmwservices -lmex -lut -lm -lm -lmwmclmcr  
-lmwhg -R$(MATLAB\_ROOT)/runtime/glnx86 -lmwmclmcrrt -L/usr/lib  
-lboost\_date\_time-mt /usr/lib/libgnuradio-core.la -L/usr/lib  
/usr/lib/libfftw3.la /usr/lib/libgruel.la -lboost\_thread-mt -lgsl  
-lgslcblas

Strange, because the same settings compile on my Red Hat machine without  
any problems..
