How to compile Android Kernel source code on ubuntu? - android

I have downloaded both Android 4.2 source code and Android kernel source code (common) separately by following the procedure mentioned in Android website. But I am not able to get the way how to start compiling both kernel code and source code on Ubuntu 12.04. I have also downloaded the Android Emulator.
Please mention the steps required to compile.

AOSP site contains Downloading and Building guide:
http://source.android.com/source/initializing.html
You should set up your local work environment to build the Android source files. You will need to use Linux (Ubuntu in yor case) or Mac OS. Building under Windows is not currently supported.
Note: The source download is approximately 8.5GB in size. You will need over 30GB free to complete a single build, and up to 100GB (or more) for a full set of builds.
Detailed instructions for Ubuntu and MacOS you can see on AOSP site. In general you will need:
Python 2.6 -- 2.7, which you can download from http://python.org.
GNU Make 3.81 -- 3.82, which you can download from http://gnu.org,
JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older. You can download both from http://java.sun.com.
Git 1.7 or newer. You can find it at http://git-scm.com.
Note: It is also possible to build Android in a virtual machine. If you are running Linux in a virtual machine, you will need at least 16GB of RAM/swap and 30GB or more of disk space in order to build the Android tree.
On XDA-developers you can see this Ubuntu-guide:
http://forum.xda-developers.com/showthread.php?t=2114594

Related

How to install the Android Studio 2.2 CMake package/tool?

My recent Android Studio 2.2 preview 3 installation can't seem to find CMake.
I tried installing it from the SDK Tools but there's no such package...
We won't be able to support CMake (or ndk-build) on 32 bit OS because it is not supported in CLion which is the tech we use for the C++ editor. The root cause is memory\address-space limits.
Here's a helper page where I describe Android Studio C++ support including the 64 bit requirement: https://sites.google.com/a/android.com/tools/tech-docs/external-c-builds
I hope this helps!
- Jomo

How to run Eclipse ADT on Windows8?

I would like to install eclipse + ADT on Windows 8.
The system requirements on Android Website do not list Windows 8 as supported OS. Is it possible to do so?
Also, I see this Error.
Thanks
I'm not sure if you mean would you be able to install ADT + eclipse on Windows 8 ?? but according to the system requirements mentioned on Android Website it stops at Windows 7. I do not see a problem however with the installation. It should work. Just make sure you have the correct/updated JVM.
Operating Systems
Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)
Mac OS X 10.5.8 or later (x86 only)
Linux (tested on Ubuntu Linux, Lucid Lynx)
GNU C Library (glibc) 2.7 or later is required.
On Ubuntu Linux, version 8.04 or later is required.
64-bit distributions must be capable of running 32-bit applications.
You have Java Problems. I think its related to 32 & 64 bit. See here for a possible duplicate:
Failed to load the JNI shared Library (JDK)

Does phonegap 3.0 can be use on Windows 8 to build an Android app?

Phonegap 3.0 come with a lot of changes like the new command-line interface (CLI). The (doc)
mention that the CLI support the following combinations:
iOS (Mac)
Android (Mac, Linux)
BlackBerry 10 (Mac, Linux, Windows)
Windows Phone 7 (Windows)
Windows Phone 8 (Windows)
Does that mean that I can't build anymore Phonegap app for Android on my Windows 8 pc?
Thanks a lot
Etienne
Unfortunately you are correct. As you can see in the new CLI Documentation, if you're going to build locally you can only develop Windows Phone7/8 and BlackBerry 10 from a Windows PC. My suggestion would be to build your app for one of those platforms your OS currently supports, then when it comes time to deploy to Android either use the PhoneGap Build service to create Android version, or build a virtual Linux machine through VirtualBox to create your Android version if you really want to keep it local.
I thing you can build it localy without a problem. You need to download android studio from google. Here is what you have to do:
download Android SDK from here: http://developer.android.com/sdk/index.html
download Android studio from here: http://developer.android.com/sdk/installing/studio.html
You have to install also node, JDK and if you wnat ant.
From Android studio actualy you can build signed apk very easy.
If you need more details conact me i will give you exact steps.

What is the dif between mac and windows about android SDK

as the question stated. I am planning to copy android SDK library from my microsoft windows pc to my new Mac PC. Should I download the mac version of sdk or copying the directory from windows to mac is enough ?
The SDK (Java part) is identical, but the NDK (which may also be called a part of the SDK) contains prebuilt Windows/Linux/Mac versions of the GCC compiler to produce ARM/MIPS/x86 Android executables.
To compile native native code on Mac you need different prebuilt GCC toolchain (included in NDK). That part certainly cannot be copied from Windows.
To build Java just make sure your Mac is not too old (like PowerPC) and support the Android SDK and official JDK to run Ant build scripts.
The direct copying may have one problem: the CLASSPATH variable will point to your old Windows paths, not the Mac paths.
There's no big difference, but you will need to download the SDK again. This is because not everything is Java, some of it is native code and won't work on your Mac coming from Windows. But functionally, it's identical.

Compiling android tools for windows

I have set up a 64 bit ubuntu env for compiling android tools (aapt, adb etc...), i'm now downloading the source code for 2.1.
I have compiled the env in the past with no problem, built emulator and stock version.
But it was all linux binaries (the sdk tools)
The more i think about it the less i understand,How i can build those tools for windows machine ? (ubuntu runs on virtual box on top of my hosting Server 2008 which is my work env).
I saw some posts related to minGW but as far as i know these are windows libraries that are meant to compile linux binaries on windows machine. I am looking for a way to compile windows binaries on linux machine.
I must say it seems impossible since i'm not sure how the linker in linux will generate an exe file, ithought of taking the .o file and try to link them under windows (VS) but i'm not sure it will work, I'll have to find compatible dlls to the API's on linux.
How do goolge create a windows SDK?
well with the help of several posts and of 'inazaruk' i managed to find the command : $ make -j PRODUCT-sdk-win_sdk showcommands dist
it compiled and in ./out/host/ i had the windows binaries. pretty cool :-) i didn't need to take them out and recompile under windows.
Hopes this helps anyone else that needs to recompile the SDK tools.
make -j8 win_sdk
also builds windows sdk.

Categories

Resources