Mpv: Compiling error on Window 7 with MSYS2

Created on 20 Feb 2017  ·  3Comments  ·  Source: mpv-player/mpv

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.

info-needed upstream

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:

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).

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings