Solve IsOutRange is not a member of flatbuffers in nmn compilation in MNN

Solve IsOutRange is not a member of flatbuffers in nmn compilation in MNN

Refer to the method in https://blog.csdn.net/ouyangfushu/article/details/96476245 to run the generate.ps1 file, which will automatically generate a series of third-party files that MNN depends on. However, after downloading the flatc.exe file using the method linked above and placing it in / 3rd_party / flatbuffers / tmp, the IsOutRange is not a member of flatbuffers error occurs when the MNN executes nmake compilation.

Check that the current 3rd_party \ flatbuffers \ include \ flatbuffers \ flatbuffers.h does not have the IsOutRange function, so you can basically determine that the flatbuffers generated by flatc.exe are incomplete or the wrong version.

Solution: download the source code of flatbuffers at https://github.com/google/flatbuffers/releases and unzip it to MNN-master \ 3rd_party \ flatbuffers to overwrite the previously generated files, and finally re-execute nmake, the compilation is successful.

 

Published 6 original articles · praised 0 · visits 183

Guess you like

Origin blog.csdn.net/qq_33301684/article/details/105495162