安裝Android開發環境
參考
Initializing a Build Environment
- Python 2.6 -- 2.7
- GNU Make 3.81 -- 3.82
- JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older
- Git 1.7 or newer
- #apt-get install python
- #apt-get install make
- Ubuntu Java help
#wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
#chmod u+x jdk-6u45-linux-x64.bin
#./jdk-6u45-linux-x64.bin
#mv jdk1.6.0_45 /opt
#update-alternatives --install "/usr/bin/jar" "jar" "/opt/jdk1.6.0_45/bin/jar" 1
#update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.6.0_45/bin/java" 1
#update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk1.6.0_45/bin/javac" 1
#update-alternatives --install "/usr/bin/javadoc" "javadoc" "/opt/jdk1.6.0_45/bin/javadoc" 1
#update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/opt/jdk1.6.0_45/jre/lib/amd64/libnpjp2.so" 1
#update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/jdk1.6.0_45/bin/javaws" 1
#update-alternatives --config jar
#update-alternatives --config java
#update-alternatives --config javac
#update-alternatives --config javadoc
#export _JAVA_HOME=/opt/jdk1.6.0_45/
- #apt-get install gcc-4.4 g++-4.4 gcc-4.4-multilib g++-4.4-multilib
- #cd /usr/bin
#rm –f gcc; ln –s gcc-4.4 gcc
#rm –f g++; ln –s g++-4.4 g++
- #apt-get install git git-core gnupg flex bison gperf build-essential zip curl libc6-dev lib32ncurses5-dev libncurses5-dev:i386 ia32-libs x11proto-core-dev libx11-dev libx11-dev:i386 lib32readline5-dev libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev zlib1g-dev:i386
- #ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so (Ubuntu-10.10)
沒有留言:
張貼留言