Can't compile esp-idf-master console example

LC2047
Posts: 2
Joined: Thu May 19, 2022 5:11 am

Can't compile esp-idf-master console example

Postby LC2047 » Fri May 27, 2022 10:57 am

大家好,我是编程初学者。

我想尝试 esp-idf-master(https://github.com/espressif/esp-idf) 控制台示例(\esp-idf-master\examples\system\console\basic) 在 VS code中使用 platformio 。

三个库(cmd_system, cmd_wifi & cmd_nvs)拷贝至“lib”文件夹中。

但是,我在编译时遇到问题。

Code: Select all

src/main.c: In function 'app_main':
src/main.c:68:16: error: 'esp_console_repl_config_t' {aka 'struct <anonymous>'} has no member named 'max_cmdline_length'
     repl_config.max_cmdline_length = CONFIG_CONSOLE_MAX_COMMAND_LINE_LENGTH;
                ^
src/main.c:68:38: error: 'CONFIG_CONSOLE_MAX_COMMAND_LINE_LENGTH' undeclared (first use in this function); did you mean 'CONFIG_SPIFFS_USE_MAGIC_LENGTH'?
     repl_config.max_cmdline_length = CONFIG_CONSOLE_MAX_COMMAND_LINE_LENGTH;
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                      CONFIG_SPIFFS_USE_MAGIC_LENGTH
src/main.c:68:38: note: each undeclared identifier is reported only once for each function it appears in
请帮助并教我修复它。
Attachments
Error.PNG
Error.PNG (30.72 KiB) Viewed 1337 times
IDF_system_console_basic.rar
(26.49 KiB) Downloaded 206 times

Who is online

Users browsing this forum: No registered users and 67 guests