mocleiri / tensorflow-micropython-examples

A custom micropython firmware integrating tensorflow lite for microcontrollers and ulab to implement the tensorflow micro examples.
MIT License
170 stars 79 forks source link

unix: Fix build when using tflm in microlite #39

Closed mocleiri closed 2 years ago

mocleiri commented 2 years ago

Find a way to detect if we are in the stm32 build or the unix port build:

./../../micropython-modules/microlite/openmv-libtf.h:18:10: fatal error: tensorflow/lite/c/common.h: No such file or directory
 #include "tensorflow/lite/c/common.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
../../../micropython-modules/microlite/bare-metal-gc-heap.c:5:10: fatal error: sys/reent.h: No such file or directory
 #include <sys/reent.h>
          ^~~~~~~~~~~~~
compilation terminated.

The unix port is failing because its using gnu make which was modified for stm32.

mocleiri commented 2 years ago

I confirmed from the latest build that the unix port can be downloaded and runs ok. I will merge the feature branch back to main soon.