Can I have the full tutorial for deploying to C library?

@uveuvenouve

Which terminal are you using? What’s the value of PATH?
Can you add @echo %PATH% in the makefile and return the value of PATH.

Otherwise can you try using git bash instead?

See also tkennon response in the same stack overflow link i previously shared, regarding make. Check with Make you are using, GNU Make vs mingw32-make.

sorry for long time not replying
too frustrated for no being able to compile the “.so” out

i have tested only adding those c++ folder in stm32 board and succeed to run my inference example
but i need to select compile with c++ at the beginning of starting a stm32 project

but for the sonix project, that is base on C
and seems impossible to change the whole project to C++ based
and i think i need to figure out how to compile a “.so” out to make this work

So continue on the make problem
i downloaded mingw64 and MinGW
only the mingw64 can use mingw32-make command
but both of them have errors on compiling

C:\Users\Wing\Desktop\example-standalone-inferencing-with-library-master\C\static>mingw32-make
cc -Wall -g -Wno-strict-aliasing -DEIDSP_SIGNAL_C_FN_POINTER=1 -DEI_C_LINKAGE=1 -I. -Os -DNDEBUG -g -c edge-impulse-sdk/tensorflow/lite/c/common.c -o edge-impulse-sdk/tensorflow/lite/c/common.o
process_begin: CreateProcess(NULL, cc -Wall -g -Wno-strict-aliasing -DEIDSP_SIGNAL_C_FN_POINTER=1 -DEI_C_LINKAGE=1 -I. -Os -DNDEBUG -g -c edge-impulse-sdk/tensorflow/lite/c/common.c -o edge-impulse-sdk/tensorflow/lite/c/common.o, …) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [Makefile:57: edge-impulse-sdk/tensorflow/lite/c/common.o] Error 2

btw i still can’t figure out what cflag do i need to add
i just added LDFLAGS += -mcpu=cortex-m4
and changed the porting as the following
CXXSOURCES += $(wildcard edge-impulse-sdk/porting/mingw32/.c) $(wildcard edge-impulse-sdk/porting/mbed/.c)
is that correct?

I can build a .a file with the origin code in make file now
but when i add these line

CC=armclang
CXX=armclang
AR=armar
it shows error
rary/C/static$ ./build.sh
Building standalone classifier
Running MAKE in single-threaded mode
armclang -m32 -Wall -g -Wno-strict-aliasing -DEIDSP_SIGNAL_C_FN_POINTER=1 -DEI_C_LINKAGE=1 -I. -Os -DNDEBUG -g -march=armv7-m -mtune=cortex-m3 -c edge-impulse-sdk/tensorflow/lite/c/common.c -o edge-impulse-sdk/tensorflow/lite/c/common.o
make: armclang: Command not found
Makefile:64: recipe for target ‘edge-impulse-sdk/tensorflow/lite/c/common.o’ failed
make: *** [edge-impulse-sdk/tensorflow/lite/c/common.o] Error 127

search for solution on web
seems is missing compiler problem
trying to fix

i missed the very early reply issue
i need to compile with the same compiler as the project…
and now i got a bat file from the project
it is way different than makefile
do you have any suggestion?

chatgpt seems making it with different compiler other than armcc