无法为 esp32 MicroPython 构建 LVGL

问题描述 投票:0回答:1

我正在尝试按照 this doc 使用 LVGL 为我的 esp32s3 构建 MicroPython,但通用

make
make BOARD=GENERIC_S3
命令都出现错误。

/Users/lilygo/lv_micropython/ports/esp32/network_common.c:220:1: error: static assertion failed: "Synchronize WIFI_AUTH_XXX constants with the ESP-IDF. Look at esp-idf/components/esp_wifi/include/esp_wifi_types.h"
 _Static_assert(WIFI_AUTH_MAX == TEST_WIFI_AUTH_MAX, "Synchronize WIFI_AUTH_XXX constants with the ESP-IDF. Look at esp-idf/components/esp_wifi/include/esp_wifi_types.h");
 ^~~~~~~~~~~~~~
[1393/1743] Building C object esp-idf/main/CMakeFiles.../lilygo/lv_micropython/lib/littlefs/lfs2.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
-e See https://github.com/micropython/micropython/wiki/Build-Troubleshooting
make: *** [all] Error 1

idf.py
已经这样安装了(因为ESP32-S3目前需要v4.4或更高版本

git clone -b release/v4.4 --recursive https://github.com/espressif/esp-idf.git
git submodule update --init --recursive
./install.sh
idf.py --version
ESP-IDF v4.4.7-143-g309ffa5565

如何调试/修复此错误?我在 Build Trobleshooting 页面上找不到任何内容,并且 lvgl 端口存储库 上没有 Issues

部分
esp32 micropython espressif-idf lvgl
1个回答
0
投票

我自己刚刚解决了这个问题。我必须进入我的 esp/esp-idf/components/esp_wifi/include/esp_wifi_types_generic.h 文件并将第 77 行更改为 WIFI_AUTH_MAX = 13 (刚刚添加了“= 13”)

© www.soinside.com 2019 - 2024. All rights reserved.