官方教程避坑:编译ARM NN/Tensorflow Lite

官方教程:https://developer.arm.com/solutions/machine-learning-on-arm/developer-material/how-to-guides/configuring-the-arm-nn-sdk-build-environment-for-tensorflow-lite(摘取日期是2019-3-30)

深坑:官方教程在说明编译boost/protobuf/flatbuffers时根本没提及到交叉编译的事,可参考https://blog.csdn.net/liugan528/article/details/80272763,但对于protobuf和flatbuffers须分别编译host和target两个平台的库以供使用。

参考BuildGuideCrossCompilation.md可知交叉编译时对于protobuf可分别指定PROTOBUF_ROOT和PROTOBUF_LIBRARY_RELEASE,对于flatbuffers可分别指定FLATBUFFERS_ROOT、FLATBUFFERS_LIBRARY以及FLATC_DIR。