2019-10-10 04:52:07 -04:00
|
|
|
|
*********************************************
|
2018-02-03 16:12:13 -05:00
|
|
|
|
Linux 平台工具链的标准设置
|
2019-10-10 04:52:07 -04:00
|
|
|
|
*********************************************
|
2018-02-03 16:12:13 -05:00
|
|
|
|
|
2019-10-10 04:52:07 -04:00
|
|
|
|
:link_to_translation:`en:[English]`
|
2018-05-03 00:22:35 -04:00
|
|
|
|
|
2019-10-10 04:52:07 -04:00
|
|
|
|
安装准备
|
2018-02-03 16:12:13 -05:00
|
|
|
|
=====================
|
|
|
|
|
|
|
|
|
|
编译 ESP-IDF 需要以下软件包:
|
|
|
|
|
|
|
|
|
|
- CentOS 7::
|
|
|
|
|
|
2019-09-10 03:58:52 -04:00
|
|
|
|
sudo yum install git wget flex bison gperf python pyserial python-pyelftools cmake ninja-build ccache
|
2018-02-03 16:12:13 -05:00
|
|
|
|
|
2019-06-24 21:26:53 -04:00
|
|
|
|
- Ubuntu 和 Debian::
|
2018-02-03 16:12:13 -05:00
|
|
|
|
|
2019-12-16 05:41:28 -05:00
|
|
|
|
sudo apt-get install git wget flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache libffi-dev libssl-dev
|
2018-02-03 16:12:13 -05:00
|
|
|
|
|
|
|
|
|
- Arch::
|
|
|
|
|
|
2019-09-10 03:58:52 -04:00
|
|
|
|
sudo pacman -S --needed gcc git make flex bison gperf python2-pip python2-pyserial python2-click python2-cryptography python2-future python2-pyparsing python2-pyelftools cmake ninja ccache
|
2018-02-03 16:12:13 -05:00
|
|
|
|
|
2018-08-15 22:31:04 -04:00
|
|
|
|
.. note::
|
2019-06-24 21:26:53 -04:00
|
|
|
|
使用 ESP-IDF 需要 CMake 3.5 或以上版本。较早版本的 Linux 可能需要升级才能向后移植仓库,或安装 "cmake3" 软件包,而不是安装 "cmake"。
|
2018-08-15 22:31:04 -04:00
|
|
|
|
|
2019-10-10 04:52:07 -04:00
|
|
|
|
其他提示
|
|
|
|
|
===============
|
2019-06-24 21:26:53 -04:00
|
|
|
|
|
2018-02-03 16:12:13 -05:00
|
|
|
|
权限问题 /dev/ttyUSB0
|
2019-10-10 04:52:07 -04:00
|
|
|
|
------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
使用某些 Linux 版本向 ESP32 烧写固件时,可能会出现 ``Failed to open port /dev/ttyUSB0`` 错误消息。此时,可以将当前用户增加至 :ref:` Linux Dialout 组 <linux-dialout-group>`。
|
2018-02-03 16:12:13 -05:00
|
|
|
|
|
|
|
|
|
后续步骤
|
2019-10-10 04:52:07 -04:00
|
|
|
|
==========
|
2018-02-03 16:12:13 -05:00
|
|
|
|
|
2019-10-10 04:52:07 -04:00
|
|
|
|
继续设置开发环境,请前往 :ref:`get-started-get-esp-idf` 章节。
|
2018-02-03 16:12:13 -05:00
|
|
|
|
|
|
|
|
|
|
2019-06-24 21:26:53 -04:00
|
|
|
|
相关文档
|
|
|
|
|
=================
|
2018-02-03 16:12:13 -05:00
|
|
|
|
|
2019-06-24 21:26:53 -04:00
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
|
|
linux-setup-scratch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. _AUR: https://wiki.archlinux.org/index.php/Arch_User_Repository
|
2019-10-10 04:52:07 -04:00
|
|
|
|
|