Jump to content

Simple guide to installing build environment


Recommended Posts

Posted (edited)

This is how I installed my build environment, using mostly the Google SDK.

1. Install UBUNTU

2. Download the SDK from http://developer.android.com/sdk/index.html

3. Following the installation instructions which are basically

Extract the sdk

sudo apt-get update

sudo apt-get install sun-java6-bin

add export PATH=${PATH}:<your_sdk_dir>/tools to your ~/.bashrc file

restart your shell to take account of the above change

android

goto settings and select the force http option, apply

goto available packages, select the site on the right

install all options

4. download the ndk from the same place as the sdk

5. extract the ndk and execute build/host-setup.sh , you will probably need to use the --no-awk-check option if you get an error

6. get hold of the source, I used the huawei QMR version, you might need to get unrar from www.rarlabs.com to extract the source

7. get hold of config.gz from your device and extract to your kernel directory calling it .config

8. create build-main.sh s below (copied from Pauls example but modified to take account of different install) you might need to alter directories depending on where you extracted stuff, I did it all in my home dir

make ARCH=arm CROSS_COMPILE=~/android-ndk-1.6_r1/build/prebuilt/linux-x86/arm- eabi-4.2.1/bin/arm-eabi- $1

9. remove kernel/include/asm directory from the source (this is re-created properly)

10. execute build-main.sh and wait

I had problems with available disk space on ubuntu using wubi to install so in the end I did a native install.

I think these steps have everything, let me know

Edited by rjm2k

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.