Error in C++ SDK installation Aarch64

Hi,

I’m using Edge Impulse to do an keyword spoting project. I deployed my C++ library and I followed your installation guide but when I run the command line APP_AUDIO=1 TARGET_LINUX_AARCH64=1 USE_FULL_TFLITE=1 CC=clang CXX=clang++ make -j, I have this error that appears.

source/audio.cpp:238:44: error: use of undeclared identifier ‘classifier_maf’
run_moving_average_filter(&classifier_maf[ix], result.classification[ix].value);
^
source/audio.cpp:291:38: error: use of undeclared identifier ‘classifier_maf’
clear_moving_average_filter(&classifier_maf[ix]);
^
2 errors generated.
Makefile:137: recipe for target ‘source/audio.o’ failed
make: *** [source/audio.o] Error 1

And ‘APP_AUDIO=1 make -j’ is also the same problem:

source/audio.cpp: In function ‘void classify_current_buffer()’:
source/audio.cpp:238:44: error: ‘classifier_maf’ was not declared in this scope
run_moving_average_filter(&classifier_maf[ix], result.classification[ix].value);
^~~~~~~~~~~~~~
source/audio.cpp:238:44: note: suggested alternative: ‘classifier_buffer’
run_moving_average_filter(&classifier_maf[ix], result.classification[ix].value);
^~~~~~~~~~~~~~
classifier_buffer
source/audio.cpp:238:17: error: ‘run_moving_average_filter’ was not declared in this scope
run_moving_average_filter(&classifier_maf[ix], result.classification[ix].value);
^~~~~~~~~~~~~~~~~~~~~~~~~
source/audio.cpp: In function ‘int main(int, char**)’:
source/audio.cpp:291:38: error: ‘classifier_maf’ was not declared in this scope
clear_moving_average_filter(&classifier_maf[ix]);
^~~~~~~~~~~~~~
source/audio.cpp:291:38: note: suggested alternative: ‘classifier_buffer’
clear_moving_average_filter(&classifier_maf[ix]);
^~~~~~~~~~~~~~
classifier_buffer
source/audio.cpp:291:9: error: ‘clear_moving_average_filter’ was not declared in this scope
clear_moving_average_filter(&classifier_maf[ix]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-asm-operand-widths’
Makefile:122: recipe for target ‘source/audio.o’ failed
make: *** [source/audio.o] Error 1
make: *** Waiting for unfinished jobs…

Thanks!

Hello @y1165949971,

Sorry for my late reply, I was traveling for work and struggled to catch up with the forum.

@rjames just told me this should be fixed with his latest commits on this repo: GitHub - edgeimpulse/example-standalone-inferencing-linux: Builds and runs an exported impulse locally (Linux)

Best,

Louis

Hi louis,
Thanks for reply. I have solved the problem with the help of rjames !

Hi louis,
Here are the new errors Error in Aarch64 deployment. Please help me. Thanks !

@y1165949971

This was resolved for you here. Would you be so kind to close this one. Thanks.