Hi Jianwei,
我们文档中推荐了14.04和16.04,说明test team和design team都做过严格的测试,不会有问题。但是,我这里没有14.04的环境,我在18.04 LTS编译了几个不同的开发板,可以在这里和你分享一下配置的步骤:
1. Install 18.04 on vmplayer
After installation is done, root user should be set at first.
# sudo passwd root
Then follow these steps to configuration ubuntu 18.04 for environment of compiliation
(1)Change sources of ubuntu 18.04 mirror
# sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
# sudo geit /etc/apt/source.list
[Comment]
I.MX customers outside China do not need to modify Ubuntu source list, or can modify it to local mirror site of Ubuntu 18.04, which can improve the speed of software upgrade
Delet all sources and copy following lines here, Then save it and exit
--------------------
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
-----------------------------
(2)Run these 2 commands to update sources and package
# sudo apt-get update
# sudo apt-get upgrade
- Installing packages for compiliation
After installing the following packages, android9.0.0-2.3.1 and Linux BSP 4.19.35-1.1.0 can both compilied without errors. For other lower versions of android and linux BSP, even I didn’t test them, customer can also install these packages before compiliation, probably these packages can help customer solve some of problems during compiling BSP.
--------------------------------
# sudo apt-get install flex bison gperf build-essential zlib1g-dev lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev tofrodos python-markdown libxml2-utils xsltproc
# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386 gcc-multilib g++-multilib subversion openssh-server openssh-client uuid uuid-dev zlib1g-dev liblz-dev lzop liblzo2-2 liblzo2-dev git-core curl
# sudo apt-get install u-boot-tools mtd-utils android-tools-fsutils openjdk-8-jdk device-tree-compiler aptitude libcurl4-openssl-dev nss-updatedb
# sudo apt-get install chrpath texinfo gawk cpio diffstat
-----------------------------------------
上面的这配置完成之后,就可以用你的命令进行编译了。这个版本我编译了好几个板子的BSP,都没啥问题。
[注] 可能你在编译到tensorflow的时候,会遇到编译出错的问题,这是因为在编译的时候,它需要下载软件包,网络环境不好造成的软件包下载不完整,从而解压出错的原因。如果网络环境好,不会遇到这个问题。
Have a nice day!
BR,
Weidong