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

How to build libvmaf.lib for use with Visual Studio #1097

Open
mark-samuelson opened this issue Sep 26, 2022 · 1 comment
Open

How to build libvmaf.lib for use with Visual Studio #1097

mark-samuelson opened this issue Sep 26, 2022 · 1 comment

Comments

@mark-samuelson
Copy link

I am trying to build libvmaf so I can use the library from a Visual Studio 2022 project.

Following the directions here https://github.com/Netflix/vmaf/blob/master/resource/doc/windows.md, I can build vmaf.exe, but I don't get a libvmaf.lib file, just libvmaf.a.

From this issue thread, #971, I tried add "--backend vs" to the meson setup command, and that appears to work, but when I then call "meson install -C libvmaf/build" I get this error:

Activating VS 17.2.6
Only ninja backend is supported to rebuild the project before installation.

ERROR: File 'src/libvmaf.a' could not be found

There is no build.ninja file created by the "meson configure" step, so running ninja instead of "meson install" does not work.
There is a visual studio solution that is created, but it has numerous errors, mostly "cannot open input file "pthread.h"

Is it possible to build the library for windows?

@1480c1
Copy link
Contributor

1480c1 commented Sep 27, 2022

As far as I know, unless you are able to get a pthread wrapper for Visual Studio, you probably will not be able to build this library. You will need to see if you can find a preferred pthread wrapper library for MSVC, as I do not think you can use mingw-w64's winpthreads with msvc.

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

2 participants