ESP-ADF编译失败,ESP-IDF编译OK

John_luo
Posts: 2
Joined: Tue Jun 25, 2019 9:05 am

ESP-ADF编译失败,ESP-IDF编译OK

Postby John_luo » Tue Jun 25, 2019 9:09 am

CC build/audio_board/lyrat_v4_3/board.o
In file included from /home/ESP32/esp-adf/components/audio_pipeline/include/audio_event_iface.h:30,
from /home/ESP32/esp-adf/components/esp_peripherals/include/esp_peripherals.h:29,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.h:31,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.c:26:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/ESP32/esp-adf/components/esp_peripherals/include/periph_sdcard.h:28,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.c:29:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/ESP32/esp-adf/components/esp_peripherals/include/periph_touch.h:28,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.c:31:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/ESP32/esp-adf/components/esp_peripherals/include/periph_button.h:28,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.c:32:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
CC build/audio_board/lyrat_v4_3/board_pins_config.o
In file included from /home/ESP32/esp-adf/components/audio_pipeline/include/audio_event_iface.h:30,
from /home/ESP32/esp-adf/components/esp_peripherals/include/esp_peripherals.h:29,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.h:31,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:28:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.h:29,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:28:
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c: In function 'get_input_set_id':
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_def.h:33:35: error: 'TOUCH_PAD_NUM9' undeclared (first use in this function)
#define BUTTON_SET_ID TOUCH_PAD_NUM9
^~~~~~~~~~~~~~
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:164:12: note: in expansion of macro 'BUTTON_SET_ID'
return BUTTON_SET_ID;
^~~~~~~~~~~~~
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_def.h:33:35: note: each undeclared identifier is reported only once for each function it appears in
#define BUTTON_SET_ID TOUCH_PAD_NUM9
^~~~~~~~~~~~~~
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:164:12: note: in expansion of macro 'BUTTON_SET_ID'
return BUTTON_SET_ID;
^~~~~~~~~~~~~
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c: In function 'get_input_play_id':
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_def.h:34:35: error: 'TOUCH_PAD_NUM8' undeclared (first use in this function)
#define BUTTON_PLAY_ID TOUCH_PAD_NUM8
^~~~~~~~~~~~~~

John_luo
Posts: 2
Joined: Tue Jun 25, 2019 9:05 am

Re: ESP-ADF编译失败,ESP-IDF编译OK

Postby John_luo » Tue Jun 25, 2019 11:31 pm

该问题通过设置IDF_PATH = /ESP32/esp-adf/esp-idf已经解决,重新编译还是出现如下问题,正在按照提示解决中....
WARNING: Toolchain version is not supported: esp32-2019r1
Expected to see version: crosstool-ng-1.22.0-80-g6c4433a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
WARNING: Compiler version is not supported: 8.2.0
Expected to see version(s): 5.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.

JunesLiang
Posts: 2
Joined: Tue Aug 20, 2019 2:17 pm

Re: ESP-ADF编译失败,ESP-IDF编译OK

Postby JunesLiang » Tue Aug 20, 2019 3:39 pm

我也碰到同样的问题,请问您是怎样解决的?

dreams2084
Posts: 3
Joined: Tue Sep 10, 2019 5:09 am

Re: ESP-ADF编译失败,ESP-IDF编译OK

Postby dreams2084 » Mon Sep 23, 2019 7:11 am

我也碰到同样的问题,esp-ADF编译失败,报很多宏未定义,例如:error: 'TOUCH_PAD_NUM9' undeclared (first use in this function)
#define BUTTON_SET_ID TOUCH_PAD_NUM9。
我也git submodule update --init命令对ADF和IDF进行了更新,但是依然是报上面的很多宏未定义的错误。
请问此问题的原因和如何解决?

smart123
Posts: 37
Joined: Mon Apr 27, 2020 12:01 pm

Re: ESP-ADF编译失败,ESP-IDF编译OK

Postby smart123 » Wed Jun 10, 2020 4:24 am

John_luo wrote:
Tue Jun 25, 2019 9:09 am
CC build/audio_board/lyrat_v4_3/board.o
In file included from /home/ESP32/esp-adf/components/audio_pipeline/include/audio_event_iface.h:30,
from /home/ESP32/esp-adf/components/esp_peripherals/include/esp_peripherals.h:29,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.h:31,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.c:26:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/ESP32/esp-adf/components/esp_peripherals/include/periph_sdcard.h:28,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.c:29:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/ESP32/esp-adf/components/esp_peripherals/include/periph_touch.h:28,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.c:31:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/ESP32/esp-adf/components/esp_peripherals/include/periph_button.h:28,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.c:32:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
CC build/audio_board/lyrat_v4_3/board_pins_config.o
In file included from /home/ESP32/esp-adf/components/audio_pipeline/include/audio_event_iface.h:30,
from /home/ESP32/esp-adf/components/esp_peripherals/include/esp_peripherals.h:29,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.h:31,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:28:
/home/ESP32/esp-idf/components/esp32/include/rom/queue.h:1:2: warning: #warning rom/queue.h is deprecated, please use sys/queue.h instead [-Wcpp]
#warning rom/queue.h is deprecated, please use sys/queue.h instead
^~~~~~~
In file included from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board.h:29,
from /home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:28:
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c: In function 'get_input_set_id':
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_def.h:33:35: error: 'TOUCH_PAD_NUM9' undeclared (first use in this function)
#define BUTTON_SET_ID TOUCH_PAD_NUM9
^~~~~~~~~~~~~~
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:164:12: note: in expansion of macro 'BUTTON_SET_ID'
return BUTTON_SET_ID;
^~~~~~~~~~~~~
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_def.h:33:35: note: each undeclared identifier is reported only once for each function it appears in
#define BUTTON_SET_ID TOUCH_PAD_NUM9
^~~~~~~~~~~~~~
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c:164:12: note: in expansion of macro 'BUTTON_SET_ID'
return BUTTON_SET_ID;
^~~~~~~~~~~~~
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c: In function 'get_input_play_id':
/home/ESP32/esp-adf/components/audio_board/lyrat_v4_3/board_def.h:34:35: error: 'TOUCH_PAD_NUM8' undeclared (first use in this function)
#define BUTTON_PLAY_ID TOUCH_PAD_NUM8
^~~~~~~~~~~~~~
在你的板子对应的board_def.h文件里添加触摸按键的头文件#include "driver/touch_pad.h"

Who is online

Users browsing this forum: No registered users and 82 guests