[熱情]

android compile... 본문

카테고리 없음

android compile...

rootkaien 2014. 1. 12. 16:00


1. java SDK 설치

Download Java SDK : jdk-6u37-linux-x64.bin <- 다운로드한다.


다운로드 SIte : http://www.oracle.com/technetwork/java/javase/downloads/jdk6u37-downloads-1859587.html 


설치후 작업

mv jdk1.6.0_37/ /usr/lib/jvm/


sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/bin/java 1

sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/bin/javaws 1
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/bin/jar 1

sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/bin/javadoc 1


sudo update-alternatives --config java

sudo update-alternatives --config javac

sudo update-alternatives --config javaws

sudo update-alternatives --config jar

sudo update-alternatives --config javadoc


제대로 설치되었는 확인


# java -version

java version "1.6.0_37"

Java(TM) SE Runtime Environment (build 1.6.0_37-b06)

Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)


2. 컴파일에 필요한  패키지 설치.

sudo apt-get install git-core lzop ccache gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python gcc g++ cpp gcc-4.8 g++-4.8


sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

(ubuntu 13.10 설치환경 참고사이트 : http://forum.xda-developers.com/showthread.php?t=2464683)

3. odroid-x2의 커널과 안드로이드를 다운받아서 컴파일 진행.

hardkernel android downlaod

wget http://dn.odroid.com/Android_Beta_1.9.0/BSP/kernel_4412.tar.gz



wget http://dn.odroid.com/Android_Beta_1.9.0/BSP/android.tar.gz






Comments