请在 64 位 Ubuntu 下搭建开发环境。Win10 系统可以在应用商店下载安装
Ubuntu18.04 LTS。其他用户可以安装虚拟机软件。
以下为基于 Ubuntu 环境开发和编译 SDK 时需要用到的库和依赖包,请您按顺序
执行命令来安装。
安装程序运行时库
Ubuntu(版本 16.04 X64)
sudo apt-get update
sudo apt-get -y install libssl-dev:i386
sudo apt-get -y install libncurses-dev:i386
sudo apt-get -y install libreadline-dev:i386
安装依赖软件包
Ubuntu(版本 16.04 X64)
sudo apt-get update
sudo apt-get -y install git wget make flex bison gperf unzip
sudo apt-get -y install gcc-multilib
sudo apt-get -y install libssl-dev
sudo apt-get -y install libncurses-dev
sudo apt-get -y install libreadline-dev
sudo apt-get -y install python python-pip
安装 Python packages
Ubuntu(版本 16.04 X64)
python -m pip install setuptools
python -m pip install wheel
python -m pip install aos-cube
python -m pip install esptool
python -m pip install pyserial
python -m pip install scons
注意:aos-cube 的版本至少需要为 0.5.11。
如果在安装过程中遇到网络问题,可使用国内镜像。
安装/升级 pip
$ python -m pip install --trusted-host=mirrors.aliyun.com -i
https://mirrors.aliyun.com/pypi/simple/ --upgrade pip
基于 pip 依次安装第三方包和 aos-cube
$ pip install --trusted-host=mirrors.aliyun.com -i https://mirrors.aliyun.com/pypi/simple/
setuptools
$ pip install --trusted-host=mirrors.aliyun.com -i https://mirrors.aliyun.com/pypi/simple/ wheel
$ pip install --trusted-host=mirrors.aliyun.com -i https://mirrors.aliyun.com/pypi/simple/ aoscube
如需要使用 doubanio 作备用源
$ pip install --trusted-host pypi.doubanio.com -i http://pypi.doubanio.com/simple/ aos-cube
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)