-
-
Notifications
You must be signed in to change notification settings - Fork 53
Install on Windows
The easiest way to install libVLC on Windows (which does not require building it from source) is to download the latest version of the VideoLAN.LibVLC.Windows NuGet package.
The package is basically a ZIP file, so it can be opened with any archive manager.
The build
directory contains the SDK files, pre-built for 32 and 64 bit versions of Windows.
Extract the appropriate directory (most likely x64
) in a location of your choice. In this example, the directory is extracted to C:\libvlc
. The contents of the extracted directory should be:
Before building your project, set the CGO_LDFLAGS
and the CGO_CFLAGS
environment variables, in order to make the Go build tools aware of the location of the VLC SDK files. In this example, the location of the SDK files is C:\libvlc
.
set CGO_LDFLAGS=-LC:\libvlc
set CGO_CFLAGS=-IC:\libvlc\include