-
Notifications
You must be signed in to change notification settings - Fork 5
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
想本地编译一个Apple Sillicon M1版本的大概要怎么做? #8
Comments
首先你需要编译openmp, 参考ncnn提供的方法
将编译好的libomp.a替换下本项目目录下的
因为我没得m1,你可以参考一下 |
之前的我试了一下 两个静态库都arm编译了,但是输出的库还是libxxxxxx86_64.... |
|
darwin
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/waifu2x_vulkan |
我看我的python进程在活动监视器里是apple啊,不是intel
获取 Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
发件人: tonquer ***@***.***>
发送时间: Tuesday, January 25, 2022 3:44:24 PM
收件人: tonquer/waifu2x-vulkan ***@***.***>
抄送: wzh4464 ***@***.***>; Author ***@***.***>
主题: Re: [tonquer/waifu2x-vulkan] 想本地编译一个Apple Sillicon M1版本的大概要怎么做? (Issue #8)
你安装universal2版本的python试试
看起来你的python版本是x86转义的不是原生arm的
[image]<https://user-images.githubusercontent.com/22116659/150932844-4c61f349-de87-4050-af40-70cd37d85bbf.png>
―
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHX24TAHJ3A673M2XYCWUVLUXZIFRANCNFSM5MR6JBRQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
你能找到你系统libpython38.dylib吗 |
这个python就是我运行python setup.py bdist_wheel 的python |
那你试试第二种编译,直接运行sh build_mac.sh |
编译成功.so了多谢 |
可以把so 放入到waifu_vulkan目录,然后用
打包 |
git clone 下来跑 python setup.py bdist_wheel 的话直接是 x86
The text was updated successfully, but these errors were encountered: