编译AOSP源码的库
sudo apt-get install git bc bison build-essential curl flex g+±multilib gcc-multilib gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc yasm zip zlib1g-dev python python3-pip scons openssh-server -y
pip3 install xlrd wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb sudo apt-get install apt-transport-https
错误1 : prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory 解决办法: sudo apt-get install libtinfo5
错误2: vendor/qcom/proprietary/chi-cdk/core/chiframework/build/android/Android.mk:51: error: vendor/qcom/proprietary/chi-cdk/core/chiframework/g_pipelines.h was not generated. 17:09:46 ckati failed with: exit status 1 解决办法: 通过apt-cache search XML::Simple查找,然后选择一个 sudo apt-get install libxml-simple-perl 或者apt install libswitch-perl
错误3: prebuilts/clang-tools/linux-x86/bin/header-abi-dumper: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory 解决办法: sudo apt-get install libncurses5
编译高通定制Android源码时需要的库
sudo apt-get install dpkg-dev libsdl1.2-dev sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 sudo apt-get install -y git flex bison gperf build-essential libncurses5-dev:i386 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 sudo apt-get install libssl-dev
有些奇奇怪怪的编译错误,找到错误定位之后,不行了先把out/soong/.intermediates里面的一些删掉,再解决问题。还有就是编译源码到11这个版本,都是python2.7这个版本,不是python3.8。
以上是踩过了无数坑,总结出来的。
|