-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
fix ffmpeg with MD runtimes #5343
Conversation
@star-hengxing mingw应该是单独成了一个plat了吧,if package:is_plat("windows") then 里面应该只可能是 msvc 和 clang-cl? |
yes |
@star-hengxing #5216 也出现了arm架构全挂的现象,有办法看到 cache里面的 source/ffbuild/config.log 吗?我这边没有arm架构的Windows机器不好找哪出毛病了 |
@star-hengxing #5216 There is also a phenomenon that the arm architecture is completely down. Is there a way to see the source/ffbuild/config.log in the cache? I don’t have an arm-based Windows machine here, so it’s hard to find out what’s wrong. |
ci 上只能用 |
On ci, you can only use |
用 io.cat 也能直接看 |
You can also view it directly using io.cat |
packages/f/ffmpeg/xmake.lua
Outdated
-- catch 代码块 | ||
catch | ||
{ | ||
-- 发生异常后,被执行 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
中文注释去掉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在做测试,看看哪挂了,这个是直接从文档里面copy出来的。之后修好了删了try-catch就没了
@waruqi 现在Windows的arm64会挂掉,看起来像是xmake那边的问题,不像是xmake-repo的配置问题。 |
应该是你加了 try-catch ,还没走到安装,提前捕获到一些 errors, 提前退了,但是错误被你的 try-catch 压制了,安装成功,走到了 on_test。。理论上安装失败,要 raise 报错的,不能在 on_install 中被压制 |
有可能,我只try-catch安装过程试试 |
It should be that you added try-catch and before the installation, some errors were caught in advance and exited early. However, the errors were suppressed by your try-catch. The installation was successful and it went to on_test. . Theoretically, if the installation fails, an error must be raised and cannot be suppressed in on_install. |
It's possible, I'll just try-catch the installation process |
@waruqi 三个安卓报错的问题找到了,是arm64-v8a,r27环境不认这两个编译参数:-mfpu=neon -mfloat-abi=hard |
WindowsArm下的问题是这一行: xmake-repo/packages/f/ffmpeg/xmake.lua Line 208 in 4c2fbbf
获取到的环境变量缺失了。 感觉是autoconf工具的环境变量在arm64下存在一些问题 |
@waruqi Three Android error problems were found. They are arm64-v8a. The r27 environment does not recognize these two compilation parameters: -mfpu=neon -mfloat-abi=hard |
The problem under WindowsArm is this line: xmake-repo/packages/f/ffmpeg/xmake.lua Line 208 in 4c2fbbf
The obtained environment variables are missing. It seems that there are some problems with the environment variables of the autoconf tool under arm64. |
fix ffmpeg using msvc compiler with MD runtime.
Runtime mismatch when compiling ffmpeg with x265 under MD runtime.