From VideoLAN Wiki
Revision as of 01:25, 22 October 2009 by Vangloria (talk | contribs)
Jump to navigation Jump to search


MSYS is a helper environment for MinGW, the compiler chain for Windows based on GCC. It is the fastest way to build VLC natively on Windows.

This howto was re-created by Jean-Baptiste Kempf and updated in June 2009.

Install MinGW

Use the main installer 5.1.4 found at

Go through the wizard, selecting "Downloading and Install" and using the candidate release. Select gcc, g++ and MinGW make. It should download automatically:

  • mingwrt-3.15
  • w32api-3.12
  • binutils-2.18
  • gcc-core-3.4.5
  • gcc-g++-3.4.5
  • mingw32-make-3.81

Install MSYS

Accept Post Install: [y]
MinGW Installed? :   [y]
path to MinGW:       [c:/MinGW]


Update your autoconf, automake and libtool by downloading and installing them, keeping in mind that you need to extract the content of the usr folder in C:\Msys

You can also compile them according to:

Install other tools

Installing mingw-utils is recommended:, extract it to mingw/bin.

Installation of wget too:

Although this is a mingwPORT package it already has a precompiled wget on board. Extract the .tar.bz2 file. It contains wget.exe in the bin subfolder, extract it to mingw/bin.

Install Git and checkout VLC

See Git_Windows.

You can also retrieve the source code from VideoLAN Project: VLC media player source code


pkg-config is a mess, this is not NEWS... And you cannot compile it from Windows because of a few bugs...

Get Glib from GNOME: Unzip it to C:\Msys.

Get PKG-CONFIG from GNOME: Unzip it to C:\Msys.


Take the precompiled contribs from:

Copy them in your ~

tar xvjf contrib-20090813-win32-bin-gcc-4.2.1-sjlj-runtime-3.15.2-only.tar.bz2 -C /
rm -v /usr/win32/bin/moc /usr/win32/bin/uic /usr/win32/bin/rcc

Bootstrap VLC

cp -v /usr/win32/share/aclocal/* m4/
cp -v /usr/share/aclocal/* m4/
PATH=/usr/win32/bin:$PATH ./bootstrap

It should warn about gettext... Just ignore.


sh extras/package/win32/
  • If you downloaded a VLC source code tarball, retrieve and from [vlc.git] / extras / package / win32 /


PATH=/usr/win32/bin:$PATH make

If you have Cygwin and others tools installed, try using a shorter PATH inside MSYS shell i.e.

$ echo $PATH