I'm running Cyanogenmod 7 on my Nexus One, and I wanted to compile and run LAME on my phone. I've already downloaded the source package and have tried to ./configure it, but I'm told that neither cc nor gcc exist on the phone. Is there a way to get gcc for Android? I'm simply looking to be able to compile a few native applications like LAME for use on my ARM device. How can I go about doing this?
|
|
|||||||
|
|
You can write, compile and distribute native code as an Android Application. Look here for more info about the NDK. If you want it done without the official framework and application packaging then you'll need to look into cross-compiling the application for the ARM architecture. |
|||||||||
|
|
Android Applications are compiled in a PC and then installed on the phone. In order to compile an Application you will need a considerable amount of computational power and a compiler, in this case, a C compiler. In other words, you need a Computer to compile the application. You will need to download and install in your computer the Android SDK, the gcc compiler and other tools and then you will be able to compile the application for your phone. |
|||
|
|
|
Compiling applications does not take considerable processing power in general. I did it on my 286 all the time. The OP wants gcc on his phone. Look for C4droid (C/C++ compiler) in the Google market. Then install the "GCC plugin for C4droid" from the market. (These do cost a couple dollars). From the market description: "It's a plugin for c4droid, that allows it to compile C and C++ source code using GCC. It contains gcc 4.7 with Bionic (Android libc). Source code hadn't been modified, so you can compile it yourself, if you want." https://play.google.com/store/apps/details?id=com.n0n3m4.droidc https://play.google.com/store/apps/details?id=com.n0n3m4.gcc4droid Here's another package that includes gcc from the market: "Debian Kit" - https://play.google.com/store/apps/details?id=org.dyndns.sven_ola.debian_kit |
||||
|
|