Ai-Thinker-Open / ESP32-A1S-AudioKit

Ai-Thinker AudioKit Board SDK - 安信可 esp32-a1s 音频模组开发板
Other
132 stars 63 forks source link

examples/player/pipeline_sdcard_mp3_control does not compile #9

Open msalat opened 3 years ago

msalat commented 3 years ago
xy@z:~/esp32-a1s-board/ESP32-A1S-AudioKit/examples/player/pipeline_sdcard_mp3_control$ idf.py build
Checking Python dependencies...
Python requirements from /home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/esp-idf/requirements.txt are satisfied.
Running make in directory /home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/examples/player/pipeline_sdcard_mp3_control/build
Executing "make -j 6 all"...
[  0%] Built target idf_component_heap
[  0%] Built target idf_component_xtensa-debug-module
[  1%] Built target idf_component_log
[  2%] Built target dummy_main_src
[  2%] Building C object esp-idf/main/CMakeFiles/idf_component_main.dir/play_sdcard_mp3_control_example.c.obj
[  4%] Built target idf_component_soc
Scanning dependencies of target idf_component_vfs
Scanning dependencies of target idf_component_newlib
Scanning dependencies of target idf_component_freertos
Scanning dependencies of target idf_component_esp_ringbuf
[  5%] Built target idf_component_app_trace
Scanning dependencies of target idf_component_driver
[  5%] Building C object esp-idf/vfs/CMakeFiles/idf_component_vfs.dir/vfs.c.obj
[  5%] Building C object esp-idf/newlib/CMakeFiles/idf_component_newlib.dir/locks.c.obj
[  5%] Building C object esp-idf/esp_ringbuf/CMakeFiles/idf_component_esp_ringbuf.dir/ringbuf.c.obj
/home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c: In function 'app_main':
/home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c:144:49: error: implicit declaration of function 'INPUT_KEY_DEFAULT_INFO' [-Werror=implicit-function-declaration]
     input_key_service_info_t input_key_info[] = INPUT_KEY_DEFAULT_INFO();
                                                 ^
/home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c:144:49: error: invalid initializer
/home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c:148:58: error: 'INPUT_KEY_NUM' undeclared (first use in this function)
     input_key_service_add_key(input_ser, input_key_info, INPUT_KEY_NUM);
                                                          ^
/home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c:148:58: note: each undeclared identifier is reported only once for each function it appears in
/home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c:148:58: warning: passing argument 3 of 'input_key_service_add_key' makes integer from pointer without a cast [-Wint-conversion]
In file included from /home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/examples/player/pipeline_sdcard_mp3_control/main/play_sdcard_mp3_control_example.c:29:0:
/home/jb/esp32-a1s-board/ESP32-A1S-AudioKit/components/input_key_service/include/input_key_service.h:109:11: note: expected 'int' but argument is of type 'input_key_service_info_t * {aka struct <anonymous> *}'
 esp_err_t input_key_service_add_key(periph_service_handle_t input_key_handle, i
           ^
[  5%] Building C object esp-idf/freertos/CMakeFiles/idf_component_freertos.dir/FreeRTOS-openocd.c.obj
cc1: some warnings being treated as errors
...
zhangtemplar commented 2 years ago

Check my code in https://github.com/zhangtemplar/esp-adf Everything is working, except only two keys are working.