Build libvlc to use on Windows 11 VS2022

This forum is about all development around libVLC.
mitovaf
New Cone
New Cone
Posts: 2
Joined: 25 Apr 2022 19:51

Build libvlc to use on Windows 11 VS2022

Postby mitovaf » 25 Apr 2022 19:55

I'm trying to find a way to test libvlc into my Qt project in Windows 11 / VS2022.
The wiki to build libvlc is outdated and can't find a guide to start coding with vlc in windows.
I read that there are docker images somewhere that help building process.
Who can help me figure out how to fully compile and build libvlc to use in VS2022?

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: Build libvlc to use on Windows 11 VS2022

Postby mfkl » 26 Apr 2022 09:17

You don't need to build libvlc to use it. You can just load the already built DLL.

To get the DLLs, if you want nightlies, go for https://artifacts.videolan.org/vlc/nightly-win64-llvm/ for v4, if you want stable 3.x see https://artifacts.videolan.org/vlc-3.0/nightly-win64/

Now, if you want to build libvlc yourself for whatever reason, and be able to debug the code using the VS debugger, your only reasonable option is to build using Clang (and not MSVC from VS).

Start here: https://code.videolan.org/videolan/vlc/ ... lab-ci.yml this file contains all you need to understand how to build, including references to the needed docker images, which buildscripts to invoke and how. If you check the win32 buildscript (referenced in the CI file linked above), you will notice an option to generate PDBs which VS will pick up.
https://mfkl.github.io

mitovaf
New Cone
New Cone
Posts: 2
Joined: 25 Apr 2022 19:51

Re: Build libvlc to use on Windows 11 VS2022

Postby mitovaf » 26 Apr 2022 09:52

You don't need to build libvlc to use it. You can just load the already built DLL.

To get the DLLs, if you want nightlies, go for https://artifacts.videolan.org/vlc/nightly-win64-llvm/ for v4, if you want stable 3.x see https://artifacts.videolan.org/vlc-3.0/nightly-win64/

Now, if you want to build libvlc yourself for whatever reason, and be able to debug the code using the VS debugger, your only reasonable option is to build using Clang (and not MSVC from VS).

Start here: https://code.videolan.org/videolan/vlc/ ... lab-ci.yml this file contains all you need to understand how to build, including references to the needed docker images, which buildscripts to invoke and how. If you check the win32 buildscript (referenced in the CI file linked above), you will notice an option to generate PDBs which VS will pick up.
Nice, I don't want to build it myself, I want only to use it in my project and test it. I don't know even if it is the tool I need.

EDIT: With url provided I managed to build my app, now I need only to test it and check if suit my needs


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests