ESP-IDF Cmake error: Please create a target named 'app'

I have a ESP-IDF project, so I want to integrate the C++ library.
I have unzip the library to the managed_componenets folder, and add it to idf_component.yml and it detect the dependency correctly.
But when the porject is built I get that error. I added to the root CMakeLists file this lines:
add_executable(app “lcd_camera_main.c”)

target_link_libraries(app PRIVATE edge-impulse)

But it doesn’t work.

I am using Ubuntu, Eclipse IDE with espressif plugin and a ESP32S3.

I add this line to the CMakeLists file of the edge-impulse library.
SRCS “lcd_camera_main.c”

And the previous and know I get:

CMake Error at managed_components/edge-impulse/edge-impulse-sdk/cmake/zephyr/CMakeLists.txt:14 (target_include_directories):
target_include_directories called with non-compilable target type

CMake Error at managed_components/edge-impulse/CMakeLists.txt:17 (target_include_directories):
target_include_directories called with non-compilable target type

Hi @msalexms,

Could you try getting static inference working with your model using this example ESP-IDF project? GitHub - edgeimpulse/example-standalone-inferencing-espressif-esp32: Builds and runs an exported impulse locally (ESP IDF)

Hi @shawn_edgeimpulse thank you for your answer.

I tried that and know I have 2 compilations errors.
1- I have replace this include with float.h, but now I get the same but with in the memory.hpp file

/home/ams/eclipse-workspace/Prueba/edge-impulse-sdk/dsp/numpy.hpp:32:10: fatal error: cfloat: No such file or directory
32 | #include

2- Here I just replaced the macro with portTICK_PERIOD_MS and it the error dissapear.

/home/ams/eclipse-workspace/Prueba/edge-impulse-sdk/porting/espressif/ei_classifier_porting.cpp:39:26: error: ‘portTICK_RATE_MS’ was not declared in this scope; did you mean ‘portTICK_PERIOD_MS’?
39 | vTaskDelay(time_ms / portTICK_RATE_MS);

Thank you!

  1. We have not tested using Eclipse IDE for ESP32 projects. The first error you see is likely related to your toolchain. Unfortunately it is very difficult to understand what is going wrong without reproducing your setup.
  2. Second error hints that you might be using ESP IDF version that is different from the one we support (ESP IDF v4.4).
    In essence, my suggestion would be ditch Eclipse IDE and follow the steps for installing native ESP IDF unless there is a very strong reason for using Eclipse.

Hi, I will try with ESP IDF v4.4.


δο you have checked the CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY=y in sdkconfig?

If you do, or don’t, get it to flash successfully, could you please share what version of Ubuntu you use.

I’m using:
|Description:|Ubuntu 22.04.3 LTS|