-
Notifications
You must be signed in to change notification settings - Fork 24
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
iOS代码编译时报错instruction requires: dotprod #15
Comments
我在M1上无法复现这个问题,参考下这个 issue 吧:official-stockfish/Stockfish#4408 |
求助,我也有这个问题,错误日志如下。多谢帮忙看下要怎么解决或者是提供什么信息 [*] configurate libyuv[*] compile libyuv:14:1: error: instruction requires: dotprod ➜ ios git:(latest) ✗ sysctl -a | grep machdep.cpu |
我这里使用Xcode15.3 编译 libyuv 也出错了,不过和你那不一样;修改编译脚本之后,我这可以编译出libyuv了,你拉取最新代码先clean, 然后重新编译下试试。 |
@debugly 大佬看下编译libyuv的时候我也报错了,拉的是最新的脚本,XCode15.3 |
这个问题,我猜测是新版本Xcode或者Clang的bug,目前还没有完全定位问题,我给大家提供个方案,直接下载我预编译好的库,不要自己编译,ijk用到的三方库都可以在这里找到预编译版本: https://github.com/debugly/MRFFToolChainBuildShell/tags 1、如果没有修改源码,不要编译这些库,浪费时间! cd shell
#安装iOS和macOS平台所有的依赖库
./install-pre-any.sh all all
#安装iOS平台所有的依赖库
./install-pre-any.sh ios all
#安装macOS平台所有的依赖库
./install-pre-any.sh macos all 根据开发的平台安装就行。我写的脚本都很灵活,参数多种多样,这里不介绍了, 2、如果不修改ijk的源码,直接下载预编译好的 framework 放进工程就行: |
感谢大佬的回复,用上面的方法已经可以顺利编译了 @debugly |
同样的报错。大佬能编译一个支持samba的版本吗? |
实际上当前没有使用libyuv,可以不用编译它。 |
Macbook M2芯片
执行./compile-any.sh build all
报错如下:
:11:1: error: instruction requires: dotprod
udot v0.4s, v4.166, v16.16b
^
error: cannot compile inline asm <inline asm›:12:1: error: instruction requires: dotprod
udot v1.4s, v5.16b, v16.16b
^
error: cannot compile inline asm :13:1: error: instruction requires: dotprod
udot v2.4s, V6. 16b, V16.16b
^
error: cannot compile inline asm :14:1: error: instruction requires: dotprod
udot v3.4s, v7.16b,V16.16b
The text was updated successfully, but these errors were encountered: