0.成果物
本文经过亲测实践给出了详细步骤和弊坑指南
直接获取成果物见:https://download.youkuaiyun.com/download/u012824853/87867665
以下为编译、运行过程
1.编译准备
在GitHub - alibaba/MNN: MNN is a blazing fast, lightweight deep learning framework, battle-tested by business-critical use cases in Alibaba下载code->downloadZIP
unzip MNN-master.zip
cd MNN-master
vim CMakeLists.txt
将其中的MNN_BUILD_DEMO的option改为ON
2.生成Makefile
查看arm的架构,如armv7、v8等,赋值给CMAKE_SYSTEM_PROCESSOR
确定编译结果保存文件的路径赋值给CMAKE_INSTALL_PREFIX
确定编译工具链的位置,赋值给CMAKE_C_COMPILER、CMAKE_CXX_COMPILER
whereis arm-linux-gnueabihf-gcc
arm-linux-gnueabihf-gcc: /root/arm-linux-compiler/gcc-linaro-12.2.1-2023.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
whereis arm-linux-gnueabihf-g++
arm-linux-gnueabihf-g++: /root/arm-linux-compil