ubuntu18.04编译rk3288 android7.1.2问题汇总!

 

1、先别安anaconda3 ,不然会改变python路径,安装用which python查看,会发现在python在anaconda 下,而其是python3
会引起ninja编译出错。

//正常来说命令行配置jre即可
sudo apt-get install openjdk-8-jre
//但我同时安装了jdk
sudo apt-get install openjdk-8-jdk
sudo apt install python-lunch
sudo apt-get install lzop
sudo apt-get install python
sudo  apt install g++-multilib
sudo  apt install gperf
sudo apt install libxml2-utils
sudo apt install curl
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt-get install libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib
sudo apt-get install -y git flex bison gperf build-essential libncurses5-dev:i386
sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
sudo apt-get install dpkg-dev libsdl1.2-dev libesd0-dev
sudo apt-get install git-core gnupg flex bison gperf build-essential 
sudo apt-get install zip curl zlib1g-dev gcc-multilib g++-multilib
sudo apt-get install libc6-dev-i386
sudo apt-get install lib32ncurses5-dev x11proto-core-dev libx11-dev
sudo apt-get install libgl1-mesa-dev libxml2-utils xsltproc unzip m4
sudo apt-get install lib32z-dev ccache
 
编译android 7.0 出现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
1 文件路径中不能有:、/ %《》?=这类非法字符不然make过不了
   
2 代码解压
3 cat rk3288_71.tar.bz2.a* | tar xj
   
  编译方法
1.uboot  
  cd u-boot
  make distclean
  make rk3288_secure_defconfig
  ./mkv7.sh
2.kernel 编译:  
  cd ..
  cd kernel
  make ARCH=arm rockchip_8G_defconfig
  make ARCH=arm rk3288-evb-android-rk808-hdmi.img -j4
   #8线程 编译
  make ARCH=arm rk3288-evb-android-rk808-hdmi.img -j8
3.android 编译:在根目录下  
  cd ..
  source build/envsetup.sh
  lunch  rk3288-userdebug
  make -j12
  ./mkimage.sh
5.生成固件.img  
  cd rockdev
  ./mkupdate.sh
   在rockdev目录下会生成
   update-rk3288-7.0-$DATE-v0.1.img 的文件

你可能感兴趣的:(python,android,开发学习)