<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Memo</id>
	<title>VideoLAN Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Memo"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Memo/"/>
	<updated>2026-11-04T16:10:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSOld&amp;diff=9948</id>
		<title>Win32CompileMSYSOld</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSOld&amp;diff=9948"/>
		<updated>2007-09-28T03:51:21Z</updated>

		<summary type="html">&lt;p&gt;Memo: /* Gettext */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MSYS/MinGW environment for Windows from http://developers.videolan.org/vlc/msys-compile.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TODO: GPAC, NSIS, PKG-Config, more than just setting up the environment...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
THIS ARTICLE IS UNDER CONSTRUCTION!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=MSYS/MinGW environment=&lt;br /&gt;
&lt;br /&gt;
Setting up a working MSYS/MinGW environment requires the following:&lt;br /&gt;
&lt;br /&gt;
* MSYS installation&lt;br /&gt;
* Updating MSYS&lt;br /&gt;
* MSYS DTK (Developer Tool Kit)&lt;br /&gt;
* Updating bash (shell)&lt;br /&gt;
* MinGW installation&lt;br /&gt;
* Configuration of fstab&lt;br /&gt;
* Creation of home folder&lt;br /&gt;
&lt;br /&gt;
Note that the following generic resource locations were used to download the appropriate packages (and more recent versions might be obtained from here):&lt;br /&gt;
&lt;br /&gt;
[http://prdownloads.sourceforge.net/mingw MSYS/MinGW related]&lt;br /&gt;
&lt;br /&gt;
[http://prdownloads.sourceforge.net/nasm nasm]&lt;br /&gt;
&lt;br /&gt;
[http://www.libsdl.org SDL]&lt;br /&gt;
&lt;br /&gt;
[http://www.info-zip.org zip]&lt;br /&gt;
&lt;br /&gt;
[http://pkgconfig.freedesktop.org/releases pkg-config]&lt;br /&gt;
&lt;br /&gt;
[ftp://ftp.gnu.org/pub/gnu/sed sed]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Minimal SYStem (MSYS) installation==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MSYS-1.0.11-2004.04.30-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into C:\msys&lt;br /&gt;
&lt;br /&gt;
Do not continue with the post install (this will be done later).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Update MSYS==&lt;br /&gt;
&lt;br /&gt;
Update MSYS to a more recent version&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MSYS-1.0.11-20060807.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file, it contains the following files:&lt;br /&gt;
&lt;br /&gt;
 mount.exe&lt;br /&gt;
 msys-1.0.dll&lt;br /&gt;
 ps.exe&lt;br /&gt;
&lt;br /&gt;
Copy the files to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
This will overwrite/update the version(s) used in MSYS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MSYS DTK (Developer Tool Kit)==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into C:\msys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating BASH==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/bash-3.1-MSYS-1.0.11-snapshot.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file, in the bin subfolder it contains the following files:&lt;br /&gt;
&lt;br /&gt;
 bash.exe&lt;br /&gt;
 sh.exe&lt;br /&gt;
&lt;br /&gt;
Copy the files to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
This will overwrite/update the sh.exe version used in MSYS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MinGW==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MinGW-5.0.3.exe&lt;br /&gt;
&lt;br /&gt;
Select the download option.&lt;br /&gt;
&lt;br /&gt;
Do not install with &amp;quot;Current&amp;quot; MinGW packages but select &amp;quot;Candidate&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Select the following components to install:&lt;br /&gt;
&lt;br /&gt;
 MinGW base tools (autoselected)&lt;br /&gt;
 g++ compiler&lt;br /&gt;
&lt;br /&gt;
Then installation will finish downloading automatically.&lt;br /&gt;
&lt;br /&gt;
Run MinGW-5.0.3.exe again and select the download and install option to restart the installation. &lt;br /&gt;
&lt;br /&gt;
Selet &amp;quot;Candidate&amp;quot; still and select the same components to install.&lt;br /&gt;
&lt;br /&gt;
Perform the installation into the default destination:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
The following versions (or possibly newer) of the candidate packages will be&lt;br /&gt;
downloaded and installed:&lt;br /&gt;
&lt;br /&gt;
 mingw-runtime-3.10.tar.gz&lt;br /&gt;
 w32api-3.7.tar.gz&lt;br /&gt;
 binutils-2.16.91-20060119-1.tar.gz&lt;br /&gt;
 gcc-core-3.4.5-20060117-1.tar.gz&lt;br /&gt;
 gcc-g++-3.4.5-20060117-1.tar.gz&lt;br /&gt;
&lt;br /&gt;
(It is also possible to get these packages seperately and extract them to C:\msys\mingw)&lt;br /&gt;
&lt;br /&gt;
==Configuring fstab==&lt;br /&gt;
&lt;br /&gt;
The folder C:\msys\etc contains the following file:&lt;br /&gt;
&lt;br /&gt;
 fstab.sample&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 fstab&lt;br /&gt;
&lt;br /&gt;
Open the file with a text editor and change the path value for the mingw mount point from:&lt;br /&gt;
&lt;br /&gt;
 c:/mingw to c:/msys/mingw&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Starting MSYS==&lt;br /&gt;
&lt;br /&gt;
The first time MSYS is started, a &amp;quot;home&amp;quot; folder is created, for example:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Installing additional packages=&lt;br /&gt;
&lt;br /&gt;
The following packages are required for building VLC&lt;br /&gt;
&lt;br /&gt;
* Wget&lt;br /&gt;
* Iconv&lt;br /&gt;
* Gettext&lt;br /&gt;
* MinGW utils&lt;br /&gt;
* Libtool&lt;br /&gt;
* Autoconf&lt;br /&gt;
* Automake&lt;br /&gt;
* Zip&lt;br /&gt;
* Coreutils&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==WGet==&lt;br /&gt;
&lt;br /&gt;
Wget is required for building from the &amp;quot;extras/contrib&amp;quot; or mingwPORT packages.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/wget-1.9.1-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Although this is a mingwPORT package it already has a precompiled wget on board.&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 wget.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Iconv (GNU libiconv)==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libiconv-1.8.0-2003.02.01-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into the default destination Folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Updating Iconv===&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libiconv-1.10-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd libiconv-1.10-mingwPORT/libiconv-1.10/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/libiconv-1.10&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
NOTE: For some unknown reason usage of Iconv fails when 1.10 is installed directly without having installed 1.8.0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Gettext==&lt;br /&gt;
&lt;br /&gt;
http://downloads.sourceforge.net/mingw/gettext-0.16.1-1-bin.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Untar this packet and copy the files in the subdirectories under gettext-0.16.1-1-bin/usr/local to the corresponding subdirectories under C:\msys\mingw.&lt;br /&gt;
For example:&lt;br /&gt;
       copy gettext-0.16.1-1-bin/usr/local/lib/*.* to  C:\msys\mingw\lib\&lt;br /&gt;
      ......................................................&lt;br /&gt;
Note:&lt;br /&gt;
   The latest VLC from svn requires gettext-0.16.xx to build.&lt;br /&gt;
&lt;br /&gt;
==MinGW Utils==&lt;br /&gt;
&lt;br /&gt;
The unix2dos tool from this package is required during the &amp;quot;make package&amp;quot; process of VLC for some conversion of txt files.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.gz file. it contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 unix2dos.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Libtool==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libtool-1.5.22-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd libtool-1.5.22-mingwPORT/libtool-1.5.22/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/libtool-1.5.22&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Autoconf==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/autoconf-2.59-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd autoconf-2.59-mingwPORT/autoconf-2.59/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/autoconf-2.59&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating autoconf from contrib==&lt;br /&gt;
&lt;br /&gt;
VLC 0.8.6 and later (including 0.9.0 svn/development) require an autoconf version&lt;br /&gt;
of 2.60 or greater.&lt;br /&gt;
&lt;br /&gt;
If during the configure process the following msg appears it&#039;s time to update:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Hey, your autoconf is quite old. Update it&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Open your MSYS shell:&lt;br /&gt;
&lt;br /&gt;
 cd vlc-trunk/extras/contrib&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
&lt;br /&gt;
 cd src&lt;br /&gt;
&lt;br /&gt;
 make .autoconf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Automake==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/automake-1.9.5-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd automake-1.9.5-mingwPORT/automake-1.9.5/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/automake-1.9.5&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Zip==&lt;br /&gt;
&lt;br /&gt;
Zip is required for making .zip packages...&lt;br /&gt;
&lt;br /&gt;
http://www.info-zip.org/&lt;br /&gt;
&lt;br /&gt;
ftp://ftp.info-zip.org/pub/infozip/WIN32/zip232xN.zip&lt;br /&gt;
&lt;br /&gt;
Extract the .zip. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 zip.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Coreutils==&lt;br /&gt;
&lt;br /&gt;
The whoami tool from this package is required for &amp;quot;svn builds&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. it contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 whoami.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Optional packages=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GDB (optional)==&lt;br /&gt;
&lt;br /&gt;
GDB is used for debugging purposes.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe&lt;br /&gt;
&lt;br /&gt;
Perform an installation into the folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==ZLib (optional)==&lt;br /&gt;
&lt;br /&gt;
Zlib is a required package in combination with the Gpac package for .avs and&lt;br /&gt;
.mp4 output support when building the x264 library.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/zlib-1.2.3-mingwPORT-1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd zlib-1.2.3-mingwPORT/zlib-1.2.3/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/zlib-1.2.3&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
 Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating SDL from mingwPORT (optional)==&lt;br /&gt;
&lt;br /&gt;
SDL support is required when building ffplay from the FFmpeg package.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/SDL-1.2.8-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\SDL-1.2.8-mingwPORT (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd SDL-1.2.8-minwPORT/SDL-1.2.8/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/SDL-1.2.8&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into /usr/local/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Updating SDL (optional)===&lt;br /&gt;
&lt;br /&gt;
http://www.libsdl.org/release/SDL-1.2.11.tar.gz&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.gz file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\SDL-1.2.11 (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd SDL-1.2.11&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into /usr/local/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Nasm (optional)==&lt;br /&gt;
&lt;br /&gt;
The Netwide assembler (nasm) is required for building the x264 library.&lt;br /&gt;
&lt;br /&gt;
http://sourceforge.net/project/showfiles.php?group_id=6208&lt;br /&gt;
&lt;br /&gt;
Download the latest win32 binaries:&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/nasm/nasm-0.98.39-win32.zip?download&lt;br /&gt;
&lt;br /&gt;
Extract the .zip. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 nasmw.exe&lt;br /&gt;
&lt;br /&gt;
Rename the file to nasm.exe and copy it to the following location:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GPAC (optional)==&lt;br /&gt;
&lt;br /&gt;
GPAC is required for building the x264 library with mp4 output support.&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cvs -z3 -d:pserver:anonymous@gpac.cvs.sourceforge.net:/cvsroot/gpac co -P gpac&lt;br /&gt;
&lt;br /&gt;
This will download the latest GPAC version from CVS.&lt;br /&gt;
&lt;br /&gt;
 cd gpac&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make install-lib&lt;br /&gt;
&lt;br /&gt;
TODO: copy GPAC files to appropriate folder automagically.&lt;br /&gt;
&lt;br /&gt;
==x264 (optional)==&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 svn co svn://svn.videolan.org/x264/trunk x264-trunk&lt;br /&gt;
&lt;br /&gt;
 cd x264-trunk&lt;br /&gt;
&lt;br /&gt;
For generic purposes:&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For VLC:&lt;br /&gt;
&lt;br /&gt;
 ./configure --prefix=/usr/win32&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will copy the appropriate libs and .h to the prefix folder which will also be used by VLC for building the contrib&lt;br /&gt;
&lt;br /&gt;
For compiling &amp;quot;stand-alone with mp4 output support&amp;quot; (this requires GPAC):&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mp4-output&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
If you wish to compile FFmpeg stand-alone with x264 support then also do this&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will copy the appropriate libs and .h files to the default /usr/lib and /usr/include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FFmpeg (optional)==&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 svn co svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg-trunk&lt;br /&gt;
&lt;br /&gt;
 cd ffmpeg-trunk&lt;br /&gt;
&lt;br /&gt;
For generic purposes:&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --enable-gpl --enable-pp&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For compiling with x264 support:&lt;br /&gt;
&lt;br /&gt;
(This assumes you did a &amp;quot;make install&amp;quot; for x264 which will have copied the appropriate lib and .h files into lib/include).&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --extra-cflags=-I/usr/local/include \&lt;br /&gt;
    --extra-ldflags=-L/usr/local/lib \&lt;br /&gt;
    --enable-gpl --enable-pp --enable-x264&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For compiling into VLC:&lt;br /&gt;
&lt;br /&gt;
(This does not need x264 lib in FFmpeg since VLC uses that directly, also prefix and extra flags are used to point to the &amp;quot;contrib&amp;quot; folder):&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --extra-cflags=-I/usr/win32/include \&lt;br /&gt;
    --extra-ldflags=-L/usr/win32/lib \&lt;br /&gt;
    --prefix=/usr/win32 \&lt;br /&gt;
    --enable-faac --enable-mp3lame --enable-gpl --enable-pp&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install-libs install-headers&lt;br /&gt;
&lt;br /&gt;
This will copy all the appropriate libs and .h files into usr/win32/include and lib so they can be used by VLC compilation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=FAQ=&lt;br /&gt;
&lt;br /&gt;
Various troubleshooting issues..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Make .qt4 from extras/contrib==&lt;br /&gt;
&lt;br /&gt;
Fails on:&lt;br /&gt;
&lt;br /&gt;
 checking for libmpeg2.a in /home/Administrator/vlc-trunk/./extras/contrib/src/mpeg2dec... no&lt;br /&gt;
 configure: error: cannot cd to /home/Administrator/vlc-trunk/./extras/contrib/src/mpeg2dec&lt;br /&gt;
&lt;br /&gt;
Workaround: configure with &lt;br /&gt;
 &lt;br /&gt;
 --without-contrib&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Make package-win32-zip==&lt;br /&gt;
&lt;br /&gt;
Fails on:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;s%share/osdmenu%osdmenu%g&#039; ./vlc-0.9.0-svn/osdmenu/*.cfg&lt;br /&gt;
 sed: invalid option -- i&lt;br /&gt;
&lt;br /&gt;
Workaround: compile sed 4.09 (any newer versions fail to compile on missing alloca)&lt;br /&gt;
&lt;br /&gt;
ftp://ftp.gnu.org/pub/gnu/sed/sed-4.0.9.tar.gz&lt;br /&gt;
&lt;br /&gt;
use the newer sed version in c:\msys\mingw\bin and rename the old one to sed3.exe or something&lt;br /&gt;
&lt;br /&gt;
ONLY use the 4.09 sed to do a make package-win32-zip, it will fail to compile VLC source&lt;br /&gt;
(so after it finishes, you have to copy the old version back again).&lt;br /&gt;
&lt;br /&gt;
So in conclusion:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip fails with sed 3.02 on -i&lt;br /&gt;
 make autoconf fails with sed 4.09 on -E&lt;br /&gt;
 sed 4.10+ requires glib&lt;br /&gt;
 glib requires pkgconfig but pkgconfig requires glib?!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Warnings during configure==&lt;br /&gt;
&lt;br /&gt;
Using contrib from 20061015 still a lot of warnings during configure:&lt;br /&gt;
&lt;br /&gt;
 checking dynamic linker characteristics... ./configure: line 14697: f77: command not found&lt;br /&gt;
 ./configure: line 14825: f77: command not found&lt;br /&gt;
&lt;br /&gt;
 configure: WARNING: libshout library not found&lt;br /&gt;
 configure: WARNING: MusicBrainz library not found&lt;br /&gt;
 configure: WARNING: CD Reading and information library not found&lt;br /&gt;
 configure: WARNING: VCD information library not found&lt;br /&gt;
 configure: WARNING: new enough libcddb not found. CDDB access disabled&lt;br /&gt;
&lt;br /&gt;
 checking for mpcdec/mpcdec.h... yes&lt;br /&gt;
 configure: WARNING: only static linking is available, you must provide a gme-tree&lt;br /&gt;
&lt;br /&gt;
 ./configure: line 54814: --exists: command not found&lt;br /&gt;
&lt;br /&gt;
 configure: WARNING: Probe disc disabled because ok libcdio library not found&lt;br /&gt;
 configure: WARNING: VCD information on Probe disc disabled because ok&lt;br /&gt;
 libvcdinfo not found&lt;br /&gt;
 configure: WARNING: QT4 library not found&lt;br /&gt;
 configure: WARNING: DAAP library not found&lt;br /&gt;
 configure: WARNING: avahi-client library not found&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Can not write to output file with unix2dos==&lt;br /&gt;
&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/AUTHORS.txt to DOS format ...&lt;br /&gt;
 unix2dos: can not write to output file&lt;br /&gt;
 unix2dos: problems converting file ./vlc-0.9.0-svn/AUTHORS.txt&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/MAINTAINERS.txt to DOS format ...&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/THANKS.txt to DOS format ...&lt;br /&gt;
 unix2dos: can not write to output file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Version=&lt;br /&gt;
&lt;br /&gt;
20060926 Initial version&lt;br /&gt;
&lt;br /&gt;
20060928 Reworked layout&lt;br /&gt;
&lt;br /&gt;
20061011 Added troubleshooting section&lt;br /&gt;
&lt;br /&gt;
20061119 Added FFmpeg and x264. Removed unicode warning from troubleshooting&lt;br /&gt;
&lt;br /&gt;
20070113 WIKI version&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:Coding]]&lt;/div&gt;</summary>
		<author><name>Memo</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSOld&amp;diff=9875</id>
		<title>Win32CompileMSYSOld</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSOld&amp;diff=9875"/>
		<updated>2007-09-14T12:15:23Z</updated>

		<summary type="html">&lt;p&gt;Memo: /* MinGW */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MSYS/MinGW environment for Windows from http://developers.videolan.org/vlc/msys-compile.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TODO: GPAC, NSIS, PKG-Config, more than just setting up the environment...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
THIS ARTICLE IS UNDER CONSTRUCTION!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=MSYS/MinGW environment=&lt;br /&gt;
&lt;br /&gt;
Setting up a working MSYS/MinGW environment requires the following:&lt;br /&gt;
&lt;br /&gt;
* MSYS installation&lt;br /&gt;
* Updating MSYS&lt;br /&gt;
* MSYS DTK (Developer Tool Kit)&lt;br /&gt;
* Updating bash (shell)&lt;br /&gt;
* MinGW installation&lt;br /&gt;
* Configuration of fstab&lt;br /&gt;
* Creation of home folder&lt;br /&gt;
&lt;br /&gt;
Note that the following generic resource locations were used to download the appropriate packages (and more recent versions might be obtained from here):&lt;br /&gt;
&lt;br /&gt;
[http://prdownloads.sourceforge.net/mingw MSYS/MinGW related]&lt;br /&gt;
&lt;br /&gt;
[http://prdownloads.sourceforge.net/nasm nasm]&lt;br /&gt;
&lt;br /&gt;
[http://www.libsdl.org SDL]&lt;br /&gt;
&lt;br /&gt;
[http://www.info-zip.org zip]&lt;br /&gt;
&lt;br /&gt;
[http://pkgconfig.freedesktop.org/releases pkg-config]&lt;br /&gt;
&lt;br /&gt;
[ftp://ftp.gnu.org/pub/gnu/sed sed]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Minimal SYStem (MSYS) installation==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MSYS-1.0.11-2004.04.30-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into C:\msys&lt;br /&gt;
&lt;br /&gt;
Do not continue with the post install (this will be done later).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Update MSYS==&lt;br /&gt;
&lt;br /&gt;
Update MSYS to a more recent version&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MSYS-1.0.11-20060807.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file, it contains the following files:&lt;br /&gt;
&lt;br /&gt;
 mount.exe&lt;br /&gt;
 msys-1.0.dll&lt;br /&gt;
 ps.exe&lt;br /&gt;
&lt;br /&gt;
Copy the files to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
This will overwrite/update the version(s) used in MSYS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MSYS DTK (Developer Tool Kit)==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into C:\msys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating BASH==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/bash-3.1-MSYS-1.0.11-snapshot.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file, in the bin subfolder it contains the following files:&lt;br /&gt;
&lt;br /&gt;
 bash.exe&lt;br /&gt;
 sh.exe&lt;br /&gt;
&lt;br /&gt;
Copy the files to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
This will overwrite/update the sh.exe version used in MSYS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MinGW==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MinGW-5.0.3.exe&lt;br /&gt;
&lt;br /&gt;
Select the download option.&lt;br /&gt;
&lt;br /&gt;
Do not install with &amp;quot;Current&amp;quot; MinGW packages but select &amp;quot;Candidate&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Select the following components to install:&lt;br /&gt;
&lt;br /&gt;
 MinGW base tools (autoselected)&lt;br /&gt;
 g++ compiler&lt;br /&gt;
&lt;br /&gt;
Then installation will finish downloading automatically.&lt;br /&gt;
&lt;br /&gt;
Run MinGW-5.0.3.exe again and select the download and install option to restart the installation. &lt;br /&gt;
&lt;br /&gt;
Selet &amp;quot;Candidate&amp;quot; still and select the same components to install.&lt;br /&gt;
&lt;br /&gt;
Perform the installation into the default destination:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
The following versions (or possibly newer) of the candidate packages will be&lt;br /&gt;
downloaded and installed:&lt;br /&gt;
&lt;br /&gt;
 mingw-runtime-3.10.tar.gz&lt;br /&gt;
 w32api-3.7.tar.gz&lt;br /&gt;
 binutils-2.16.91-20060119-1.tar.gz&lt;br /&gt;
 gcc-core-3.4.5-20060117-1.tar.gz&lt;br /&gt;
 gcc-g++-3.4.5-20060117-1.tar.gz&lt;br /&gt;
&lt;br /&gt;
(It is also possible to get these packages seperately and extract them to C:\msys\mingw)&lt;br /&gt;
&lt;br /&gt;
==Configuring fstab==&lt;br /&gt;
&lt;br /&gt;
The folder C:\msys\etc contains the following file:&lt;br /&gt;
&lt;br /&gt;
 fstab.sample&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 fstab&lt;br /&gt;
&lt;br /&gt;
Open the file with a text editor and change the path value for the mingw mount point from:&lt;br /&gt;
&lt;br /&gt;
 c:/mingw to c:/msys/mingw&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Starting MSYS==&lt;br /&gt;
&lt;br /&gt;
The first time MSYS is started, a &amp;quot;home&amp;quot; folder is created, for example:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Installing additional packages=&lt;br /&gt;
&lt;br /&gt;
The following packages are required for building VLC&lt;br /&gt;
&lt;br /&gt;
* Wget&lt;br /&gt;
* Iconv&lt;br /&gt;
* Gettext&lt;br /&gt;
* MinGW utils&lt;br /&gt;
* Libtool&lt;br /&gt;
* Autoconf&lt;br /&gt;
* Automake&lt;br /&gt;
* Zip&lt;br /&gt;
* Coreutils&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==WGet==&lt;br /&gt;
&lt;br /&gt;
Wget is required for building from the &amp;quot;extras/contrib&amp;quot; or mingwPORT packages.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/wget-1.9.1-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Although this is a mingwPORT package it already has a precompiled wget on board.&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 wget.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Iconv (GNU libiconv)==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libiconv-1.8.0-2003.02.01-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into the default destination Folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Updating Iconv===&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libiconv-1.10-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd libiconv-1.10-mingwPORT/libiconv-1.10/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/libiconv-1.10&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
NOTE: For some unknown reason usage of Iconv fails when 1.10 is installed directly without having installed 1.8.0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Gettext==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/gettext-0.11.5-2003.02.01-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into the default destination Folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MinGW Utils==&lt;br /&gt;
&lt;br /&gt;
The unix2dos tool from this package is required during the &amp;quot;make package&amp;quot; process of VLC for some conversion of txt files.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.gz file. it contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 unix2dos.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Libtool==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libtool-1.5.22-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd libtool-1.5.22-mingwPORT/libtool-1.5.22/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/libtool-1.5.22&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Autoconf==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/autoconf-2.59-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd autoconf-2.59-mingwPORT/autoconf-2.59/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/autoconf-2.59&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating autoconf from contrib==&lt;br /&gt;
&lt;br /&gt;
VLC 0.8.6 and later (including 0.9.0 svn/development) require an autoconf version&lt;br /&gt;
of 2.60 or greater.&lt;br /&gt;
&lt;br /&gt;
If during the configure process the following msg appears it&#039;s time to update:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Hey, your autoconf is quite old. Update it&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Open your MSYS shell:&lt;br /&gt;
&lt;br /&gt;
 cd vlc-trunk/extras/contrib&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
&lt;br /&gt;
 cd src&lt;br /&gt;
&lt;br /&gt;
 make .autoconf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Automake==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/automake-1.9.5-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd automake-1.9.5-mingwPORT/automake-1.9.5/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/automake-1.9.5&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Zip==&lt;br /&gt;
&lt;br /&gt;
Zip is required for making .zip packages...&lt;br /&gt;
&lt;br /&gt;
http://www.info-zip.org/&lt;br /&gt;
&lt;br /&gt;
ftp://ftp.info-zip.org/pub/infozip/WIN32/zip232xN.zip&lt;br /&gt;
&lt;br /&gt;
Extract the .zip. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 zip.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Coreutils==&lt;br /&gt;
&lt;br /&gt;
The whoami tool from this package is required for &amp;quot;svn builds&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. it contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 whoami.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Optional packages=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GDB (optional)==&lt;br /&gt;
&lt;br /&gt;
GDB is used for debugging purposes.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe&lt;br /&gt;
&lt;br /&gt;
Perform an installation into the folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==ZLib (optional)==&lt;br /&gt;
&lt;br /&gt;
Zlib is a required package in combination with the Gpac package for .avs and&lt;br /&gt;
.mp4 output support when building the x264 library.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/zlib-1.2.3-mingwPORT-1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd zlib-1.2.3-mingwPORT/zlib-1.2.3/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/zlib-1.2.3&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
 Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating SDL from mingwPORT (optional)==&lt;br /&gt;
&lt;br /&gt;
SDL support is required when building ffplay from the FFmpeg package.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/SDL-1.2.8-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\SDL-1.2.8-mingwPORT (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd SDL-1.2.8-minwPORT/SDL-1.2.8/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/SDL-1.2.8&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into /usr/local/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Updating SDL (optional)===&lt;br /&gt;
&lt;br /&gt;
http://www.libsdl.org/release/SDL-1.2.11.tar.gz&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.gz file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\SDL-1.2.11 (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd SDL-1.2.11&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into /usr/local/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Nasm (optional)==&lt;br /&gt;
&lt;br /&gt;
The Netwide assembler (nasm) is required for building the x264 library.&lt;br /&gt;
&lt;br /&gt;
http://sourceforge.net/project/showfiles.php?group_id=6208&lt;br /&gt;
&lt;br /&gt;
Download the latest win32 binaries:&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/nasm/nasm-0.98.39-win32.zip?download&lt;br /&gt;
&lt;br /&gt;
Extract the .zip. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 nasmw.exe&lt;br /&gt;
&lt;br /&gt;
Rename the file to nasm.exe and copy it to the following location:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GPAC (optional)==&lt;br /&gt;
&lt;br /&gt;
GPAC is required for building the x264 library with mp4 output support.&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cvs -z3 -d:pserver:anonymous@gpac.cvs.sourceforge.net:/cvsroot/gpac co -P gpac&lt;br /&gt;
&lt;br /&gt;
This will download the latest GPAC version from CVS.&lt;br /&gt;
&lt;br /&gt;
 cd gpac&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make install-lib&lt;br /&gt;
&lt;br /&gt;
TODO: copy GPAC files to appropriate folder automagically.&lt;br /&gt;
&lt;br /&gt;
==x264 (optional)==&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 svn co svn://svn.videolan.org/x264/trunk x264-trunk&lt;br /&gt;
&lt;br /&gt;
 cd x264-trunk&lt;br /&gt;
&lt;br /&gt;
For generic purposes:&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For VLC:&lt;br /&gt;
&lt;br /&gt;
 ./configure --prefix=/usr/win32&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will copy the appropriate libs and .h to the prefix folder which will also be used by VLC for building the contrib&lt;br /&gt;
&lt;br /&gt;
For compiling &amp;quot;stand-alone with mp4 output support&amp;quot; (this requires GPAC):&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mp4-output&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
If you wish to compile FFmpeg stand-alone with x264 support then also do this&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will copy the appropriate libs and .h files to the default /usr/lib and /usr/include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FFmpeg (optional)==&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 svn co svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg-trunk&lt;br /&gt;
&lt;br /&gt;
 cd ffmpeg-trunk&lt;br /&gt;
&lt;br /&gt;
For generic purposes:&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --enable-gpl --enable-pp&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For compiling with x264 support:&lt;br /&gt;
&lt;br /&gt;
(This assumes you did a &amp;quot;make install&amp;quot; for x264 which will have copied the appropriate lib and .h files into lib/include).&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --extra-cflags=-I/usr/local/include \&lt;br /&gt;
    --extra-ldflags=-L/usr/local/lib \&lt;br /&gt;
    --enable-gpl --enable-pp --enable-x264&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For compiling into VLC:&lt;br /&gt;
&lt;br /&gt;
(This does not need x264 lib in FFmpeg since VLC uses that directly, also prefix and extra flags are used to point to the &amp;quot;contrib&amp;quot; folder):&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --extra-cflags=-I/usr/win32/include \&lt;br /&gt;
    --extra-ldflags=-L/usr/win32/lib \&lt;br /&gt;
    --prefix=/usr/win32 \&lt;br /&gt;
    --enable-faac --enable-mp3lame --enable-gpl --enable-pp&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install-libs install-headers&lt;br /&gt;
&lt;br /&gt;
This will copy all the appropriate libs and .h files into usr/win32/include and lib so they can be used by VLC compilation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=FAQ=&lt;br /&gt;
&lt;br /&gt;
Various troubleshooting issues..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Make .qt4 from extras/contrib==&lt;br /&gt;
&lt;br /&gt;
Fails on:&lt;br /&gt;
&lt;br /&gt;
 checking for libmpeg2.a in /home/Administrator/vlc-trunk/./extras/contrib/src/mpeg2dec... no&lt;br /&gt;
 configure: error: cannot cd to /home/Administrator/vlc-trunk/./extras/contrib/src/mpeg2dec&lt;br /&gt;
&lt;br /&gt;
Workaround: configure with &lt;br /&gt;
 &lt;br /&gt;
 --without-contrib&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Make package-win32-zip==&lt;br /&gt;
&lt;br /&gt;
Fails on:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;s%share/osdmenu%osdmenu%g&#039; ./vlc-0.9.0-svn/osdmenu/*.cfg&lt;br /&gt;
 sed: invalid option -- i&lt;br /&gt;
&lt;br /&gt;
Workaround: compile sed 4.09 (any newer versions fail to compile on missing alloca)&lt;br /&gt;
&lt;br /&gt;
ftp://ftp.gnu.org/pub/gnu/sed/sed-4.0.9.tar.gz&lt;br /&gt;
&lt;br /&gt;
use the newer sed version in c:\msys\mingw\bin and rename the old one to sed3.exe or something&lt;br /&gt;
&lt;br /&gt;
ONLY use the 4.09 sed to do a make package-win32-zip, it will fail to compile VLC source&lt;br /&gt;
(so after it finishes, you have to copy the old version back again).&lt;br /&gt;
&lt;br /&gt;
So in conclusion:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip fails with sed 3.02 on -i&lt;br /&gt;
 make autoconf fails with sed 4.09 on -E&lt;br /&gt;
 sed 4.10+ requires glib&lt;br /&gt;
 glib requires pkgconfig but pkgconfig requires glib?!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Warnings during configure==&lt;br /&gt;
&lt;br /&gt;
Using contrib from 20061015 still a lot of warnings during configure:&lt;br /&gt;
&lt;br /&gt;
 checking dynamic linker characteristics... ./configure: line 14697: f77: command not found&lt;br /&gt;
 ./configure: line 14825: f77: command not found&lt;br /&gt;
&lt;br /&gt;
 configure: WARNING: libshout library not found&lt;br /&gt;
 configure: WARNING: MusicBrainz library not found&lt;br /&gt;
 configure: WARNING: CD Reading and information library not found&lt;br /&gt;
 configure: WARNING: VCD information library not found&lt;br /&gt;
 configure: WARNING: new enough libcddb not found. CDDB access disabled&lt;br /&gt;
&lt;br /&gt;
 checking for mpcdec/mpcdec.h... yes&lt;br /&gt;
 configure: WARNING: only static linking is available, you must provide a gme-tree&lt;br /&gt;
&lt;br /&gt;
 ./configure: line 54814: --exists: command not found&lt;br /&gt;
&lt;br /&gt;
 configure: WARNING: Probe disc disabled because ok libcdio library not found&lt;br /&gt;
 configure: WARNING: VCD information on Probe disc disabled because ok&lt;br /&gt;
 libvcdinfo not found&lt;br /&gt;
 configure: WARNING: QT4 library not found&lt;br /&gt;
 configure: WARNING: DAAP library not found&lt;br /&gt;
 configure: WARNING: avahi-client library not found&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Can not write to output file with unix2dos==&lt;br /&gt;
&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/AUTHORS.txt to DOS format ...&lt;br /&gt;
 unix2dos: can not write to output file&lt;br /&gt;
 unix2dos: problems converting file ./vlc-0.9.0-svn/AUTHORS.txt&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/MAINTAINERS.txt to DOS format ...&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/THANKS.txt to DOS format ...&lt;br /&gt;
 unix2dos: can not write to output file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Version=&lt;br /&gt;
&lt;br /&gt;
20060926 Initial version&lt;br /&gt;
&lt;br /&gt;
20060928 Reworked layout&lt;br /&gt;
&lt;br /&gt;
20061011 Added troubleshooting section&lt;br /&gt;
&lt;br /&gt;
20061119 Added FFmpeg and x264. Removed unicode warning from troubleshooting&lt;br /&gt;
&lt;br /&gt;
20070113 WIKI version&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:Coding]]&lt;/div&gt;</summary>
		<author><name>Memo</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSOld&amp;diff=9874</id>
		<title>Win32CompileMSYSOld</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSOld&amp;diff=9874"/>
		<updated>2007-09-14T12:13:18Z</updated>

		<summary type="html">&lt;p&gt;Memo: /* MinGW */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MSYS/MinGW environment for Windows from http://developers.videolan.org/vlc/msys-compile.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TODO: GPAC, NSIS, PKG-Config, more than just setting up the environment...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
THIS ARTICLE IS UNDER CONSTRUCTION!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=MSYS/MinGW environment=&lt;br /&gt;
&lt;br /&gt;
Setting up a working MSYS/MinGW environment requires the following:&lt;br /&gt;
&lt;br /&gt;
* MSYS installation&lt;br /&gt;
* Updating MSYS&lt;br /&gt;
* MSYS DTK (Developer Tool Kit)&lt;br /&gt;
* Updating bash (shell)&lt;br /&gt;
* MinGW installation&lt;br /&gt;
* Configuration of fstab&lt;br /&gt;
* Creation of home folder&lt;br /&gt;
&lt;br /&gt;
Note that the following generic resource locations were used to download the appropriate packages (and more recent versions might be obtained from here):&lt;br /&gt;
&lt;br /&gt;
[http://prdownloads.sourceforge.net/mingw MSYS/MinGW related]&lt;br /&gt;
&lt;br /&gt;
[http://prdownloads.sourceforge.net/nasm nasm]&lt;br /&gt;
&lt;br /&gt;
[http://www.libsdl.org SDL]&lt;br /&gt;
&lt;br /&gt;
[http://www.info-zip.org zip]&lt;br /&gt;
&lt;br /&gt;
[http://pkgconfig.freedesktop.org/releases pkg-config]&lt;br /&gt;
&lt;br /&gt;
[ftp://ftp.gnu.org/pub/gnu/sed sed]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Minimal SYStem (MSYS) installation==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MSYS-1.0.11-2004.04.30-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into C:\msys&lt;br /&gt;
&lt;br /&gt;
Do not continue with the post install (this will be done later).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Update MSYS==&lt;br /&gt;
&lt;br /&gt;
Update MSYS to a more recent version&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MSYS-1.0.11-20060807.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file, it contains the following files:&lt;br /&gt;
&lt;br /&gt;
 mount.exe&lt;br /&gt;
 msys-1.0.dll&lt;br /&gt;
 ps.exe&lt;br /&gt;
&lt;br /&gt;
Copy the files to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
This will overwrite/update the version(s) used in MSYS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MSYS DTK (Developer Tool Kit)==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into C:\msys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating BASH==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/bash-3.1-MSYS-1.0.11-snapshot.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file, in the bin subfolder it contains the following files:&lt;br /&gt;
&lt;br /&gt;
 bash.exe&lt;br /&gt;
 sh.exe&lt;br /&gt;
&lt;br /&gt;
Copy the files to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
This will overwrite/update the sh.exe version used in MSYS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MinGW==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MinGW-5.0.3.exe&lt;br /&gt;
&lt;br /&gt;
Select the download option.&lt;br /&gt;
&lt;br /&gt;
Do not install with &amp;quot;Current&amp;quot; MinGW packages but select &amp;quot;Candidate&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Select the following components to install:&lt;br /&gt;
&lt;br /&gt;
 MinGW base tools (autoselected)&lt;br /&gt;
 g++ compiler&lt;br /&gt;
&lt;br /&gt;
Then installation will finish downloading automatically.&lt;br /&gt;
&lt;br /&gt;
Run MinGW-5.0.3.exe again and select the download and install option to restart the installation. &lt;br /&gt;
&lt;br /&gt;
Perform the installation into the default destination:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
The following versions (or possibly newer) of the candidate packages will be&lt;br /&gt;
downloaded and installed:&lt;br /&gt;
&lt;br /&gt;
 mingw-runtime-3.10.tar.gz&lt;br /&gt;
 w32api-3.7.tar.gz&lt;br /&gt;
 binutils-2.16.91-20060119-1.tar.gz&lt;br /&gt;
 gcc-core-3.4.5-20060117-1.tar.gz&lt;br /&gt;
 gcc-g++-3.4.5-20060117-1.tar.gz&lt;br /&gt;
&lt;br /&gt;
(It is also possible to get these packages seperately and extract them to C:\msys\mingw)&lt;br /&gt;
&lt;br /&gt;
==Configuring fstab==&lt;br /&gt;
&lt;br /&gt;
The folder C:\msys\etc contains the following file:&lt;br /&gt;
&lt;br /&gt;
 fstab.sample&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 fstab&lt;br /&gt;
&lt;br /&gt;
Open the file with a text editor and change the path value for the mingw mount point from:&lt;br /&gt;
&lt;br /&gt;
 c:/mingw to c:/msys/mingw&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Starting MSYS==&lt;br /&gt;
&lt;br /&gt;
The first time MSYS is started, a &amp;quot;home&amp;quot; folder is created, for example:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Installing additional packages=&lt;br /&gt;
&lt;br /&gt;
The following packages are required for building VLC&lt;br /&gt;
&lt;br /&gt;
* Wget&lt;br /&gt;
* Iconv&lt;br /&gt;
* Gettext&lt;br /&gt;
* MinGW utils&lt;br /&gt;
* Libtool&lt;br /&gt;
* Autoconf&lt;br /&gt;
* Automake&lt;br /&gt;
* Zip&lt;br /&gt;
* Coreutils&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==WGet==&lt;br /&gt;
&lt;br /&gt;
Wget is required for building from the &amp;quot;extras/contrib&amp;quot; or mingwPORT packages.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/wget-1.9.1-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Although this is a mingwPORT package it already has a precompiled wget on board.&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 wget.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Iconv (GNU libiconv)==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libiconv-1.8.0-2003.02.01-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into the default destination Folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Updating Iconv===&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libiconv-1.10-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd libiconv-1.10-mingwPORT/libiconv-1.10/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/libiconv-1.10&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
NOTE: For some unknown reason usage of Iconv fails when 1.10 is installed directly without having installed 1.8.0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Gettext==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/gettext-0.11.5-2003.02.01-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into the default destination Folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MinGW Utils==&lt;br /&gt;
&lt;br /&gt;
The unix2dos tool from this package is required during the &amp;quot;make package&amp;quot; process of VLC for some conversion of txt files.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.gz file. it contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 unix2dos.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Libtool==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libtool-1.5.22-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd libtool-1.5.22-mingwPORT/libtool-1.5.22/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/libtool-1.5.22&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Autoconf==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/autoconf-2.59-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd autoconf-2.59-mingwPORT/autoconf-2.59/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/autoconf-2.59&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating autoconf from contrib==&lt;br /&gt;
&lt;br /&gt;
VLC 0.8.6 and later (including 0.9.0 svn/development) require an autoconf version&lt;br /&gt;
of 2.60 or greater.&lt;br /&gt;
&lt;br /&gt;
If during the configure process the following msg appears it&#039;s time to update:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Hey, your autoconf is quite old. Update it&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Open your MSYS shell:&lt;br /&gt;
&lt;br /&gt;
 cd vlc-trunk/extras/contrib&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
&lt;br /&gt;
 cd src&lt;br /&gt;
&lt;br /&gt;
 make .autoconf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Automake==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/automake-1.9.5-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd automake-1.9.5-mingwPORT/automake-1.9.5/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/automake-1.9.5&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Zip==&lt;br /&gt;
&lt;br /&gt;
Zip is required for making .zip packages...&lt;br /&gt;
&lt;br /&gt;
http://www.info-zip.org/&lt;br /&gt;
&lt;br /&gt;
ftp://ftp.info-zip.org/pub/infozip/WIN32/zip232xN.zip&lt;br /&gt;
&lt;br /&gt;
Extract the .zip. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 zip.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Coreutils==&lt;br /&gt;
&lt;br /&gt;
The whoami tool from this package is required for &amp;quot;svn builds&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. it contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 whoami.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Optional packages=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GDB (optional)==&lt;br /&gt;
&lt;br /&gt;
GDB is used for debugging purposes.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe&lt;br /&gt;
&lt;br /&gt;
Perform an installation into the folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==ZLib (optional)==&lt;br /&gt;
&lt;br /&gt;
Zlib is a required package in combination with the Gpac package for .avs and&lt;br /&gt;
.mp4 output support when building the x264 library.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/zlib-1.2.3-mingwPORT-1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd zlib-1.2.3-mingwPORT/zlib-1.2.3/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/zlib-1.2.3&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
 Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating SDL from mingwPORT (optional)==&lt;br /&gt;
&lt;br /&gt;
SDL support is required when building ffplay from the FFmpeg package.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/SDL-1.2.8-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\SDL-1.2.8-mingwPORT (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd SDL-1.2.8-minwPORT/SDL-1.2.8/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/SDL-1.2.8&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into /usr/local/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Updating SDL (optional)===&lt;br /&gt;
&lt;br /&gt;
http://www.libsdl.org/release/SDL-1.2.11.tar.gz&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.gz file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\SDL-1.2.11 (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd SDL-1.2.11&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into /usr/local/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Nasm (optional)==&lt;br /&gt;
&lt;br /&gt;
The Netwide assembler (nasm) is required for building the x264 library.&lt;br /&gt;
&lt;br /&gt;
http://sourceforge.net/project/showfiles.php?group_id=6208&lt;br /&gt;
&lt;br /&gt;
Download the latest win32 binaries:&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/nasm/nasm-0.98.39-win32.zip?download&lt;br /&gt;
&lt;br /&gt;
Extract the .zip. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 nasmw.exe&lt;br /&gt;
&lt;br /&gt;
Rename the file to nasm.exe and copy it to the following location:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GPAC (optional)==&lt;br /&gt;
&lt;br /&gt;
GPAC is required for building the x264 library with mp4 output support.&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cvs -z3 -d:pserver:anonymous@gpac.cvs.sourceforge.net:/cvsroot/gpac co -P gpac&lt;br /&gt;
&lt;br /&gt;
This will download the latest GPAC version from CVS.&lt;br /&gt;
&lt;br /&gt;
 cd gpac&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make install-lib&lt;br /&gt;
&lt;br /&gt;
TODO: copy GPAC files to appropriate folder automagically.&lt;br /&gt;
&lt;br /&gt;
==x264 (optional)==&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 svn co svn://svn.videolan.org/x264/trunk x264-trunk&lt;br /&gt;
&lt;br /&gt;
 cd x264-trunk&lt;br /&gt;
&lt;br /&gt;
For generic purposes:&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For VLC:&lt;br /&gt;
&lt;br /&gt;
 ./configure --prefix=/usr/win32&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will copy the appropriate libs and .h to the prefix folder which will also be used by VLC for building the contrib&lt;br /&gt;
&lt;br /&gt;
For compiling &amp;quot;stand-alone with mp4 output support&amp;quot; (this requires GPAC):&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mp4-output&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
If you wish to compile FFmpeg stand-alone with x264 support then also do this&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will copy the appropriate libs and .h files to the default /usr/lib and /usr/include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FFmpeg (optional)==&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 svn co svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg-trunk&lt;br /&gt;
&lt;br /&gt;
 cd ffmpeg-trunk&lt;br /&gt;
&lt;br /&gt;
For generic purposes:&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --enable-gpl --enable-pp&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For compiling with x264 support:&lt;br /&gt;
&lt;br /&gt;
(This assumes you did a &amp;quot;make install&amp;quot; for x264 which will have copied the appropriate lib and .h files into lib/include).&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --extra-cflags=-I/usr/local/include \&lt;br /&gt;
    --extra-ldflags=-L/usr/local/lib \&lt;br /&gt;
    --enable-gpl --enable-pp --enable-x264&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For compiling into VLC:&lt;br /&gt;
&lt;br /&gt;
(This does not need x264 lib in FFmpeg since VLC uses that directly, also prefix and extra flags are used to point to the &amp;quot;contrib&amp;quot; folder):&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --extra-cflags=-I/usr/win32/include \&lt;br /&gt;
    --extra-ldflags=-L/usr/win32/lib \&lt;br /&gt;
    --prefix=/usr/win32 \&lt;br /&gt;
    --enable-faac --enable-mp3lame --enable-gpl --enable-pp&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install-libs install-headers&lt;br /&gt;
&lt;br /&gt;
This will copy all the appropriate libs and .h files into usr/win32/include and lib so they can be used by VLC compilation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=FAQ=&lt;br /&gt;
&lt;br /&gt;
Various troubleshooting issues..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Make .qt4 from extras/contrib==&lt;br /&gt;
&lt;br /&gt;
Fails on:&lt;br /&gt;
&lt;br /&gt;
 checking for libmpeg2.a in /home/Administrator/vlc-trunk/./extras/contrib/src/mpeg2dec... no&lt;br /&gt;
 configure: error: cannot cd to /home/Administrator/vlc-trunk/./extras/contrib/src/mpeg2dec&lt;br /&gt;
&lt;br /&gt;
Workaround: configure with &lt;br /&gt;
 &lt;br /&gt;
 --without-contrib&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Make package-win32-zip==&lt;br /&gt;
&lt;br /&gt;
Fails on:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;s%share/osdmenu%osdmenu%g&#039; ./vlc-0.9.0-svn/osdmenu/*.cfg&lt;br /&gt;
 sed: invalid option -- i&lt;br /&gt;
&lt;br /&gt;
Workaround: compile sed 4.09 (any newer versions fail to compile on missing alloca)&lt;br /&gt;
&lt;br /&gt;
ftp://ftp.gnu.org/pub/gnu/sed/sed-4.0.9.tar.gz&lt;br /&gt;
&lt;br /&gt;
use the newer sed version in c:\msys\mingw\bin and rename the old one to sed3.exe or something&lt;br /&gt;
&lt;br /&gt;
ONLY use the 4.09 sed to do a make package-win32-zip, it will fail to compile VLC source&lt;br /&gt;
(so after it finishes, you have to copy the old version back again).&lt;br /&gt;
&lt;br /&gt;
So in conclusion:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip fails with sed 3.02 on -i&lt;br /&gt;
 make autoconf fails with sed 4.09 on -E&lt;br /&gt;
 sed 4.10+ requires glib&lt;br /&gt;
 glib requires pkgconfig but pkgconfig requires glib?!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Warnings during configure==&lt;br /&gt;
&lt;br /&gt;
Using contrib from 20061015 still a lot of warnings during configure:&lt;br /&gt;
&lt;br /&gt;
 checking dynamic linker characteristics... ./configure: line 14697: f77: command not found&lt;br /&gt;
 ./configure: line 14825: f77: command not found&lt;br /&gt;
&lt;br /&gt;
 configure: WARNING: libshout library not found&lt;br /&gt;
 configure: WARNING: MusicBrainz library not found&lt;br /&gt;
 configure: WARNING: CD Reading and information library not found&lt;br /&gt;
 configure: WARNING: VCD information library not found&lt;br /&gt;
 configure: WARNING: new enough libcddb not found. CDDB access disabled&lt;br /&gt;
&lt;br /&gt;
 checking for mpcdec/mpcdec.h... yes&lt;br /&gt;
 configure: WARNING: only static linking is available, you must provide a gme-tree&lt;br /&gt;
&lt;br /&gt;
 ./configure: line 54814: --exists: command not found&lt;br /&gt;
&lt;br /&gt;
 configure: WARNING: Probe disc disabled because ok libcdio library not found&lt;br /&gt;
 configure: WARNING: VCD information on Probe disc disabled because ok&lt;br /&gt;
 libvcdinfo not found&lt;br /&gt;
 configure: WARNING: QT4 library not found&lt;br /&gt;
 configure: WARNING: DAAP library not found&lt;br /&gt;
 configure: WARNING: avahi-client library not found&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Can not write to output file with unix2dos==&lt;br /&gt;
&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/AUTHORS.txt to DOS format ...&lt;br /&gt;
 unix2dos: can not write to output file&lt;br /&gt;
 unix2dos: problems converting file ./vlc-0.9.0-svn/AUTHORS.txt&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/MAINTAINERS.txt to DOS format ...&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/THANKS.txt to DOS format ...&lt;br /&gt;
 unix2dos: can not write to output file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Version=&lt;br /&gt;
&lt;br /&gt;
20060926 Initial version&lt;br /&gt;
&lt;br /&gt;
20060928 Reworked layout&lt;br /&gt;
&lt;br /&gt;
20061011 Added troubleshooting section&lt;br /&gt;
&lt;br /&gt;
20061119 Added FFmpeg and x264. Removed unicode warning from troubleshooting&lt;br /&gt;
&lt;br /&gt;
20070113 WIKI version&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:Coding]]&lt;/div&gt;</summary>
		<author><name>Memo</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSOld&amp;diff=9866</id>
		<title>Win32CompileMSYSOld</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSOld&amp;diff=9866"/>
		<updated>2007-09-12T03:40:51Z</updated>

		<summary type="html">&lt;p&gt;Memo: /* GPAC (optional) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MSYS/MinGW environment for Windows from http://developers.videolan.org/vlc/msys-compile.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TODO: GPAC, NSIS, PKG-Config, more than just setting up the environment...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
THIS ARTICLE IS UNDER CONSTRUCTION!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=MSYS/MinGW environment=&lt;br /&gt;
&lt;br /&gt;
Setting up a working MSYS/MinGW environment requires the following:&lt;br /&gt;
&lt;br /&gt;
* MSYS installation&lt;br /&gt;
* Updating MSYS&lt;br /&gt;
* MSYS DTK (Developer Tool Kit)&lt;br /&gt;
* Updating bash (shell)&lt;br /&gt;
* MinGW installation&lt;br /&gt;
* Configuration of fstab&lt;br /&gt;
* Creation of home folder&lt;br /&gt;
&lt;br /&gt;
Note that the following generic resource locations were used to download the appropriate packages (and more recent versions might be obtained from here):&lt;br /&gt;
&lt;br /&gt;
[http://prdownloads.sourceforge.net/mingw MSYS/MinGW related]&lt;br /&gt;
&lt;br /&gt;
[http://prdownloads.sourceforge.net/nasm nasm]&lt;br /&gt;
&lt;br /&gt;
[http://www.libsdl.org SDL]&lt;br /&gt;
&lt;br /&gt;
[http://www.info-zip.org zip]&lt;br /&gt;
&lt;br /&gt;
[http://pkgconfig.freedesktop.org/releases pkg-config]&lt;br /&gt;
&lt;br /&gt;
[ftp://ftp.gnu.org/pub/gnu/sed sed]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Minimal SYStem (MSYS) installation==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MSYS-1.0.11-2004.04.30-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into C:\msys&lt;br /&gt;
&lt;br /&gt;
Do not continue with the post install (this will be done later).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Update MSYS==&lt;br /&gt;
&lt;br /&gt;
Update MSYS to a more recent version&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MSYS-1.0.11-20060807.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file, it contains the following files:&lt;br /&gt;
&lt;br /&gt;
 mount.exe&lt;br /&gt;
 msys-1.0.dll&lt;br /&gt;
 ps.exe&lt;br /&gt;
&lt;br /&gt;
Copy the files to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
This will overwrite/update the version(s) used in MSYS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MSYS DTK (Developer Tool Kit)==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into C:\msys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating BASH==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/bash-3.1-MSYS-1.0.11-snapshot.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file, in the bin subfolder it contains the following files:&lt;br /&gt;
&lt;br /&gt;
 bash.exe&lt;br /&gt;
 sh.exe&lt;br /&gt;
&lt;br /&gt;
Copy the files to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
This will overwrite/update the sh.exe version used in MSYS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MinGW==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/MinGW-5.0.3.exe&lt;br /&gt;
&lt;br /&gt;
Select the download and install option.&lt;br /&gt;
&lt;br /&gt;
Do not install with &amp;quot;Current&amp;quot; MinGW packages but select &amp;quot;Candidate&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Select the following components to install:&lt;br /&gt;
&lt;br /&gt;
 MinGW base tools (autoselected)&lt;br /&gt;
 g++ compiler&lt;br /&gt;
&lt;br /&gt;
Perform the installation into the default destination:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
The following versions (or possibly newer) of the candidate packages will be&lt;br /&gt;
downloaded and installed:&lt;br /&gt;
&lt;br /&gt;
 mingw-runtime-3.10.tar.gz&lt;br /&gt;
 w32api-3.7.tar.gz&lt;br /&gt;
 binutils-2.16.91-20060119-1.tar.gz&lt;br /&gt;
 gcc-core-3.4.5-20060117-1.tar.gz&lt;br /&gt;
 gcc-g++-3.4.5-20060117-1.tar.gz&lt;br /&gt;
&lt;br /&gt;
(It is also possible to get these packages seperately and extract them to C:\msys\mingw)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuring fstab==&lt;br /&gt;
&lt;br /&gt;
The folder C:\msys\etc contains the following file:&lt;br /&gt;
&lt;br /&gt;
 fstab.sample&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 fstab&lt;br /&gt;
&lt;br /&gt;
Open the file with a text editor and change the path value for the mingw mount point from:&lt;br /&gt;
&lt;br /&gt;
 c:/mingw to c:/msys/mingw&lt;br /&gt;
&lt;br /&gt;
Save the file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Starting MSYS==&lt;br /&gt;
&lt;br /&gt;
The first time MSYS is started, a &amp;quot;home&amp;quot; folder is created, for example:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Installing additional packages=&lt;br /&gt;
&lt;br /&gt;
The following packages are required for building VLC&lt;br /&gt;
&lt;br /&gt;
* Wget&lt;br /&gt;
* Iconv&lt;br /&gt;
* Gettext&lt;br /&gt;
* MinGW utils&lt;br /&gt;
* Libtool&lt;br /&gt;
* Autoconf&lt;br /&gt;
* Automake&lt;br /&gt;
* Zip&lt;br /&gt;
* Coreutils&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==WGet==&lt;br /&gt;
&lt;br /&gt;
Wget is required for building from the &amp;quot;extras/contrib&amp;quot; or mingwPORT packages.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/wget-1.9.1-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Although this is a mingwPORT package it already has a precompiled wget on board.&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 wget.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Iconv (GNU libiconv)==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libiconv-1.8.0-2003.02.01-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into the default destination Folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Updating Iconv===&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libiconv-1.10-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd libiconv-1.10-mingwPORT/libiconv-1.10/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/libiconv-1.10&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
NOTE: For some unknown reason usage of Iconv fails when 1.10 is installed directly without having installed 1.8.0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Gettext==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/gettext-0.11.5-2003.02.01-1.exe&lt;br /&gt;
&lt;br /&gt;
Perform a basic installation into the default destination Folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MinGW Utils==&lt;br /&gt;
&lt;br /&gt;
The unix2dos tool from this package is required during the &amp;quot;make package&amp;quot; process of VLC for some conversion of txt files.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.gz file. it contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 unix2dos.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Libtool==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libtool-1.5.22-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd libtool-1.5.22-mingwPORT/libtool-1.5.22/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/libtool-1.5.22&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Autoconf==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/autoconf-2.59-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd autoconf-2.59-mingwPORT/autoconf-2.59/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/autoconf-2.59&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating autoconf from contrib==&lt;br /&gt;
&lt;br /&gt;
VLC 0.8.6 and later (including 0.9.0 svn/development) require an autoconf version&lt;br /&gt;
of 2.60 or greater.&lt;br /&gt;
&lt;br /&gt;
If during the configure process the following msg appears it&#039;s time to update:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Hey, your autoconf is quite old. Update it&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Open your MSYS shell:&lt;br /&gt;
&lt;br /&gt;
 cd vlc-trunk/extras/contrib&lt;br /&gt;
&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
&lt;br /&gt;
 cd src&lt;br /&gt;
&lt;br /&gt;
 make .autoconf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Automake==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/automake-1.9.5-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd automake-1.9.5-mingwPORT/automake-1.9.5/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/automake-1.9.5&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Zip==&lt;br /&gt;
&lt;br /&gt;
Zip is required for making .zip packages...&lt;br /&gt;
&lt;br /&gt;
http://www.info-zip.org/&lt;br /&gt;
&lt;br /&gt;
ftp://ftp.info-zip.org/pub/infozip/WIN32/zip232xN.zip&lt;br /&gt;
&lt;br /&gt;
Extract the .zip. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 zip.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Coreutils==&lt;br /&gt;
&lt;br /&gt;
The whoami tool from this package is required for &amp;quot;svn builds&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. it contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 whoami.exe&lt;br /&gt;
&lt;br /&gt;
Copy the file to:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Optional packages=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GDB (optional)==&lt;br /&gt;
&lt;br /&gt;
GDB is used for debugging purposes.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe&lt;br /&gt;
&lt;br /&gt;
Perform an installation into the folder&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==ZLib (optional)==&lt;br /&gt;
&lt;br /&gt;
Zlib is a required package in combination with the Gpac package for .avs and&lt;br /&gt;
.mp4 output support when building the x264 library.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/zlib-1.2.3-mingwPORT-1.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\Administrator (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd zlib-1.2.3-mingwPORT/zlib-1.2.3/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/zlib-1.2.3&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
 Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into c:/msys/mingw.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating SDL from mingwPORT (optional)==&lt;br /&gt;
&lt;br /&gt;
SDL support is required when building ffplay from the FFmpeg package.&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/SDL-1.2.8-mingwPORT.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.bz2 file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\SDL-1.2.8-mingwPORT (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd SDL-1.2.8-minwPORT/SDL-1.2.8/mingwPORT&lt;br /&gt;
&lt;br /&gt;
 mkdir -p /usr/src/SDL-1.2.8&lt;br /&gt;
&lt;br /&gt;
 ./mingwPORT.sh &lt;br /&gt;
&lt;br /&gt;
Follow the default installation.&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into /usr/local/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Updating SDL (optional)===&lt;br /&gt;
&lt;br /&gt;
http://www.libsdl.org/release/SDL-1.2.11.tar.gz&lt;br /&gt;
&lt;br /&gt;
Extract the .tar.gz file. Copy the contents into your home folder in MSYS&lt;br /&gt;
&lt;br /&gt;
 C:\msys\home\SDL-1.2.11 (example)&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd SDL-1.2.11&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
If all went well all the appropriate libraries should be installed/built and placed into /usr/local/lib.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Nasm (optional)==&lt;br /&gt;
&lt;br /&gt;
The Netwide assembler (nasm) is required for building the x264 library.&lt;br /&gt;
&lt;br /&gt;
http://sourceforge.net/project/showfiles.php?group_id=6208&lt;br /&gt;
&lt;br /&gt;
Download the latest win32 binaries:&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/nasm/nasm-0.98.39-win32.zip?download&lt;br /&gt;
&lt;br /&gt;
Extract the .zip. It contains the following file in the bin subfolder:&lt;br /&gt;
&lt;br /&gt;
 nasmw.exe&lt;br /&gt;
&lt;br /&gt;
Rename the file to nasm.exe and copy it to the following location:&lt;br /&gt;
&lt;br /&gt;
 C:\msys\mingw\bin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==GPAC (optional)==&lt;br /&gt;
&lt;br /&gt;
GPAC is required for building the x264 library with mp4 output support.&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 cvs -z3 -d:pserver:anonymous@gpac.cvs.sourceforge.net:/cvsroot/gpac co -P gpac&lt;br /&gt;
&lt;br /&gt;
This will download the latest GPAC version from CVS.&lt;br /&gt;
&lt;br /&gt;
 cd gpac&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make install-lib&lt;br /&gt;
&lt;br /&gt;
TODO: copy GPAC files to appropriate folder automagically.&lt;br /&gt;
&lt;br /&gt;
==x264 (optional)==&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 svn co svn://svn.videolan.org/x264/trunk x264-trunk&lt;br /&gt;
&lt;br /&gt;
 cd x264-trunk&lt;br /&gt;
&lt;br /&gt;
For generic purposes:&lt;br /&gt;
&lt;br /&gt;
 ./configure&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For VLC:&lt;br /&gt;
&lt;br /&gt;
 ./configure --prefix=/usr/win32&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will copy the appropriate libs and .h to the prefix folder which will also be used by VLC for building the contrib&lt;br /&gt;
&lt;br /&gt;
For compiling &amp;quot;stand-alone with mp4 output support&amp;quot; (this requires GPAC):&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mp4-output&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
If you wish to compile FFmpeg stand-alone with x264 support then also do this&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This will copy the appropriate libs and .h files to the default /usr/lib and /usr/include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FFmpeg (optional)==&lt;br /&gt;
&lt;br /&gt;
Start the MSYS shell and do the following commands:&lt;br /&gt;
&lt;br /&gt;
 svn co svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg-trunk&lt;br /&gt;
&lt;br /&gt;
 cd ffmpeg-trunk&lt;br /&gt;
&lt;br /&gt;
For generic purposes:&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --enable-gpl --enable-pp&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For compiling with x264 support:&lt;br /&gt;
&lt;br /&gt;
(This assumes you did a &amp;quot;make install&amp;quot; for x264 which will have copied the appropriate lib and .h files into lib/include).&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --extra-cflags=-I/usr/local/include \&lt;br /&gt;
    --extra-ldflags=-L/usr/local/lib \&lt;br /&gt;
    --enable-gpl --enable-pp --enable-x264&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
For compiling into VLC:&lt;br /&gt;
&lt;br /&gt;
(This does not need x264 lib in FFmpeg since VLC uses that directly, also prefix and extra flags are used to point to the &amp;quot;contrib&amp;quot; folder):&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-mingw32 --enable-memalign-hack \&lt;br /&gt;
    --extra-cflags=-I/usr/win32/include \&lt;br /&gt;
    --extra-ldflags=-L/usr/win32/lib \&lt;br /&gt;
    --prefix=/usr/win32 \&lt;br /&gt;
    --enable-faac --enable-mp3lame --enable-gpl --enable-pp&lt;br /&gt;
&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
 make install-libs install-headers&lt;br /&gt;
&lt;br /&gt;
This will copy all the appropriate libs and .h files into usr/win32/include and lib so they can be used by VLC compilation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=FAQ=&lt;br /&gt;
&lt;br /&gt;
Various troubleshooting issues..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Make .qt4 from extras/contrib==&lt;br /&gt;
&lt;br /&gt;
Fails on:&lt;br /&gt;
&lt;br /&gt;
 checking for libmpeg2.a in /home/Administrator/vlc-trunk/./extras/contrib/src/mpeg2dec... no&lt;br /&gt;
 configure: error: cannot cd to /home/Administrator/vlc-trunk/./extras/contrib/src/mpeg2dec&lt;br /&gt;
&lt;br /&gt;
Workaround: configure with &lt;br /&gt;
 &lt;br /&gt;
 --without-contrib&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Make package-win32-zip==&lt;br /&gt;
&lt;br /&gt;
Fails on:&lt;br /&gt;
&lt;br /&gt;
 sed -i &#039;s%share/osdmenu%osdmenu%g&#039; ./vlc-0.9.0-svn/osdmenu/*.cfg&lt;br /&gt;
 sed: invalid option -- i&lt;br /&gt;
&lt;br /&gt;
Workaround: compile sed 4.09 (any newer versions fail to compile on missing alloca)&lt;br /&gt;
&lt;br /&gt;
ftp://ftp.gnu.org/pub/gnu/sed/sed-4.0.9.tar.gz&lt;br /&gt;
&lt;br /&gt;
use the newer sed version in c:\msys\mingw\bin and rename the old one to sed3.exe or something&lt;br /&gt;
&lt;br /&gt;
ONLY use the 4.09 sed to do a make package-win32-zip, it will fail to compile VLC source&lt;br /&gt;
(so after it finishes, you have to copy the old version back again).&lt;br /&gt;
&lt;br /&gt;
So in conclusion:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip fails with sed 3.02 on -i&lt;br /&gt;
 make autoconf fails with sed 4.09 on -E&lt;br /&gt;
 sed 4.10+ requires glib&lt;br /&gt;
 glib requires pkgconfig but pkgconfig requires glib?!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Warnings during configure==&lt;br /&gt;
&lt;br /&gt;
Using contrib from 20061015 still a lot of warnings during configure:&lt;br /&gt;
&lt;br /&gt;
 checking dynamic linker characteristics... ./configure: line 14697: f77: command not found&lt;br /&gt;
 ./configure: line 14825: f77: command not found&lt;br /&gt;
&lt;br /&gt;
 configure: WARNING: libshout library not found&lt;br /&gt;
 configure: WARNING: MusicBrainz library not found&lt;br /&gt;
 configure: WARNING: CD Reading and information library not found&lt;br /&gt;
 configure: WARNING: VCD information library not found&lt;br /&gt;
 configure: WARNING: new enough libcddb not found. CDDB access disabled&lt;br /&gt;
&lt;br /&gt;
 checking for mpcdec/mpcdec.h... yes&lt;br /&gt;
 configure: WARNING: only static linking is available, you must provide a gme-tree&lt;br /&gt;
&lt;br /&gt;
 ./configure: line 54814: --exists: command not found&lt;br /&gt;
&lt;br /&gt;
 configure: WARNING: Probe disc disabled because ok libcdio library not found&lt;br /&gt;
 configure: WARNING: VCD information on Probe disc disabled because ok&lt;br /&gt;
 libvcdinfo not found&lt;br /&gt;
 configure: WARNING: QT4 library not found&lt;br /&gt;
 configure: WARNING: DAAP library not found&lt;br /&gt;
 configure: WARNING: avahi-client library not found&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Can not write to output file with unix2dos==&lt;br /&gt;
&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/AUTHORS.txt to DOS format ...&lt;br /&gt;
 unix2dos: can not write to output file&lt;br /&gt;
 unix2dos: problems converting file ./vlc-0.9.0-svn/AUTHORS.txt&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/MAINTAINERS.txt to DOS format ...&lt;br /&gt;
 unix2dos: converting file ./vlc-0.9.0-svn/THANKS.txt to DOS format ...&lt;br /&gt;
 unix2dos: can not write to output file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Version=&lt;br /&gt;
&lt;br /&gt;
20060926 Initial version&lt;br /&gt;
&lt;br /&gt;
20060928 Reworked layout&lt;br /&gt;
&lt;br /&gt;
20061011 Added troubleshooting section&lt;br /&gt;
&lt;br /&gt;
20061119 Added FFmpeg and x264. Removed unicode warning from troubleshooting&lt;br /&gt;
&lt;br /&gt;
20070113 WIKI version&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:Coding]]&lt;/div&gt;</summary>
		<author><name>Memo</name></author>
	</entry>
</feed>