macOS 安裝 ESP32 環境

2021-10-17 13:11:29 字數 2551 閱讀 5105

github 上提供的在 arduino ide 中安裝 esp32 環境的方法,我翻成中文希望能幫助到一些洋文不太好的小夥伴哈哈哈

原文小學生英語,我這翻譯也沒啥用,只是希望我遇到的幾個問題可以提供參考

installation instructions for mac os

mkdir -p ~/documents/arduino/hardware/espressif && \

cd ~/documents/arduino/hardware/espressif && \

git clone esp32 --depth 1 && \

cd esp32 && \

git submodule update --init --recursive --depth 1 && \

cd tools && \

python get.py

where~/documents/arduinorepresents your sketch book location as per 「arduino」 > 「preferences」 > 「sketchbook location」 (in the ide once started). adjust the command above accordingly if necessary!

xcrun: error: invalid active developer path (/library/developer/commandlinetools), missing xcrun at: /library/developer/commandlinetools/usr/bin/xcrun

xcode-select --install

mkdir -p ~/documents/arduino/hardware/espressif && \

cd ~/documents/arduino/hardware/espressif && \

git clone esp32 --depth 1 && \

cd esp32 && \

git submodule update --init --recursive --depth 1 && \

cd tools && \

python get.py

~/documents/arduino的位置是根據「arduino」>「偏好設定(cmd+)」>「專案資料夾位置」。有必要的話調整上面的命令

譯者注:例如,我是在 /documents 資料夾下新建了 /學習資料/嵌入式/arduino,專案檔案儲存於此,所以我上方的**改為了:

mkdir -p ~/documents/學習資料/嵌入式/arduino/hardware/espressif && \

cd ~/documents/學習資料/嵌入式/arduino/hardware/espressif && \

git clone esp32 --depth 1 && \

cd esp32 && \

git submodule update --init --recursive --depth 1 && \

cd tools && \

python3 get.py #這裡因為 python版本做的改動,後文會解釋

xcrun: error: invalid active developer path (/library/developer/commandlinetools), missing xcrun at: /library/developer/commandlinetools/usr/bin/xcrun
在終端中執行下面的命令來安裝命令列開發工具

xcode-select --install
安裝好後重新執行第二步的**(即mkdir -p ~/do。。。)

ioerror: [errno socket error] [ssl: tlsv1_alert_protocol_version] tlsv1 alert protocol version (_ssl.c:590)
python換成python3

urllib.error.urlerror: 譯者注:讓我看看有沒有憨批和我一樣在終端執行這行**:

install certificates.command and update shell profile.command

如果你是和我一樣的憨憨,你會得到這個介面哈哈哈

如果你在過程中遇到了其他的問題,可以看一下這篇部落格

ESP32環境搭建

1,按照虛擬機器vm 3,按照對應的虛擬機器 環境 1,esp需要的編譯環境 gcc,g 版本是5.2 2,crosstool ng是1.22.0 一,按照git指令 sudo add apt repository ppa git core ppasudo apt get updatesudo ap...

ESP32環境搭建

安裝依賴包 make python等,因此我們需要先將這些軟體預裝好。gz 強迫症,解壓後把工具鏈的壓縮包刪掉 gz 強迫症,解壓後把工具鏈的壓縮包刪掉 rm xtensa esp32 elf linux32 1.22 0 61 gab8375a 5.2 0.tar gzecho export pa...

ESP32 學習日誌(1) 環境搭建以及編譯燒錄

提取碼 sg2d 準備工作完成後,執行esp idf 工具安裝器選擇自定義的路徑安裝。esp idf 編譯系統不支援帶有空格的路徑。現在,您可以開始準備開發 esp32 應用程式了。您可以從 esp idf 中 examples 目錄下的 get started hello world 工程開始。若...