Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

With the growing number of Android devices in all sorts of different form factors (dev boards like Raspberry Pi/ODroid, Android-on-a-stick, etc), it seems like it would be great to be able to actually do development work on Android and not just simply for Android. For example, having the standard Linux build tools available would let me easily run a server.

share|improve this question
Are you sure you want to compile larger projects on a slow android device? –  Robert Jan 25 '13 at 13:30
This is off-topic, please read the FAQ. –  t0mm13b Jan 25 '13 at 15:15
@t0mm13b strictly spoken, this is not a development question as such, but rather a "how-to-setup-an-environment" issue. It might be "grey zone" or "border-line" -- but I'd say we shouldn't be more Catholic than the Pope :) –  Izzy Jan 25 '13 at 16:11
@Izzy LOL! +1 for that comment! :) –  t0mm13b Jan 25 '13 at 16:18

3 Answers 3

up vote 4 down vote accepted

In case you only need a cross compiling environment with the standard Linux build tools there is an easy solution already included in the Android-NDK:

In the subdirectory build/tools of the NDK you find a scrip named make-standalone-toolchain.sh. using the parameter --install-dir= you can specify a path where to create the standalone-toolkit - for example as shown inthis call:

build/tools/make-standalone-toolchain.sh --install-dir=/tmp/android-stanalone-toolchain

Adding the bin directory of the created toolkit allows you to use the standard build process for compiling projects. Just make sure that you call the configure script properly for cross compiling:

./configure  --target=arm-linux-androideabi  --host=arm-linux-androideabi

Afterwards you can simply call make and then pray that the application you want to compile is compatible with ARM/Android platform.

share|improve this answer

I'd suggest you take a look at Terminal IDE:

Terminal IDE is an expandable terminal application, with a full Java / HTML / Android development kit, that runs on your Android device.

It uses the command line, with many powerful and robust open-source applications, plus a custom ASCII on-screen 'soft' keyboard that works well (You must ENABLE it in your device's main Keyboard Settings).. and also has an extensive generic external 'hard' keyboard key mapper. This way CTRL / ALT / ESC etc.. should all be accessible.

javac, java, dx, proguard, aapt, apkbuilder, signer, ssh, sshd, telnetd, bash 4.2, busybox 1.19.2, vim 7.3, nano 2.2.6, midnight commander 4.8, htop 1.0, TMUX 1.5, rsync 3.0.8, git 1.7.8, BitchX 1.1 and a nice terminal emulator are all available.

Guess this should do for your purpose?

share|improve this answer

easy way to get GNU build tools :

first https://play.google.com/store/apps/details?id=com.n0n3m4.droidc (install gcc in internal memory)

second https://github.com/fann95/C4droid-Shell

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.