- install Ubuntu 12.04 LTS 64bit
- follow google's instruction:
- https://source.android.com/source/initializing.html
- install oracal JDK 6
- sudo apt-get install software-properties-common
- sudo add-apt-repository ppa:webupd8team/java
- sudo apt-get update
- install required packages
- sudo apt-get install git gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 libglapi-mesa:i386
- sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
- get and setup repo
- mkdir ~/bin
- add "PATH=~/bin:$PATH" in ~/.bash then run bash again
- curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
- chmod a+x ~/bin/repo
- download source code
- create new directory for download project, then switch to that directory
- repo init -u https://android.googlesource.com/platform/manifest
- repo sync -j10
- setup ccache (compiler cache, for speedup build time)
- add "export USE_CCACHE=1" in ~/.bashrc
- run "prebuilts/misc/linux-x86/ccache/ccache -M 50G" in your project
2014年7月27日 星期日
to be continue... Android build environment setup(ubuntu 12.04)
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言