Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译MNN出错 #186

Closed
wuxiaolianggit opened this issue Jul 25, 2019 · 11 comments
Closed

编译MNN出错 #186

wuxiaolianggit opened this issue Jul 25, 2019 · 11 comments

Comments

@wuxiaolianggit
Copy link

/wuxl/MNN/source/core/Backend.cpp:12:27: fatal error: MNN_generated.h: No such file or directory
请问大佬怎么解决
@ @nihui @llhe @intheway @li-qing @80945

@yizhaoyanbo
Copy link
Contributor

same problem. “MNN_generated.h”: No such file or directory. @li-qing
windows10 + vs2019 + cmake3.14.4

@woodrocky
Copy link

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

@Sugaryou
Copy link
Contributor

chmod 777 schema/generate.sh
chmod 777 tools/converter/generate_schema.sh
./schema/generate.sh

then run start to cmake and make.

@yizhaoyanbo
Copy link
Contributor

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

@woodrocky
Copy link

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 li-qing closed this as completed Jul 29, 2019
@yizhaoyanbo
Copy link
Contributor

@li-qing @woodrocky

我就是按照install_cn.md里面执行的,在nmake的时候总是报找不到MNN_generated.h头文件,请问是缺少其他必要的步骤吗?

image

@woodrocky
Copy link

@li-qing @woodrocky

我就是按照install_cn.md里面执行的,在nmake的时候总是报找不到MNN_generated.h头文件,请问是缺少其他必要的步骤吗?

image

可以看一下这个帖子https://github.com/alibaba/MNN/issues/156#issuecomment-510958784,你应该遇到了同样的问题。./schema/generate.ps1并没有执行成功,需要先正确安装flatc.exe.

@yizhaoyanbo
Copy link
Contributor

yizhaoyanbo commented Jul 31, 2019

@li-qing @woodrocky
我就是按照install_cn.md里面执行的,在nmake的时候总是报找不到MNN_generated.h头文件,请问是缺少其他必要的步骤吗?
image

可以看一下这个帖子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的时候报错如下:

捕获

@woodrocky
Copy link

@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.

@hacker-joe
Copy link

目前vulkan还未在windows,linux验证过,看编译log,判断是一些语言特性不兼容导致。vulkan近期会做windows适配。

@changkaizhao
Copy link

changkaizhao commented Mar 25, 2020

chmod 777 schema/generate.sh
chmod 777 tools/converter/generate_schema.sh
./schema/generate.sh

then 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants