Difference between revisions of "Win32CompileMSYSNew"

From VideoLAN Wiki
Jump to navigation Jump to search
Line 22: Line 22:
 
== AutoTools ==
 
== AutoTools ==
 
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
 
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
* http://downloads.sourceforge.net/mingw/autoconf2.5-2.61-1-bin.tar.bz2
+
* http://sourceforge.net/projects/mingw/files/MSYS%20autoconf/autoconf-2.63-1/autoconf-2.63-1-msys-1.0.11-bin.tar.lzma/download
* http://downloads.sourceforge.net/mingw/automake1.10-1.10-1-bin.tar.bz2
+
* http://sourceforge.net/projects/mingw/files/MSYS%20automake/automake-1.11-1/automake-1.11-1-msys-1.0.11-bin.tar.lzma/download
* http://downloads.sourceforge.net/mingw/libtool1.5-1.5.25a-1-bin.tar.bz2
+
* http://sourceforge.net/projects/mingw/files/MSYS%20libtool/libtool-2.2.7a-1/libtool-2.2.7a-1-msys-1.0.11-bin.tar.lzma/download
  
 
You can also compile them according to:
 
You can also compile them according to:

Revision as of 21:10, 10 August 2009

Introduction

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 http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780

Use the candidate release, and 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

AutoTools

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: http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz

Installation of wget too: http://prdownloads.sourceforge.net/mingw/wget-1.9.1-mingwPORT.tar.bz2

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.

PKG-CONFIG

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: http://ftp.gnome.org/pub/GNOME/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip Unzip it.

Get PKG-CONFIG from GNOME: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-0.23-2.zip Unzip it too.

Contribs

Take the precompiled contribs:

ftp://ftp.videolan.org/pub/vlc/1.0.0/win32/contrib-1.0.0.tar.bz2

Copy them in your ~

tar xvjf contrib-1.0.0.tar.bz2 -C /
rm /usr/win32/bin/moc /usr/win32/bin/uic /usr/win32/bin/rcc

Bootstrap VLC

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

It should warn about gettext... Just ignore.

Configure

sh extras/package/win32/configure-msys.sh

Compile

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