espressif / esp-va-sdk

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

Issue to compile for ESP32-LyraTD-DSPG ?? #79

Open vincegre opened 4 years ago

vincegre commented 4 years ago

Hi,

I try to compile the Alexa sample code for my board but I have issues to build it. I followed instructions as stated here to build the sample and installing also ESP SDK but when I try to compile I get these errors:

make -j 8 flash monitor [ALEXA_BT=1]
Toolchain path: /home/vincen/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: esp-2019r2
Compiler version: 8.2.0
Python requirements from /home/vincen/esp/esp-idf/requirements.txt are satisfied.
Building partitions from /home/vincen/esp/esp-va-sdk/examples/amazon_alexa/partitions.csv...
App "alexa" version: 1.2
CC build/esp_local_ctrl/src/esp_local_ctrl_transport_ble.o
CC build/esp_serial_slave_link/essl_sdio.o
CC build/esp_websocket_client/esp_websocket_client.o
CC build/esp_serial_slave_link/essl.o
CC build/esp_wifi/src/lib_printf.o
CC build/espcoredump/src/core_dump_port.o
/home/vincen/esp/esp-idf/components/esp_local_ctrl/src/esp_local_ctrl_transport_ble.c: In function 'start_ble_transport':
/home/vincen/esp/esp-idf/components/esp_local_ctrl/src/esp_local_ctrl_transport_ble.c:35:42: warning: passing argument 2 of 'protocomm_ble_start' from incompatible pointer type [-Wincompatible-pointer-types]
     return protocomm_ble_start(pc, config->ble);
                                    ~~~~~~^~~~~
In file included from /home/vincen/esp/esp-idf/components/esp_local_ctrl/src/esp_local_ctrl_transport_ble.c:20:
/home/vincen/esp/esp-va-sdk/components/protocomm/include/transports/protocomm_ble.h:90:78: note: expected 'const protocomm_ble_config_t *' {aka 'const struct <anonymous> *'} but argument is of type 'esp_local_ctrl_transport_config_ble_t * const' {aka 'struct protocomm_ble_config * const'}
 esp_err_t protocomm_ble_start(protocomm_t *pc, const protocomm_ble_config_t *config);
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/home/vincen/esp/esp-idf/components/esp_local_ctrl/src/esp_local_ctrl_transport_ble.c: In function 'copy_ble_config':
/home/vincen/esp/esp-idf/components/esp_local_ctrl/src/esp_local_ctrl_transport_ble.c:57:28: error: dereferencing pointer to incomplete type 'esp_local_ctrl_transport_config_ble_t' {aka 'struct protocomm_ble_config'}
     memcpy(dest_config->ble->device_name,
                            ^~
/home/vincen/esp/esp-idf/components/esp_local_ctrl/src/esp_local_ctrl_transport_ble.c:58:27: error: dereferencing pointer to incomplete type 'esp_local_ctrl_transport_config_ble_t' {aka 'struct protocomm_ble_config'}
            src_config->ble->device_name,
                           ^~
/home/vincen/esp/esp-idf/make/component_wrapper.mk:291: recipe for target 'src/esp_local_ctrl_transport_ble.o' failed
make[1]: *** [src/esp_local_ctrl_transport_ble.o] Error 1
/home/vincen/esp/esp-idf/make/project.mk:604: recipe for target 'component-esp_local_ctrl-build' failed
make: *** [component-esp_local_ctrl-build] Error 2
make: *** Attente des tâches non terminées....
CC build/expat/expat/expat/lib/xmltok.o
CC build/espcoredump/src/core_dump_flash.o
CC build/expat/expat/expat/lib/xmlparse.o
CC build/esp_wifi/src/smartconfig.o
CC build/espcoredump/src/core_dump_common.o
CC build/expat/expat/expat/lib/xmlrole.o
/home/vincen/esp/esp-idf/make/project.mk:640: avertissement : variable « IDF_SKIP_CHECK_SUBMODULES » indéfinie
CC build/esp_wifi/src/wifi_default.o
AR build/esp_serial_slave_link/libesp_serial_slave_link.a
CC build/esp_wifi/src/phy_init.o
CC build/espcoredump/src/core_dump_uart.o
CC build/espcoredump/src/core_dump_elf.o
CC build/esp_wifi/src/mesh_event.o
CC build/esp_wifi/src/smartconfig_ack.o
CC build/expat/expat/expat/lib/xmltok_ns.o
AR build/esp_websocket_client/libesp_websocket_client.a
AR build/espcoredump/libespcoredump.a
CC build/esp_wifi/src/coexist.o
CC build/expat/expat/expat/lib/xmltok_impl.o
CC build/esp_wifi/src/wifi_netif.o
CC build/esp_wifi/src/wifi_init.o
AR build/esp_wifi/libesp_wifi.a
AR build/expat/libexpat.a
vincen@Pingouin-de-Vincen:~/esp/esp-va-sdk/examples/amazon_alexa$

Any ideas what's wrong there ?

Thanks for clarifications ;)

avsheth commented 4 years ago

Hi @vincegre Did you try applying additional patches on IDF as mentioned here ? Thanks