esp-adf example compile error

PatrickStar
Posts: 1
Joined: Sat May 18, 2019 12:43 pm

esp-adf example compile error

Postby PatrickStar » Sat May 18, 2019 1:03 pm

hello,

i used msys2 to compile example in windows but it report errors.
i tried play_mp3 and dueros, they give me the same errors.

Code: Select all

In file included from D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:3:0:
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_set_id':
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:16:35: error: 'TOUCH_PAD_NUM9' undeclared (first use in this function)
 #define BUTTON_SET_ID             TOUCH_PAD_NUM9
                                   ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:100:12: note: in expansion of macro 'BUTTON_SET_ID'
     return BUTTON_SET_ID;
            ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:16:35: note: each undeclared identifier is reported only once for each function it appears in
 #define BUTTON_SET_ID             TOUCH_PAD_NUM9
                                   ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:100:12: note: in expansion of macro 'BUTTON_SET_ID'
     return BUTTON_SET_ID;
            ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_play_id':
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:17:35: error: 'TOUCH_PAD_NUM8' undeclared (first use in this function)
 #define BUTTON_PLAY_ID            TOUCH_PAD_NUM8
                                   ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:105:12: note: in expansion of macro 'BUTTON_PLAY_ID'
     return BUTTON_PLAY_ID;
            ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_volup_id':
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:18:35: error: 'TOUCH_PAD_NUM7' undeclared (first use in this function)
 #define BUTTON_VOLUP_ID           TOUCH_PAD_NUM7
                                   ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:110:12: note: in expansion of macro 'BUTTON_VOLUP_ID'
     return BUTTON_VOLUP_ID;
            ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_voldown_id':
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:19:35: error: 'TOUCH_PAD_NUM4' undeclared (first use in this function)
 #define BUTTON_VOLDOWN_ID         TOUCH_PAD_NUM4
                                   ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:115:12: note: in expansion of macro 'BUTTON_VOLDOWN_ID'
     return BUTTON_VOLDOWN_ID;
            ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_set_id':
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:101:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_play_id':
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:106:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_volup_id':
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:111:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_voldown_id':
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:116:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
D:/msys32/home/tf/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: At top level:
cc1.exe: warning: unrecognized command line option '-Wno-frame-address'
cc1.exe: some warnings being treated as errors
make[1]: *** [/home/tf/esp/esp-idf/make/component_wrapper.mk:290:board/lyrat_v4_3/board_pins_config.o] 错误 1
make: *** [D:/msys32/home/tf/esp/esp-idf/make/project.mk:582:component-audio_hal-build] 错误 2

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

Re: esp-adf example compile error

Postby Yuvaraj1867 » Mon Jun 10, 2019 7:18 am

Hi

You are using the wrong environmental variable for the esp idf directory.
You have to export two paths

One is ADF path ............ export ADF_PATH=C:/esp32/esp-adf-sdk

Second one is IDF path comes with esp-adf framework ........... export IDF_PATH=C:/esp32/esp-adf-sdk/esp-idf

Patsjemoe
Posts: 40
Joined: Wed Jul 17, 2019 11:22 am

Re: esp-adf example compile error

Postby Patsjemoe » Fri Aug 16, 2019 3:46 pm

hi,
do you mean that when installing ESP-ADF , you need to use 2 paths ? :
adf_path=/esp/esp-adf
idf_path=/esp/esp-adf/esp-idf
instead of the idf_path=/esp/esp-idf ?
regards
Ludo

Who is online

Users browsing this forum: No registered users and 40 guests