# Help with building GNU Radio for Android

**URL:** <https://www.ruby-forum.com/t/help-with-building-gnu-radio-for-android/243052>\
**Category:** GNU Radio\
**Created:** [August 18, 2015, 2:58pm UTC](https://www.ruby-forum.com/t/help-with-building-gnu-radio-for-android/243052 "2015-08-18T14:58:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [August 18, 2015, 2:58pm UTC](https://www.ruby-forum.com/t/help-with-building-gnu-radio-for-android/243052/1 "2015-08-18T14:58:59Z")

</div>

I am trying to build GNU Radio for Android and am having issues with the  
build process.

I first tried building GNU Radio for Android on Mac OS X 10.10.4. I was  
able to follow the directions successfully until I had to build  
gr-grand.  
When I tried to build gr-grand I got this error (see error 1). I have  
tried  
searching for this error, but have not found any useful information from  
my  
search. I am not sure if this is an error with the build procedure, or  
if  
it is an error with the Android NDK and Python.

I then tried building GNU Radio for Android in a Ubuntu 14.04 64 bit VM,  
but when trying to stage Boost (./b2) I get this output from Boost (see  
error 2) and get an error about -march=armv7-m not being a supported  
compiler flag when Boost starts compiling. I have tried adding the  
toolset=gcc-android to Boost but this did not fix the problem (I had to  
do  
this on Mac to get Boost to use the configuration in the user-config.jam  
file).

I would like help getting this working, as I really want to get GNU  
Radio  
working on Android for me.

Schuyler St. Leger

Error 1:  
[80%] Building CXX object  
swig/CMakeFiles/\_grand\_swig.dir/grand\_swigPYTHON\_wrap.cxx.o  
In file included from  
/opt/android-toolchain/include/python2.7/Python.h:58:0,  
from  
/opt/grandroid/gr-grand/build/swig/grand\_swigPYTHON\_wrap.cxx:167:  
/opt/android-toolchain/include/python2.7/pyport.h:1029:2: error: #error  
“LONG\_BIT definition appears wrong for platform (bad gcc/glibc  
config?).”  
#error “LONG\_BIT definition appears wrong for platform (bad gcc/glibc  
config?).”  
^  
make[2]: \*\*\*  
[swig/CMakeFiles/\_grand\_swig.dir/grand\_swigPYTHON\_wrap.cxx.o]  
Error 1  
make[1]: \*\*\* [swig/CMakeFiles/\_grand\_swig.dir/all] Error 2  
make: \*\*\* [all] Error 2

Error 2:  
Performing configuration checks

```
- 32-bit : no
- 64-bit : no
- arm : no
- mips1 : no
- power : no
- sparc : no
- x86 : no
- combined : no
- has_icu builds : no
- lockfree boost::atomic_flag : no
```
