pympv icon indicating copy to clipboard operation
pympv copied to clipboard

Unable to setup on Windows 8.1 / Python 3.4 / VC10

Open silvium opened this issue 10 years ago • 3 comments

Complains about mpv.lib

setup.py build
running build
running build_ext
building 'mpv' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python34\include -IC:\Python34\include /Tcmpv.c /Fobuild\temp.win32-3.4\Release\mpv.obj
mpv.c
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python34\libs /LIBPATH:C:\Python34\PCbuild mpv.lib /EXPORT:PyInit_mpv build\temp.win32-3.4\Release\mpv.obj /OUT:build\lib.win32-3.4\mpv.pyd /IMPLIB:build\temp.win32-3.4\Release\mpv.lib /MANIFESTFILE:build\temp.win32-3.4\Release\mpv.pyd.manifest
LINK : fatal error LNK1181: cannot open input file 'mpv.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\link.exe' failed with exit status 1181

I assume i will have to build it myself but i found no instructions for doing so either on Windows or cross-compiling on Linux. I know it's not a pympv problem, but some help in that direction would be greatly appreciated.

silvium avatar Feb 02 '15 12:02 silvium

Your build of mpv should come with libmpv or you should have built it yourself with --enable-libmpv-shared

andre-d avatar Feb 02 '15 16:02 andre-d

Thank you, your comment has directed me towards building it myself. I have followed the "Native compilation with MSYS2" tutorial but all i get is "libmpv.a" and "libmpv.dll.a", no "mpv.lib". Is there any link or search terms you can provide that would help me get a ".lib" file?

silvium avatar Feb 04 '15 00:02 silvium

I know I'm commenting on an old issue, but msys2 provides an already built mpv under the package of mingw-w64-i686-mpv and mingw-w64-x86_64-mpv which also provides the shared library for mpv

ZachBacon avatar Jun 05 '16 22:06 ZachBacon