参考:
编译转换工具:
https://blog.csdn.net/jacke121/article/details/106407234
解决flatc.exe 找不到的问题 nmake
https://blog.csdn.net/ouyangfushu/article/details/96476245
这个靠谱点
https://uzshare.com/view/810473
vs2017编译 cmake
https://blog.csdn.net/qq_36810544/article/details/105856975
https://blog.csdn.net/aboy2018/article/details/104020060?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase
https://blog.csdn.net/wh1319501722/article/details/104215382
可以修改CMakeLists.txt
中的选项:
默认关闭,关闭时,不保留符号,开启优化。
默认开启,关闭后,禁用openmp多线程优化。
即使步骤1做了 执行 schema\generate.ps1 还会报如下错误:无法将“../../3rd_party/flatbuffers/tmp/flatc.exe”项识别为cmdlet、函数、脚本文件或可运行程序的名称。这个去 https://github.com/google/flatbuffers/releases 下载下flatc.exe 放到/3rd_party/flatbuffers/tmp 目录下即可。
出错 error C2039: "IsOutRange,可以参考:
参考:https://blog.csdn.net/jacke121/article/details/106403303
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
cd /path/to/MNN
powershell ./schema/generate.ps1
mkdir build
cd build
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ..
ninja
github上下载的编译成功了,出来mnn.lib和mnn.dll
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DMNN_OPENCL=ON ..
ninja
下载链接:https://vulkan.lunarg.com/ ,安装完毕后,将Vulkan SDK路径加入VULKAN_SDK环境变量,以备cmake查找
AMD Radeon:https://community.amd.com/community/gaming/blog/2016/02/16/radeon-gpus-are-ready-for-the-vulkan-graphics-api ,其中列举了驱动下载位置和支持列表
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DMNN_VULKAN=ON ..
ninja
本文来自
English Document
MNN English Document
关注精品推荐
中文文档
MNN中文文档