Skip to content
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

Unable to build on Windows #26

Open
n00kii opened this issue Aug 16, 2022 · 7 comments
Open

Unable to build on Windows #26

n00kii opened this issue Aug 16, 2022 · 7 comments

Comments

@n00kii
Copy link

n00kii commented Aug 16, 2022

README says

For windows targets this is expected to be already built, with a directory named MPV_SOURCE/64 or /32 containing build artifacts for 64-bit and 32-bit targets respectively.

but the link provided is dead. Unsure exactly what "build artifacts" is supposed to be, do I need to build mpv myself from source? (Kinda sucks since the process is a little convoluted on Windows)

There are multiple downloads of different forms of mpv available, can I use one of those somehow? For example, there's

  • the mpv dev lib
    image
  • the raw mpv source
    image
  • mpv-build
    image

For reference, I've already tried pointing the environment variable to each of these directories, nested inside a 64 folder as per the README but cargo complains that

= note: LINK : fatal error LNK1181: cannot open input file 'mpv.lib'
@n00kii
Copy link
Author

n00kii commented Aug 16, 2022

Managed to build mpv, but there is still no "mpv.lib" file anywhere. Am I missing something?

image

@moxun33
Copy link

moxun33 commented Aug 29, 2022

same error.

@olehbozhok
Copy link

I build mpv.lib using https://github.com/Ivshti/libmpv
but have error
(exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)

@ParadoxSpiral
Copy link
Owner

Yeah the situation seems to have changed a bit. I will try getting the build to work on Windows, only got access to a Windows machine recently.

@prayag17
Copy link

prayag17 commented Apr 5, 2023

Any updates on this?

@maulik9898
Copy link

maulik9898 commented Apr 12, 2023

Also facing same issue error: process didn't exit successfully: target\debug\mpv-rs.exe (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)

@voidentente
Copy link

CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
lib /def:mpv.def /name:mpv-1.dll /out:mpv.lib /MACHINE:X64

or similar. If warnings pop up like "...not supported on this platform...", it's because mpv.def is missing the EXPORTS statement, which you can just add as the first line (see mpv-player/mpv#5007)

  • Put the .lib file in the project root or anywhere where the linker can find it
  • Put the .dll file in the directory of the executable or in any directory in PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants