espressif / esp-va-sdk

Espressif's Voice Assistant SDK: Alexa, Google Voice Assistant, Google DialogFlow
Other
283 stars 82 forks source link

Can't find include file in idf.py flash monitor step #145

Open HowardHonig opened 2 years ago

HowardHonig commented 2 years ago

Trying to run the idf.py flash monitor step and keep getting the following error: (using Win 10, power shell and cmd shell)

All the defined paths are correct, for example, export AWS_IOT_PATH=

So what's wrong with this thing now?

Tried PowerShell then switched to CMD shell. Getting all sorts of undefined reference: here is the output

-----------> cmd.exe /C "cd . && C:\Users\howar.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\aia.elf.rsp -o aia.elf && cd ." c:/users/howar/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/common/libcommon.a(app_wifi.c.obj): in function set_xpd_sar': C:/Users/howar/Documents/Alexa/iot/exp-vaquita/esp-va-sdk/examples/common/app_wifi.c:185: multiple definition ofset_xpd_sar'; esp-idf/esp_wifi/libesp_wifi.a(wifi_init.c.obj):C:/Users/howar/Desktop/esp-idf/components/esp_wifi/src/wifi_init.c:319: first defined here c:/users/howar/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/misc/libmisc.a(va_diag_cli.c.obj):(.literal.va_diag_register_cli+0x8): undefined reference to diag_register_cli' c:/users/howar/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/misc/libmisc.a(va_diag_cli.c.obj): in functionva_diag_register_cli': C:/Users/howar/Documents/Alexa/iot/exp-vaquita/esp-va-sdk/components/misc/va_diag_cli.c:104: undefined reference to diag_register_cli' c:/users/howar/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/audio_board_dspg_avs_kit_m/libaudio_board_dspg_avs_kit_m.a(va_board.c.obj):(.literal.va_board_init+0x24): undefined reference tomedia_hal_init_playback' c:/users/howar/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/audio_board_dspg_avs_kit_m/libaudio_board_dspg_avs_kit_m.a(va_board.c.obj):(.literal.va_board_init+0x30): undefined reference to led_pattern_init' c:/users/howar/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/audio_board_dspg_avs_kit_m/libaudio_board_dspg_avs_kit_m.a(va_board.c.obj):(.literal.va_board_init+0x34): undefined reference tova_led_init' c:/users/howar/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/audio_board_dspg_avs_kit_m/libaudio_board_dspg_avs_kit_m.a(va_board.c.obj): in function va_board_init': C:/Users/howar/Documents/Alexa/iot/exp-vaquita/esp-va-sdk/components/audio_hal/audio_board/audio_board_vaquita_dspg/audio_board_dspg_avs_kit_m/va_board.c:105: undefined reference tomedia_hal_init_playback'

vikramdattu commented 2 years ago

For set_xpd_sar error you should remove that empty function from app_wifi.c.

For other errors, can you please mention the paths set here? (AUDIO_BOARD_PATH etc)? The issue I believe is due to the difference in paths in Windows vs Linux. (Windows goes as \path\to\dir vs linux /path/to/dir). Try with linux style path and check?