1、编译环境
虚拟机Ubuntu 16.04 64位
内存4G,4内核(此处最好是8G内存以上)
1.1、安装编译工具包
sudo apt-get update
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip u-boot-tools gawk
###########安装JDK#################
sudo apt-get install openjdk-8-jdk
2、编译Lichee
tar xvfz lichee.tar.gz
cd lichee/
cp lichee/buildroot/script/top_build.sh ./build.sh
./build.sh config
Welcome to mkscript setup progress
All available chips:
0. sun50iw1p1
1. sun50iw2p1
2. sun8iw10p1
3. sun8iw11p1
4. sun8iw1p1
5. sun8iw3p1
6. sun8iw5p1
7. sun8iw6p1
8. sun8iw7p1
9. sun8iw8p1
10. sun8iw9p1
11. sun9iw1p1
Choice: 3
All available platforms:
0. android
1. dragonboard
2. linux
3. camdroid
Choice: 0
All available kernel:
0. linux-3.10
Choice: 0
All available boards:
0. t3-p3
Choice: 0
./build.sh
3、编译安卓
source build/envsetup.sh
lunch 17(t3_p3)
extract-bsp
#此处根据自己的内存和核心数来选择
make -j1 && pack
Try increasing heap size with java option '-Xmx'错误,参考链接
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
prebuilts/sdk/tools/jack-admin kill-server
prebuilts/sdk/tools/jack-admin start-server
*******************未完待续***********************