Running EI C++ Library on Flutter
I have a simple Flutter FFI example app executing functions in a CPP file.
Then I add the EI stuff to see if Flutter will compile in the EI C++ code:
In the CPP file I add:
#include "edge-impulse-sdk\classifier\ei_run_classifier.h"
In the CMakeList.txt
file I add:
include_directories(../../include)
include(../../include/edge-impulse-sdk/cmake/utils.cmake)
The include folder is the EI C++ code that looks like:
# |--include
# |-- edge-impulse-sdk
# |-- model-parameters
# |-- tflite-model
# CMakeLists.txt
# README.txt
The error I get is:
error: no member named 'post_process_boxes' in namespace 'tflite'
Of course tflite_detection_postprocess.cc
does indeed define
namespace tflite {
float post_process_boxes[100 * 4 * sizeof(float)];
…}
So the compiler is finding the EI C++ code but can’t compile it.
Is there something I can add to CMakeLists.txt
to get this to compile?