idf-eclipse-plugin icon indicating copy to clipboard operation
idf-eclipse-plugin copied to clipboard

Esp idf issue Importing an existing projects other than examples in eclipse (IEP-427)

Open naveedabbasi opened this issue 3 years ago • 6 comments

I am facing an issue while Importing an existing project other than examples in eclipse Esp idf 2.6 and also in eclipse Esp idf 2.8. both versions run examples and build with no errors, but whenever I add new > header and C files in the existing example project it is unable to add and find header and C files in the project, I also put these files in the main folder too. after searching on forums : I also tried to add these files CMakeLists.txt but the problem not solved.

2nd: whenever I existing project other than examples , all files [.C files and .H files ] are added but this time eclipse will unable to add these fils in the project , #include <stdio.h> #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_spi_flash.h"

and also

c:/users/fuuast/.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/esp32/libesp32.a(cpu_start.c.obj):(.literal.main_task+0x18): undefined reference to app_main' c:/users/fuuast/.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/esp32/libesp32.a(cpu_start.c.obj): in function main_task': C:/Users/FUUAST/Desktop/esp-idf/components/esp32/cpu_start.c:592: undefined reference to `app_main'

is any way I can import my existing projects without facing the problems. I only want to use eclipse right now.

naveedabbasi avatar May 12 '21 22:05 naveedabbasi