…/Src/main.cpp:65:1: error: ‘signal1’ does not name a type
65 | signal1.total_length = sizeof(features) / sizeof(features[0]);
| ^~~~~~~
…/Src/main.cpp:66:1: error: ‘signal1’ does not name a type
66 | signal1.get_data = &get_feature_data;
| ^~~~~~~
make: *** [Src/subdir.mk:51: Src/main.o] Error 1
“make -j12 all” terminated with exit code 2. Build might be incomplete.
When I move this code into main(), this error does not exist.
In file included from …/Src/main.cpp:30:
…/Src/…/Middlewares/Third_Party/EdgeImpulse_powerstrip_MachineLearning/edgeimpulse/edge-impulse-sdk/classifier/ei_run_classifier.h:26:10: fatal error: model-parameters/model_metadata.h: No such file or directory
26 | #include “model-parameters/model_metadata.h”
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
…/Middlewares/Third_Party/EdgeImpulse_powerstrip_MachineLearning/edgeimpulse/edge-impulse-sdk/tensorflow/lite/micro/memory_planner/greedy_memory_planner.cc:16:10: fatal error: edge-impulse-sdk/tensorflow/lite/micro/memory_planner/greedy_memory_planner.h: No such file or directory
16 | #include “edge-impulse-sdk/tensorflow/lite/micro/memory_planner/greedy_memory_planner.h”
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
…/Middlewares/Third_Party/EdgeImpulse_powerstrip_MachineLearning/edgeimpulse/tflite-model/trained_model_compiled.cpp:26:10: fatal error: edge-impulse-sdk/tensorflow/lite/c/builtin_op_data.h: No such file or directory
26 | #include “edge-impulse-sdk/tensorflow/lite/c/builtin_op_data.h”
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Middlewares/Third_Party/EdgeImpulse_powerstrip_MachineLearning/edgeimpulse/edge-impulse-sdk/tensorflow/lite/micro/memory_planner/subdir.mk:22: Middlewares/Third_Party/EdgeImpulse_powerstrip_MachineLearning/edgeimpulse/edge-impulse-sdk/tensorflow/lite/micro/memory_planner/greedy_memory_planner.o] Error 1
make: *** Waiting for unfinished jobs…
make: *** [Middlewares/Third_Party/EdgeImpulse_powerstrip_MachineLearning/edgeimpulse/tflite-model/subdir.mk:19: Middlewares/Third_Party/EdgeImpulse_powerstrip_MachineLearning/edgeimpulse/tflite-model/trained_model_compiled.o] Error 1
make: *** [Src/subdir.mk:56: Src/main.o] Error 1
“make -j12 all” terminated with exit code 2. Build might be incomplete.
hello, did you do include? if not then do as described in the article
Build C++ Library with STM32CubeIDE
@norik.badalyan Thanks for your help. Moreover, I am ok only by add the following setting.
“${workspace_loc:/${ProjName}/Middlewares/Third_Party/EdgeImpulse_powerstrip_MachineLearning/edgeimpulse}”