/Users/Alan/work/VideoAudio/FaceDetect/MNN-master/3rd_party/flatbuffers/src/idl_gen_cpp.cpp:77:3: error: constructor for ‘flatbuffers::cpp::CppGenerator’ must explicitly
initialize the const member ‘float_const_gen_’
CppGenerator(const Parser &parser, const std::string &path,
^
/Users/Alan/work/VideoAudio/FaceDetect/MNN-master/3rd_party/flatbuffers/src/idl_gen_cpp.cpp:2788:35: note: ‘float_const_gen_’ declared here
const CppFloatConstantGenerator float_const_gen_;
^
1 error generated.
make[3]: *** [CMakeFiles/flatc.dir/src/idl_gen_cpp.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs…
make[2]: *** [CMakeFiles/flatc.dir/all] Error 2
make[1]: *** [CMakeFiles/flatc.dir/rule] Error 2
make: *** [flatc] Error 2
xargs: …/…/3rd_party/flatbuffers/tmp/flatc: No such file or directory
./generate_schema.sh: line 39: …/…/3rd_party/flatbuffers/tmp/flatc: No such file or directory
===> Done!
在使用 MNN 移动端深度神经网络推理引擎时,按文档编译,出现以上错误。参考
将 MNN/3rd_party/flatbuffers 换成最新的即可 下载地址