Hello,
I have followed the compiling instruction document for windows with msys2.
Until recently, there was no issue at all.
But my recent a few tries make following error during waf configure:
Writing configuration header: : Could not create the directory C:/msys32/home/~/mpv/build/C:
Is this error of my msys system? or waf script related error?
Thanks in advance.
That doesn't seem even remotely related to mpv or waf.
Also, don't ignore the issue template. What're the commands you're using, which shell (msys or mingw), logs for configure, build, etc.
Looks like weird MSYS path conversion nonsense. I've found the build only works with MSYS2 Python (rather than mingw-w64 Python,) so try running the following from mpv's source directory:
pacman -S python
rm -rf waf {,.}waf{,3}-*
/usr/bin/python3 bootstrap.py
/usr/bin/python3 waf configure CC=gcc.exe --check-c-compiler=gcc --prefix=/mingw64
Invoking /usr/bin/python3 directly, rather than just running ./waf should make sure the MSYS2 version of Python is used.
If this doesn't fix it, could you post the log (buildconfig.log).
Thanks @rossy, that workaround worked for me on Windows 10x64 with MSYS2 MinGW64 shell
Most helpful comment
Looks like weird MSYS path conversion nonsense. I've found the build only works with MSYS2 Python (rather than mingw-w64 Python,) so try running the following from mpv's source directory:
Invoking /usr/bin/python3 directly, rather than just running
./wafshould make sure the MSYS2 version of Python is used.If this doesn't fix it, could you post the log (buildconfig.log).