# GRAndPy

**URL:** <https://www.ruby-forum.com/t/grandpy/242115>\
**Category:** GNU Radio\
**Created:** [May 28, 2015, 5:17pm UTC](https://www.ruby-forum.com/t/grandpy/242115 "2015-05-28T17:17:47Z")\
**Posts on this page:** 1\
**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:** [May 28, 2015, 5:17pm UTC](https://www.ruby-forum.com/t/grandpy/242115/1 "2015-05-28T17:17:47Z")

</div>

There are a few implementations of python for android, at least one of  
which appears to be a proper implementation,  
[Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/python-for-android/) . I was looking at  
porting OP25 to GRAnd but too much of it is written in python and who  
wants to write in Java anyways.

Thanks to Tom’s efforts in producing an android-specific port of the  
core GR pieces, I’ve had some luck getting the entire stack bootstrapped  
in Android 5 (see attached screen print – the “warning” is just a debug  
printf, ignore it ;-).  
Here is just a bare bones overview of the synopsis of an outline of  
what’s necessary. There’s no new code, only build scripts for now plus  
a few patches all scattered over 4-5 machines+VMs, to get stuff to  
build:

1. rebuild the NDK toolchain compiler collection, to enable fortran  
(arm-linux-androideabi/gcc4.8; not necessary to rebuild anything else)
2. using (1), build arm versions of libblas and liblapack3) using (1)  
and (2), plus the patched python-for-android libs (see link at top)  
build android numpy (with ATLAS=None)
3. Build the android branch of gnuradio (and prereqs) with  
-DENABLE\_PYTHON=True and -DENABLE\_STATIC\_LIBS=False. Also  
-DPYTHON\_LIBRARY=, -DPYTHON\_INCLUDE\_DIR=, and -DPYTHON\_EXECUTABLE= are  
set appropriately.

After step (4) in attempting “make install” there is currently a crash  
(which can apparently be worked-around by simply prepopulating  
/opt/grandroid/include/gnuradio). Would that crash be difficult to fix?

Ultimately of course there needs to be more detailed documentation for  
all this, currently the focus is to get some app(s) together for OP25  
(which just compiled cleanly for linux-arm for the first time today).  
Longer term there is the entire issue of tuning, use of floating point  
hardware, and all…

Best Regards  
Max KA1RBI
