Android build setting

Posted in 개인/ㄴAndroid by

## 패키지 업데이트 & 업그레이드 ##

$sudo apt-get update

$sudo apt-get upgrade


## Oracle JDK 6 설치 ##

http://eldora.tistory.com/97


## 빌드하는데 필요한 패키지 파일들 설치 ##

$sudo apt-get install git-core gnupg flex bison gperf build-essential

$sudo apt-get install zip curl zlib1g-dev libc6-dev lib32ncurses5-dev

$sudo apt-get install ia32-libs x11proto-core-dev libx11-dev xsltproc

$sudo apt-get install lib32readline-gplv2-dev lib32z-dev libgl1-mesa-dev

$sudo apt-get install g++-multilib mingw32 tofrodos python-markdown libxml2-utils


## Libx11-dev:i386 설치 ##

$sudo apt-get install libx11-dev:i386 –yes


## gcc4.4, g++ 4.4 설치 ##

sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib

echo "export CC=gcc-4.4 CXX=g++-4.4" >> ~/.bashrc

source ~/.bashrc

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 50

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 50


## U-boot-tools 설치 ##

sudo apt-get install u-boot-tools


## Sourcery G++ Lite 2010q1-188 for ARM GNU/Linux 설치 ##

아래 URL에서 IA32 GNU/Linux Installer 다운로드

https://sourcery.mentor.com/sgpp/lite/arm/portal/release1294


cd ~/다운로드

sudo chmod a+x arm-2010q1-188-arm-none-eabi.bin

sudo dpkg-reconfigure -plow dash


dash 환경설정 - 아니오 - Enter

./arm-2010q1-188-arm-none-eabi.bin

계속 다음을 누르면서 설치


## CrossCompile 환경설정 ##

vi ~/.bashrc

맨아래 코드3줄 입력

export CROSS_COMPILE=arm-none-eabi-

export ARCH=arm

export PATH=$PATH:/home/본인계정/CodeSourcery/Sourcery_G++_Lite/bin;

source ~/.bashrc


참고 : http://source.android.com