编译MNN出错
/wuxl/MNN/source/core/Backend.cpp:12:27: fatal error: MNN_generated.h: No such file or directory 请问大佬怎么解决 @ @nihui @llhe @intheway @li-qing @80945
same problem. “MNN_generated.h”: No such file or directory. @li-qing windows10 + vs2019 + cmake3.14.4
Have you run the ./schema/generate.sh script and generated the header files successfully?
/wuxl/MNN/source/core/Backend.cpp:12:27: fatal error: MNN_generated.h: No such file or directory 请问大佬怎么解决 @ @nihui @llhe @intheway @li-qing @80945
chmod 777 schema/generate.sh
chmod 777 tools/converter/generate_schema.sh
./schema/generate.sh
then run start to cmake and make.
Have you run the ./schema/generate.sh script and generated the header files successfully?
/wuxl/MNN/source/core/Backend.cpp:12:27: fatal error: MNN_generated.h: No such file or directory 请问大佬怎么解决 @ @nihui @llhe @intheway @li-qing @80945
I have tried to run the ./schema/generate.sh script. But error occurs as following:
*** building flatc ***
env: ‘bash’: No such file or directory
*** cleaning up ***
*** generating fbs under default ***
xargs: ../../3rd_party/flatbuffers/tmp/flatc: No such file or directory
===> Generating Schema...
*** building flatc ***
env: ‘bash’: No such file or directory
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!
*** done ***
windows10 + vs2019 + cmake3.14
Have you run the ./schema/generate.sh script and generated the header files successfully?
/wuxl/MNN/source/core/Backend.cpp:12:27: fatal error: MNN_generated.h: No such file or directory 请问大佬怎么解决 @ @nihui @llhe @intheway @li-qing @80945
I have tried to run the ./schema/generate.sh script. But error occurs as following:
*** building flatc *** env: ‘bash’: No such file or directory *** cleaning up *** *** generating fbs under default *** xargs: ../../3rd_party/flatbuffers/tmp/flatc: No such file or directory ===> Generating Schema... *** building flatc *** env: ‘bash’: No such file or directory 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! *** done ***windows10 + vs2019 + cmake3.14
If you are are installing on windows, you should use nmake. Read the install_cn.md for details.
@li-qing @woodrocky
我就是按照install_cn.md里面执行的,在nmake的时候总是报找不到MNN_generated.h头文件,请问是缺少其他必要的步骤吗?

@li-qing @woodrocky
我就是按照install_cn.md里面执行的,在nmake的时候总是报找不到MNN_generated.h头文件,请问是缺少其他必要的步骤吗?
可以看一下这个帖子https://github.com/alibaba/MNN/issues/156#issuecomment-510958784,你应该遇到了同样的问题。./schema/generate.ps1并没有执行成功,需要先正确安装flatc.exe.
@li-qing @woodrocky 我就是按照install_cn.md里面执行的,在nmake的时候总是报找不到MNN_generated.h头文件,请问是缺少其他必要的步骤吗?
可以看一下这个帖子https://github.com/alibaba/MNN/issues/156#issuecomment-510958784,你应该遇到了同样的问题。./schema/generate.ps1并没有执行成功,需要先正确安装flatc.exe.
@woodrocky @li-qing 谢谢回答,我按照上面帖子里的编CPU顺利编过了,但是我想编支持VULKAN加速的库,我执行 cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DMNN_VULKAN=ON .. 然后nmake的时候报错如下:
@li-qing @woodrocky 我就是按照install_cn.md里面执行的,在nmake的时候总是报找不到MNN_generated.h头文件,请问是缺少其他必要的步骤吗?
可以看一下这个帖子https://github.com/alibaba/MNN/issues/156#issuecomment-510958784,你应该遇到了同样的问题。./schema/generate.ps1并没有执行成功,需要先正确安装flatc.exe.
@woodrocky @li-qing 谢谢回答,我按照上面帖子里的编CPU顺利编过了,但是我想编支持VULKAN加速的库,我执行 cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DMNN_VULKAN=ON .. 然后nmake的时候报错如下:
It seems GPU acceleration is not well supported on Windows. At least OPENCL is not supported on Windows now. But I am not sure about the VULKAN. Maybe you need to check the DOCS or ask the developer to make sure.
目前vulkan还未在windows,linux验证过,看编译log,判断是一些语言特性不兼容导致。vulkan近期会做windows适配。
chmod 777 schema/generate.sh chmod 777 tools/converter/generate_schema.sh ./schema/generate.shthen run start to cmake and make.
仍然无效,打开了脚本权限,然后执行出现
===> Generating Schema...
../../3rd_party/flatbuffers/tmp/flatc: 1: ../../3rd_party/flatbuffers/tmp/flatc: Syntax error: word unexpected (expecting ")")
./generate_schema.sh: 行 39: ../../3rd_party/flatbuffers/tmp/flatc: 无法执行二进制文件: 可执行文件格式错误
===> Done!