cpetig / tflite_micro_compiler

generate tflite micro code which bypasses the interpreter (directly calls into kernels)
Apache License 2.0
76 stars 26 forks source link

[BUG] Build fails #67

Closed jefffhaynes closed 1 year ago

jefffhaynes commented 2 years ago

I think I'm following the build instructions but to no avail...

cmake.exe -DGET_TF_SRC=ON TF_TAG=v2.3.0 .. make

results in many errors, starting with:

In file included from /cygdrive/c/Users/Jeff/Source/Repos/tflite_micro_compiler/build/_deps/tf-src/tensorflow/lite/core/api/flatbuffer_conversions.h:28, from /cygdrive/c/Users/Jeff/Source/Repos/tflite_micro_compiler/build/_deps/tf-src/tensorflow/lite/core/api/flatbuffer_conversions.cc:16: /cygdrive/c/Users/Jeff/Source/Repos/tflite_micro_compiler/build/_deps/tf-src/tensorflow/lite/schema/schema_generated.h: In member function ‘bool tflite::QuantizationParameters::Verify(flatbuffers::Verifier&) const’: /cygdrive/c/Users/Jeff/Source/Repos/tflite_micro_compiler/build/_deps/tf-src/tensorflow/lite/schema/schema_generated.h:3406:32: error: no matching function for call to ‘tflite::QuantizationParameters::VerifyField(flatbuffers::Verifier&, tflite::QuantizationParameters::FlatBuffersVTableOffset) const’ 3406 | VerifyField(verifier, VT_DETAILS_TYPE) && | ~~~~^~~~~~~

Sorry if I'm missing something obvious.

jefffhaynes commented 2 years ago

Turns out the actual issue is that the README tends to omit the -D from arguments ;)

rafzi commented 1 year ago

Thank you!