C++ library example on ESP32 fails to compile

Question/Issue:
The example on C++ inference for ESP32 provided in the documentation does not work

Project ID:
533840

Context/Use case:
Running an example to test a model in ESP32 using a C++ library

Summary:
The compilation fails with the following error:

/var/folders/5j/sw69jdcj6_z2f3018pym4_pc0000gn/T//ccDQiCqr.s: Assembler messages:
/var/folders/5j/sw69jdcj6_z2f3018pym4_pc0000gn/T//ccDQiCqr.s:11: Error: file not found: tflite-model/tflite_learn_22.tflite

Steps to Reproduce:

  1. Followed the instructions on On your Espressif ESP-EYE (ESP32) development board | Edge Impulse Documentation
  2. Paste example features from live classification on Edge Impulse
  3. Build

Expected Results:
The project compiles and runs

Actual Results:
Compilation error

Reproducibility:

  • [X] Always
  • [ ] Sometimes
  • [ ] Rarely

Environment:

  • Platform: ESP32
  • Build Environment Details: ESP-IDF v5.5
  • OS Version: Mac OS 14

Hi, @lbedogni !
Sounds like some cached files from the last build? It might happen if you first compile one project, then delete the model, paste another one and don’t run clean build.
Try
idf.py fullclean

Hi @AIWintermuteAI , I already tried but I end up having the same error

I don’t know what happened, but I performed fullclean and build several times and suddenly it started working.