Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling SciPy to Android - Has it been done, any help on how to compile the FORTRAN code to Android Arm

For a project, I am porting a scientific Python app using SciPy to Android. I am currently using

https://github.com/kivy/python-for-android

to build the code. NumPy builds, but SciPy is proving to be a real hassle. Hacking around with devenv, and kivy python for android, I kinda got to compile the SciPy C libs to android ARM, but now, the fortran libs remain to be built, and I'm at a loss.

Any help would be deeply appreciated.

like image 948
Jules G.M. Avatar asked Mar 20 '14 21:03

Jules G.M.


People also ask

Does SciPy use Fortran?

SciPy requires a Fortran compiler to be built, and heavily depends on wrapped Fortran code.

What SciPy can do?

SciPy is a scientific computation library that uses NumPy underneath. SciPy stands for Scientific Python. It provides more utility functions for optimization, stats and signal processing. Like NumPy, SciPy is open source so we can use it freely.

What is the difference between NumPy and SciPy?

NumPy is written in C and so has a faster computational speed. SciPy is written in Python and so has a slower execution speed but vast functionality.


1 Answers

An apology if this is a non-answer:

First off, if you are just playing around I recommend installing a regular linux on arm chroot jail/environment, e.g. raspbian or ubuntu and working within.

Finally if you want to build your libs as proper android libs, you have to deal with slightly different runtime, but that has been done, at least wrt. Fortran. http://specificimpulses.blogspot.com/2011/01/my-android-speaks-fortran-yours-can-too.html

Typically you are expected to cross-compile, however there are way to get Adnroid sortof self-hosted (gcc, build tools), but I can't vouch for ability to pip install packages that require compilation.

like image 50
Dima Tisnek Avatar answered Nov 14 '22 22:11

Dima Tisnek