- 提示缺少 libncurses.so.5,找到对于的库,建立软链接
find / -name libncurses.so
/usr/lib/x86_64-linux-gnu/libncurses.so
cd /usr/lib/x86_64-linux-gnu/
ls -al libncurses*
sudo ln -s libncurses.so.6.4 libncurses.so.5
sudo ln -s libncurses.so.6.4 libtinfo.so.5
find / -name libtinfo.so
cd /usr/lib/x86_64-linux-gnu
ls -al libtinfo.so*
sudo ln -s libtinfo.so.6.4 libtinfo.so.5
- 在最后打包镜像时./device/generic/goldfish/tools/mk_combined_img.py 提示有语法错误 解决方法,自编译python2.7
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xzf Python-2.7.18.tgz
cd Python-2.7.18
sudo ./configure --enable-optimizations
sudo make altinstall
which python2.7
/usr/local/bin/python2.7
并修改mk_combined_img.py
#!/usr/bin/python
import sys
import os
from subprocess import Popen, PIPE
from tempfile import mkstemp
import argparse
import operator
...
改成
#!/usr/local/bin/python2.7
import sys
import os
from subprocess import Popen, PIPE
from tempfile import mkstemp
import argparse
...
import operator
安装java 1.8