Closed CharlesMengCA closed 11 months ago
Current Windows build script has been using UCRT to build the mpv.exe
It doesn't matter. The problem is not UCRT. Mingw-w64 explicitly override some math functions with their own versions, even for UCRT, where they are available and better.
Do we need to change anything in the meson.build in libplacebo to use the UCRT?
The code you quoted is only working when building libplacebo to shared library. Since you are linking statically everything, it is not used. Static libplacebo archive, will use whatever math is available during final link, of mpv.exe in your case.
If you want to have the same behavior you would need to replicate it in your build system, and use custom .lib like we do. Or link libplacebo.dll instead.
Thank you very much.
Hi @kasper93,
Current Windows build script has been using UCRT to build the mpv.exe
https://github.com/shinchiro/mpv-winbuild-cmake/commit/4e318980546925534d8504b2f9d01a37592c859b
Do we need to change anything in the meson.build in libplacebo to use the UCRT?
Something need to be changed here?
Thanks,