Open mmt-10 opened 5 years ago
I made CMakeLists.txt as below and save it to root directory on amazon_alexa sample project.
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(alexa)
However, I got below error.
[1067/1068] Linking CXX executable alexa.elf FAILED: alexa.elf cmd.exe /C "cd . && C:\ESP-IDF_toolchain.espressif\tools\xtensa-esp32-elf\esp32 -2019r1-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-fr ame-address -nostdlib @CMakeFiles\alexa.elf.rsp -o alexa.elf && cd ." c:/esp-idf_toolchain/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa -esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bi n/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj):(.literal.main_task+0x18): u ndefined reference to
app_main' c:/esp-idf_toolchain/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa -esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bi n/ld.exe: esp-idf/esp32/libesp32.a(cpu_start.c.obj): in function
main_task': C:/ESP-IDF_toolchain/esp-idf/components/esp32/cpu_start.c:535: undefined referen ce to `app_main' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1C:\ESP-IDF_toolchain\esp-va-sdk\examples\amazon_alexa>
Hi @tatsutaigu CMake is not yet supported in Alexa. You can use the build instructions as documented in this https://github.com/espressif/esp-va-sdk/blob/master/README-Getting-Started.md file.
We will update this issue once CMake support is added to this repository.
Hi, have you CMake ready ? I would like to use with ECLIPSE! Thanks!
hii, i got a same issue,i downloaded this code for PPPOS from git https://github.com/loboris/ESP32-PPPOS-EXAMPLE.git but first i get error cannot find CMakeList.txt...after that i add cmake file but after that also i get below error ..i am using esp32...anyone know how to resolve this issue ...than please let me know.. C:/Users/Frank/Desktop/esp-idf/examples/piyush/ESP32-PPPOS-EXAMPLE/build/bootloader/bootloader.bin [933/935] Linking CXX executable ESP32-PPPOS-EXAMPLE.elf FAILED: ESP32-PPPOS-EXAMPLE.elf Thanks.
Hi,
I'm using below latest toolchain esp-idf-tools-setup-2.0.exe. When type and execute
idf.py build
, toolchain displayed error. How do I resolve it?https://docs.espressif.com/projects/esp-idf/en/latest/get-started/windows-setup.html
My command sequence is here. (I make a mistake, I modified below command sequence)