From VideoLAN Wiki
Revision as of 17:22, 2 March 2009 by Geal (talk | contribs) (replace gcrypt and pkg-config hack by contribs building)
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.

Install MinGW

Use the main installer 5.1.4 found at

Use the candidate release, and select gcc, g++ and MinGW make. It should download:

  • 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 or (recommended on 64bits)

  • Update your autoconf, automake and libtool by downloading and installing them.

You can also compile them according to:

Install other tools

Installing mingw-utils is recommended:

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

Download Git on

Launch Git bash:

cd /c
mkdir VLC
cd VLC
git clone git://

launch MSys again cd /c/VLC/vlc


Build the third-party libs needed by VLC.

cd extras/contrib
cd src

Bootstrap VLC

This is a HACK. Don't do this at HOME. cp extras/contrib/share/aclocal/* m4/ cp /usr/share/aclocal/* m4/ ./bootstrap It should warn about gettext... Just ignore.


vim extras/package/win32/

Change CC to gcc and CXX to g++, I recommend to --disable-nls too

sh extras/package/win32/