<?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=Akzhan</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=Akzhan"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Akzhan/"/>
	<updated>2026-11-04T19:08:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15439</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15439"/>
		<updated>2010-01-19T13:41:38Z</updated>

		<summary type="html">&lt;p&gt;Akzhan: /* Notes from January 2010 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
MSYS is a helper environment for MinGW, the compiler chain for Windows based on GCC. It is the fastest way to build VLC natively on Windows.&lt;br /&gt;
&lt;br /&gt;
This howto was re-created by [[User:J-b|Jean-Baptiste Kempf]] and updated in  June 2009.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.4 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.4/MinGW-5.1.4.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard, selecting &amp;quot;Downloading and Install&amp;quot; and using the candidate release. Select gcc, g++ and MinGW make. It should download automatically:&lt;br /&gt;
*mingwrt-3.15&lt;br /&gt;
*w32api-3.12&lt;br /&gt;
*binutils-2.18&lt;br /&gt;
*gcc-core-3.4.5&lt;br /&gt;
*gcc-g++-3.4.5&lt;br /&gt;
*mingw32-make-3.81&lt;br /&gt;
&lt;br /&gt;
== Notes from December 2009 ==&lt;br /&gt;
&lt;br /&gt;
Currently the MinGW installer adds mingwrt-3.17 which is not compatible with the precompiled contribs mentioned below.  You should manually download and install 3.15 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/MinGW%20Runtime/mingwrt-3.15.2/mingwrt-3.15.2-mingw32-dev.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
The precompiled contribs also require gcc 4.2.1 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-core-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-g%2B%2B-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
After downloading and unpacking those two files you can switch MinGW to use the new version with&lt;br /&gt;
 mv /mingw/bin/c++.exe /mingw/bin/c++.345.exe&lt;br /&gt;
 mv /mingw/bin/g++.exe /mingw/bin/g++.345.exe&lt;br /&gt;
 mv /mingw/bin/gcc.exe /mingw/bin/gcc.345.exe&lt;br /&gt;
 mv /mingw/bin/g++-sjlj.exe /mingw/bin/g++.exe&lt;br /&gt;
 mv /mingw/bin/c++-sjlj.exe /mingw/bin/c++.exe&lt;br /&gt;
 mv /mingw/bin/gcc-sjlj.exe /mingw/bin/gcc.exe&lt;br /&gt;
&lt;br /&gt;
It also needs&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-core-4.4.0-mingw32-dll.tar.gz/download&lt;br /&gt;
to be installed otherwise there are warnings about a libgcc_s_dw2-1.dll missing when it comes to compiling the qt4 interface.&lt;br /&gt;
&lt;br /&gt;
== Notes from January 2010 ==&lt;br /&gt;
&lt;br /&gt;
Now You can build VLC using GCC 4.4.2 and mingw runtime 3.17 using minor patches:&lt;br /&gt;
* Before installing of MSys (after installing of latest mingw) rename MinGW/bin/mingw32-make.exe  to mingw/bin/make.exe. It will be renamed back by post install script.&lt;br /&gt;
* Install full GCC 4.4.2, and change MinGW\lib\gcc\mingw32\4.4.2\libstdc++.la (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;library_names=&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) due to bug in latest MinGW.&lt;br /&gt;
&lt;br /&gt;
== Install MSYS ==&lt;br /&gt;
&lt;br /&gt;
* Install 7-zip and Mozilla Firefox&lt;br /&gt;
* Install MSys 1.0.11-rc1 with the exe: http://sourceforge.net/project/downloading.php?group_id=2435&amp;amp;filename=MSYS-1.0.11.exe&lt;br /&gt;
 Accept Post Install: [y]&lt;br /&gt;
 MinGW Installed? :   [y]&lt;br /&gt;
 path to MinGW:       [c:/MinGW]&lt;br /&gt;
* Install MSys Developer Tooltkit: http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
=== AutoTools ===&lt;br /&gt;
&lt;br /&gt;
Update your autoconf, automake and libtool by downloading and installing them, keeping in mind that you need to extract the content of the usr folder in C:\Msys&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20autoconf/autoconf-2.63-1/autoconf-2.63-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20automake/automake-1.11-1/automake-1.11-1-msys-1.0.11-bin.tar.lzma/download &lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20libtool/libtool-2.2.7a-1/libtool-2.2.7a-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
You can also compile them according to:&lt;br /&gt;
* http://wiki.enlightenment.org/index.php/EFL_Windows_XP&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
== Install other tools ==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar.lzma&lt;br /&gt;
&lt;br /&gt;
Installing mingw-utils is recommended: http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
Installation of wget too: 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;
Extract the .tar.bz2 file. It contains wget.exe in the bin subfolder, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
=== Install Git and checkout VLC ===&lt;br /&gt;
&lt;br /&gt;
See [[Git_Windows]].&lt;br /&gt;
&lt;br /&gt;
You can also retrieve the source code from [http://www.videolan.org/vlc/download-sources.html VideoLAN Project: VLC media player source code]&lt;br /&gt;
&lt;br /&gt;
=== PKG-CONFIG ===&lt;br /&gt;
&lt;br /&gt;
pkg-config is a mess, this is not NEWS... And you cannot compile it from Windows because of a few bugs...&lt;br /&gt;
&lt;br /&gt;
Get Glib from GNOME: http://ftp.gnome.org/pub/GNOME/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip &lt;br /&gt;
Unzip it to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
Get PKG-CONFIG from GNOME: ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip&lt;br /&gt;
and ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-dev_0.23-3_win32.zip&lt;br /&gt;
Unzip them to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
== Contribs ==&lt;br /&gt;
&lt;br /&gt;
Take the precompiled contribs from:&lt;br /&gt;
 http://people.videolan.org/~jb/Contribs/&lt;br /&gt;
&lt;br /&gt;
Copy them in your ~&lt;br /&gt;
 tar xvjf contrib-20090813-win32-bin-gcc-4.2.1-sjlj-runtime-3.15.2-only.tar.bz2 -C /&lt;br /&gt;
 rm -v /usr/win32/bin/moc /usr/win32/bin/uic /usr/win32/bin/rcc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cp -v /usr/win32/share/aclocal/* m4/&lt;br /&gt;
 cp -v /usr/share/aclocal/* m4/&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH ./bootstrap&lt;br /&gt;
It should warn about gettext... Just ignore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure ==&lt;br /&gt;
&lt;br /&gt;
 sh extras/package/win32/configure-msys.sh&lt;br /&gt;
* If you downloaded a VLC source code tarball, retrieve &#039;&#039;configure-msys.sh&#039;&#039; and &#039;&#039;configure-common.sh&#039;&#039; from [[http://git.videolan.org/?p=vlc.git;a=summary vlc.git]] / extras / package / win32 /&lt;br /&gt;
* If Your user name starts from &amp;quot;u&amp;quot; or &amp;quot;x&amp;quot; characters, change config.h (double all backslashes in COMPILED_BY constant to avoid compilation errors) after configuring.&lt;br /&gt;
&lt;br /&gt;
== Compile ==&lt;br /&gt;
&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH make&lt;br /&gt;
If you have Cygwin and others tools installed, try using a shorter PATH inside MSYS shell i.e.&lt;br /&gt;
 $ echo $PATH&lt;br /&gt;
 .:/usr/local/bin:/mingw/bin:/bin&lt;br /&gt;
&lt;br /&gt;
==Creating self-contained packages==&lt;br /&gt;
&lt;br /&gt;
Once the compilation is done, build self-contained VLC packages with the following &amp;quot;make&amp;quot; commands:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-base&lt;br /&gt;
&lt;br /&gt;
(This will create a subdirectory named vlc-x.x.x with all the binaries &amp;quot;stripped&amp;quot; without any debugging symbols).&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip&lt;br /&gt;
&lt;br /&gt;
(Same as above but will package the directory in a zip file).&lt;br /&gt;
&lt;br /&gt;
 make package-win32&lt;br /&gt;
&lt;br /&gt;
(Same as above but will also create an auto-installer package. You will need to have NSIS installed in its default location for this to work).&lt;br /&gt;
&lt;br /&gt;
* If you have permissions problems running make package-*, chmod 777 -R the vlc folder.&lt;br /&gt;
* If you have permissions problems running vlc.exe after packaging, rename or delete vlc.exe.manifest&lt;br /&gt;
&lt;br /&gt;
== Random bootstrap, configure, and make errors ==&lt;br /&gt;
&lt;br /&gt;
There have been reports of random msys errors during bootstrap, configure, and make. They usually don&#039;t repeat themselves between runs. Rule out that your mingw-msys installation is at fault by building in windows safe mode. Even if this works, it may then be more practical to try a cross-compilation build.&lt;/div&gt;</summary>
		<author><name>Akzhan</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15430</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15430"/>
		<updated>2010-01-18T17:29:46Z</updated>

		<summary type="html">&lt;p&gt;Akzhan: /* Configure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
MSYS is a helper environment for MinGW, the compiler chain for Windows based on GCC. It is the fastest way to build VLC natively on Windows.&lt;br /&gt;
&lt;br /&gt;
This howto was re-created by [[User:J-b|Jean-Baptiste Kempf]] and updated in  June 2009.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.4 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.4/MinGW-5.1.4.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard, selecting &amp;quot;Downloading and Install&amp;quot; and using the candidate release. Select gcc, g++ and MinGW make. It should download automatically:&lt;br /&gt;
*mingwrt-3.15&lt;br /&gt;
*w32api-3.12&lt;br /&gt;
*binutils-2.18&lt;br /&gt;
*gcc-core-3.4.5&lt;br /&gt;
*gcc-g++-3.4.5&lt;br /&gt;
*mingw32-make-3.81&lt;br /&gt;
&lt;br /&gt;
== Notes from December 2009 ==&lt;br /&gt;
&lt;br /&gt;
Currently the MinGW installer adds mingwrt-3.17 which is not compatible with the precompiled contribs mentioned below.  You should manually download and install 3.15 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/MinGW%20Runtime/mingwrt-3.15.2/mingwrt-3.15.2-mingw32-dev.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
The precompiled contribs also require gcc 4.2.1 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-core-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-g%2B%2B-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
After downloading and unpacking those two files you can switch MinGW to use the new version with&lt;br /&gt;
 mv /mingw/bin/c++.exe /mingw/bin/c++.345.exe&lt;br /&gt;
 mv /mingw/bin/g++.exe /mingw/bin/g++.345.exe&lt;br /&gt;
 mv /mingw/bin/gcc.exe /mingw/bin/gcc.345.exe&lt;br /&gt;
 mv /mingw/bin/g++-sjlj.exe /mingw/bin/g++.exe&lt;br /&gt;
 mv /mingw/bin/c++-sjlj.exe /mingw/bin/c++.exe&lt;br /&gt;
 mv /mingw/bin/gcc-sjlj.exe /mingw/bin/gcc.exe&lt;br /&gt;
&lt;br /&gt;
It also needs&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-core-4.4.0-mingw32-dll.tar.gz/download&lt;br /&gt;
to be installed otherwise there are warnings about a libgcc_s_dw2-1.dll missing when it comes to compiling the qt4 interface.&lt;br /&gt;
&lt;br /&gt;
== Notes from January 2010 ==&lt;br /&gt;
&lt;br /&gt;
Now You can build VLC using GCC 4.4.0 and mingw runtime 3.17 using minor patches:&lt;br /&gt;
* Before installing of MSys (after installing of latest mingw) rename MinGW/bin/mingw32-make.exe  to mingw/bin/make.exe. It will be renamed back by post install script.&lt;br /&gt;
* Install full GCC 4.4.0 binaries, and change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;library_names=&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) due to bug in latest MinGW.&lt;br /&gt;
&lt;br /&gt;
== Install MSYS ==&lt;br /&gt;
&lt;br /&gt;
* Install 7-zip and Mozilla Firefox&lt;br /&gt;
* Install MSys 1.0.11-rc1 with the exe: http://sourceforge.net/project/downloading.php?group_id=2435&amp;amp;filename=MSYS-1.0.11.exe&lt;br /&gt;
 Accept Post Install: [y]&lt;br /&gt;
 MinGW Installed? :   [y]&lt;br /&gt;
 path to MinGW:       [c:/MinGW]&lt;br /&gt;
* Install MSys Developer Tooltkit: http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
=== AutoTools ===&lt;br /&gt;
&lt;br /&gt;
Update your autoconf, automake and libtool by downloading and installing them, keeping in mind that you need to extract the content of the usr folder in C:\Msys&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20autoconf/autoconf-2.63-1/autoconf-2.63-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20automake/automake-1.11-1/automake-1.11-1-msys-1.0.11-bin.tar.lzma/download &lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20libtool/libtool-2.2.7a-1/libtool-2.2.7a-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
You can also compile them according to:&lt;br /&gt;
* http://wiki.enlightenment.org/index.php/EFL_Windows_XP&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
== Install other tools ==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar.lzma&lt;br /&gt;
&lt;br /&gt;
Installing mingw-utils is recommended: http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
Installation of wget too: 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;
Extract the .tar.bz2 file. It contains wget.exe in the bin subfolder, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
=== Install Git and checkout VLC ===&lt;br /&gt;
&lt;br /&gt;
See [[Git_Windows]].&lt;br /&gt;
&lt;br /&gt;
You can also retrieve the source code from [http://www.videolan.org/vlc/download-sources.html VideoLAN Project: VLC media player source code]&lt;br /&gt;
&lt;br /&gt;
=== PKG-CONFIG ===&lt;br /&gt;
&lt;br /&gt;
pkg-config is a mess, this is not NEWS... And you cannot compile it from Windows because of a few bugs...&lt;br /&gt;
&lt;br /&gt;
Get Glib from GNOME: http://ftp.gnome.org/pub/GNOME/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip &lt;br /&gt;
Unzip it to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
Get PKG-CONFIG from GNOME: ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip&lt;br /&gt;
and ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-dev_0.23-3_win32.zip&lt;br /&gt;
Unzip them to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
== Contribs ==&lt;br /&gt;
&lt;br /&gt;
Take the precompiled contribs from:&lt;br /&gt;
 http://people.videolan.org/~jb/Contribs/&lt;br /&gt;
&lt;br /&gt;
Copy them in your ~&lt;br /&gt;
 tar xvjf contrib-20090813-win32-bin-gcc-4.2.1-sjlj-runtime-3.15.2-only.tar.bz2 -C /&lt;br /&gt;
 rm -v /usr/win32/bin/moc /usr/win32/bin/uic /usr/win32/bin/rcc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cp -v /usr/win32/share/aclocal/* m4/&lt;br /&gt;
 cp -v /usr/share/aclocal/* m4/&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH ./bootstrap&lt;br /&gt;
It should warn about gettext... Just ignore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure ==&lt;br /&gt;
&lt;br /&gt;
 sh extras/package/win32/configure-msys.sh&lt;br /&gt;
* If you downloaded a VLC source code tarball, retrieve &#039;&#039;configure-msys.sh&#039;&#039; and &#039;&#039;configure-common.sh&#039;&#039; from [[http://git.videolan.org/?p=vlc.git;a=summary vlc.git]] / extras / package / win32 /&lt;br /&gt;
* If Your user name starts from &amp;quot;u&amp;quot; or &amp;quot;x&amp;quot; characters, change config.h (double all backslashes in COMPILED_BY constant to avoid compilation errors) after configuring.&lt;br /&gt;
&lt;br /&gt;
== Compile ==&lt;br /&gt;
&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH make&lt;br /&gt;
If you have Cygwin and others tools installed, try using a shorter PATH inside MSYS shell i.e.&lt;br /&gt;
 $ echo $PATH&lt;br /&gt;
 .:/usr/local/bin:/mingw/bin:/bin&lt;br /&gt;
&lt;br /&gt;
==Creating self-contained packages==&lt;br /&gt;
&lt;br /&gt;
Once the compilation is done, build self-contained VLC packages with the following &amp;quot;make&amp;quot; commands:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-base&lt;br /&gt;
&lt;br /&gt;
(This will create a subdirectory named vlc-x.x.x with all the binaries &amp;quot;stripped&amp;quot; without any debugging symbols).&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip&lt;br /&gt;
&lt;br /&gt;
(Same as above but will package the directory in a zip file).&lt;br /&gt;
&lt;br /&gt;
 make package-win32&lt;br /&gt;
&lt;br /&gt;
(Same as above but will also create an auto-installer package. You will need to have NSIS installed in its default location for this to work).&lt;br /&gt;
&lt;br /&gt;
* If you have permissions problems running make package-*, chmod 777 -R the vlc folder.&lt;br /&gt;
* If you have permissions problems running vlc.exe after packaging, rename or delete vlc.exe.manifest&lt;br /&gt;
&lt;br /&gt;
== Random bootstrap, configure, and make errors ==&lt;br /&gt;
&lt;br /&gt;
There have been reports of random msys errors during bootstrap, configure, and make. They usually don&#039;t repeat themselves between runs. Rule out that your mingw-msys installation is at fault by building in windows safe mode. Even if this works, it may then be more practical to try a cross-compilation build.&lt;/div&gt;</summary>
		<author><name>Akzhan</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15429</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15429"/>
		<updated>2010-01-18T17:26:58Z</updated>

		<summary type="html">&lt;p&gt;Akzhan: Way to handle packaging bug.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
MSYS is a helper environment for MinGW, the compiler chain for Windows based on GCC. It is the fastest way to build VLC natively on Windows.&lt;br /&gt;
&lt;br /&gt;
This howto was re-created by [[User:J-b|Jean-Baptiste Kempf]] and updated in  June 2009.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.4 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.4/MinGW-5.1.4.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard, selecting &amp;quot;Downloading and Install&amp;quot; and using the candidate release. Select gcc, g++ and MinGW make. It should download automatically:&lt;br /&gt;
*mingwrt-3.15&lt;br /&gt;
*w32api-3.12&lt;br /&gt;
*binutils-2.18&lt;br /&gt;
*gcc-core-3.4.5&lt;br /&gt;
*gcc-g++-3.4.5&lt;br /&gt;
*mingw32-make-3.81&lt;br /&gt;
&lt;br /&gt;
== Notes from December 2009 ==&lt;br /&gt;
&lt;br /&gt;
Currently the MinGW installer adds mingwrt-3.17 which is not compatible with the precompiled contribs mentioned below.  You should manually download and install 3.15 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/MinGW%20Runtime/mingwrt-3.15.2/mingwrt-3.15.2-mingw32-dev.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
The precompiled contribs also require gcc 4.2.1 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-core-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-g%2B%2B-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
After downloading and unpacking those two files you can switch MinGW to use the new version with&lt;br /&gt;
 mv /mingw/bin/c++.exe /mingw/bin/c++.345.exe&lt;br /&gt;
 mv /mingw/bin/g++.exe /mingw/bin/g++.345.exe&lt;br /&gt;
 mv /mingw/bin/gcc.exe /mingw/bin/gcc.345.exe&lt;br /&gt;
 mv /mingw/bin/g++-sjlj.exe /mingw/bin/g++.exe&lt;br /&gt;
 mv /mingw/bin/c++-sjlj.exe /mingw/bin/c++.exe&lt;br /&gt;
 mv /mingw/bin/gcc-sjlj.exe /mingw/bin/gcc.exe&lt;br /&gt;
&lt;br /&gt;
It also needs&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-core-4.4.0-mingw32-dll.tar.gz/download&lt;br /&gt;
to be installed otherwise there are warnings about a libgcc_s_dw2-1.dll missing when it comes to compiling the qt4 interface.&lt;br /&gt;
&lt;br /&gt;
== Notes from January 2010 ==&lt;br /&gt;
&lt;br /&gt;
Now You can build VLC using GCC 4.4.0 and mingw runtime 3.17 using minor patches:&lt;br /&gt;
* Before installing of MSys (after installing of latest mingw) rename MinGW/bin/mingw32-make.exe  to mingw/bin/make.exe. It will be renamed back by post install script.&lt;br /&gt;
* Install full GCC 4.4.0 binaries, and change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;library_names=&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) due to bug in latest MinGW.&lt;br /&gt;
&lt;br /&gt;
== Install MSYS ==&lt;br /&gt;
&lt;br /&gt;
* Install 7-zip and Mozilla Firefox&lt;br /&gt;
* Install MSys 1.0.11-rc1 with the exe: http://sourceforge.net/project/downloading.php?group_id=2435&amp;amp;filename=MSYS-1.0.11.exe&lt;br /&gt;
 Accept Post Install: [y]&lt;br /&gt;
 MinGW Installed? :   [y]&lt;br /&gt;
 path to MinGW:       [c:/MinGW]&lt;br /&gt;
* Install MSys Developer Tooltkit: http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
=== AutoTools ===&lt;br /&gt;
&lt;br /&gt;
Update your autoconf, automake and libtool by downloading and installing them, keeping in mind that you need to extract the content of the usr folder in C:\Msys&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20autoconf/autoconf-2.63-1/autoconf-2.63-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20automake/automake-1.11-1/automake-1.11-1-msys-1.0.11-bin.tar.lzma/download &lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20libtool/libtool-2.2.7a-1/libtool-2.2.7a-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
You can also compile them according to:&lt;br /&gt;
* http://wiki.enlightenment.org/index.php/EFL_Windows_XP&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
== Install other tools ==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar.lzma&lt;br /&gt;
&lt;br /&gt;
Installing mingw-utils is recommended: http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
Installation of wget too: 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;
Extract the .tar.bz2 file. It contains wget.exe in the bin subfolder, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
=== Install Git and checkout VLC ===&lt;br /&gt;
&lt;br /&gt;
See [[Git_Windows]].&lt;br /&gt;
&lt;br /&gt;
You can also retrieve the source code from [http://www.videolan.org/vlc/download-sources.html VideoLAN Project: VLC media player source code]&lt;br /&gt;
&lt;br /&gt;
=== PKG-CONFIG ===&lt;br /&gt;
&lt;br /&gt;
pkg-config is a mess, this is not NEWS... And you cannot compile it from Windows because of a few bugs...&lt;br /&gt;
&lt;br /&gt;
Get Glib from GNOME: http://ftp.gnome.org/pub/GNOME/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip &lt;br /&gt;
Unzip it to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
Get PKG-CONFIG from GNOME: ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip&lt;br /&gt;
and ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-dev_0.23-3_win32.zip&lt;br /&gt;
Unzip them to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
== Contribs ==&lt;br /&gt;
&lt;br /&gt;
Take the precompiled contribs from:&lt;br /&gt;
 http://people.videolan.org/~jb/Contribs/&lt;br /&gt;
&lt;br /&gt;
Copy them in your ~&lt;br /&gt;
 tar xvjf contrib-20090813-win32-bin-gcc-4.2.1-sjlj-runtime-3.15.2-only.tar.bz2 -C /&lt;br /&gt;
 rm -v /usr/win32/bin/moc /usr/win32/bin/uic /usr/win32/bin/rcc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cp -v /usr/win32/share/aclocal/* m4/&lt;br /&gt;
 cp -v /usr/share/aclocal/* m4/&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH ./bootstrap&lt;br /&gt;
It should warn about gettext... Just ignore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure ==&lt;br /&gt;
&lt;br /&gt;
 sh extras/package/win32/configure-msys.sh&lt;br /&gt;
* If you downloaded a VLC source code tarball, retrieve &#039;&#039;configure-msys.sh&#039;&#039; and &#039;&#039;configure-common.sh&#039;&#039; from [[http://git.videolan.org/?p=vlc.git;a=summary vlc.git]] / extras / package / win32 /&lt;br /&gt;
* If Your user name starts from &amp;quot;u&amp;quot; or &amp;quot;x&amp;quot; characters, change config.h (double slash in COMPILED_BY constant).&lt;br /&gt;
&lt;br /&gt;
== Compile ==&lt;br /&gt;
&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH make&lt;br /&gt;
If you have Cygwin and others tools installed, try using a shorter PATH inside MSYS shell i.e.&lt;br /&gt;
 $ echo $PATH&lt;br /&gt;
 .:/usr/local/bin:/mingw/bin:/bin&lt;br /&gt;
&lt;br /&gt;
==Creating self-contained packages==&lt;br /&gt;
&lt;br /&gt;
Once the compilation is done, build self-contained VLC packages with the following &amp;quot;make&amp;quot; commands:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-base&lt;br /&gt;
&lt;br /&gt;
(This will create a subdirectory named vlc-x.x.x with all the binaries &amp;quot;stripped&amp;quot; without any debugging symbols).&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip&lt;br /&gt;
&lt;br /&gt;
(Same as above but will package the directory in a zip file).&lt;br /&gt;
&lt;br /&gt;
 make package-win32&lt;br /&gt;
&lt;br /&gt;
(Same as above but will also create an auto-installer package. You will need to have NSIS installed in its default location for this to work).&lt;br /&gt;
&lt;br /&gt;
* If you have permissions problems running make package-*, chmod 777 -R the vlc folder.&lt;br /&gt;
* If you have permissions problems running vlc.exe after packaging, rename or delete vlc.exe.manifest&lt;br /&gt;
&lt;br /&gt;
== Random bootstrap, configure, and make errors ==&lt;br /&gt;
&lt;br /&gt;
There have been reports of random msys errors during bootstrap, configure, and make. They usually don&#039;t repeat themselves between runs. Rule out that your mingw-msys installation is at fault by building in windows safe mode. Even if this works, it may then be more practical to try a cross-compilation build.&lt;/div&gt;</summary>
		<author><name>Akzhan</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15428</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15428"/>
		<updated>2010-01-18T17:06:05Z</updated>

		<summary type="html">&lt;p&gt;Akzhan: Change order of notes.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
MSYS is a helper environment for MinGW, the compiler chain for Windows based on GCC. It is the fastest way to build VLC natively on Windows.&lt;br /&gt;
&lt;br /&gt;
This howto was re-created by [[User:J-b|Jean-Baptiste Kempf]] and updated in  June 2009.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.4 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.4/MinGW-5.1.4.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard, selecting &amp;quot;Downloading and Install&amp;quot; and using the candidate release. Select gcc, g++ and MinGW make. It should download automatically:&lt;br /&gt;
*mingwrt-3.15&lt;br /&gt;
*w32api-3.12&lt;br /&gt;
*binutils-2.18&lt;br /&gt;
*gcc-core-3.4.5&lt;br /&gt;
*gcc-g++-3.4.5&lt;br /&gt;
*mingw32-make-3.81&lt;br /&gt;
&lt;br /&gt;
== Notes from December 2009 ==&lt;br /&gt;
&lt;br /&gt;
Currently the MinGW installer adds mingwrt-3.17 which is not compatible with the precompiled contribs mentioned below.  You should manually download and install 3.15 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/MinGW%20Runtime/mingwrt-3.15.2/mingwrt-3.15.2-mingw32-dev.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
The precompiled contribs also require gcc 4.2.1 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-core-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-g%2B%2B-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
After downloading and unpacking those two files you can switch MinGW to use the new version with&lt;br /&gt;
 mv /mingw/bin/c++.exe /mingw/bin/c++.345.exe&lt;br /&gt;
 mv /mingw/bin/g++.exe /mingw/bin/g++.345.exe&lt;br /&gt;
 mv /mingw/bin/gcc.exe /mingw/bin/gcc.345.exe&lt;br /&gt;
 mv /mingw/bin/g++-sjlj.exe /mingw/bin/g++.exe&lt;br /&gt;
 mv /mingw/bin/c++-sjlj.exe /mingw/bin/c++.exe&lt;br /&gt;
 mv /mingw/bin/gcc-sjlj.exe /mingw/bin/gcc.exe&lt;br /&gt;
&lt;br /&gt;
It also needs&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-core-4.4.0-mingw32-dll.tar.gz/download&lt;br /&gt;
to be installed otherwise there are warnings about a libgcc_s_dw2-1.dll missing when it comes to compiling the qt4 interface.&lt;br /&gt;
&lt;br /&gt;
== Notes from January 2010 ==&lt;br /&gt;
&lt;br /&gt;
Now You can build VLC using GCC 4.4.0 and mingw runtime 3.17 using minor patches:&lt;br /&gt;
* Before installing of MSys (after installing of latest mingw) rename MinGW/bin/mingw32-make.exe  to mingw/bin/make.exe. It will be renamed back by post install script.&lt;br /&gt;
* Install full GCC 4.4.0 binaries, and change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;library_names=&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) due to bug in latest MinGW.&lt;br /&gt;
&lt;br /&gt;
== Install MSYS ==&lt;br /&gt;
&lt;br /&gt;
* Install 7-zip and Mozilla Firefox&lt;br /&gt;
* Install MSys 1.0.11-rc1 with the exe: http://sourceforge.net/project/downloading.php?group_id=2435&amp;amp;filename=MSYS-1.0.11.exe&lt;br /&gt;
 Accept Post Install: [y]&lt;br /&gt;
 MinGW Installed? :   [y]&lt;br /&gt;
 path to MinGW:       [c:/MinGW]&lt;br /&gt;
* Install MSys Developer Tooltkit: http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
=== AutoTools ===&lt;br /&gt;
&lt;br /&gt;
Update your autoconf, automake and libtool by downloading and installing them, keeping in mind that you need to extract the content of the usr folder in C:\Msys&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20autoconf/autoconf-2.63-1/autoconf-2.63-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20automake/automake-1.11-1/automake-1.11-1-msys-1.0.11-bin.tar.lzma/download &lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20libtool/libtool-2.2.7a-1/libtool-2.2.7a-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
You can also compile them according to:&lt;br /&gt;
* http://wiki.enlightenment.org/index.php/EFL_Windows_XP&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
== Install other tools ==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar.lzma&lt;br /&gt;
&lt;br /&gt;
Installing mingw-utils is recommended: http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
Installation of wget too: 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;
Extract the .tar.bz2 file. It contains wget.exe in the bin subfolder, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
=== Install Git and checkout VLC ===&lt;br /&gt;
&lt;br /&gt;
See [[Git_Windows]].&lt;br /&gt;
&lt;br /&gt;
You can also retrieve the source code from [http://www.videolan.org/vlc/download-sources.html VideoLAN Project: VLC media player source code]&lt;br /&gt;
&lt;br /&gt;
=== PKG-CONFIG ===&lt;br /&gt;
&lt;br /&gt;
pkg-config is a mess, this is not NEWS... And you cannot compile it from Windows because of a few bugs...&lt;br /&gt;
&lt;br /&gt;
Get Glib from GNOME: http://ftp.gnome.org/pub/GNOME/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip &lt;br /&gt;
Unzip it to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
Get PKG-CONFIG from GNOME: ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip&lt;br /&gt;
and ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-dev_0.23-3_win32.zip&lt;br /&gt;
Unzip them to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
== Contribs ==&lt;br /&gt;
&lt;br /&gt;
Take the precompiled contribs from:&lt;br /&gt;
 http://people.videolan.org/~jb/Contribs/&lt;br /&gt;
&lt;br /&gt;
Copy them in your ~&lt;br /&gt;
 tar xvjf contrib-20090813-win32-bin-gcc-4.2.1-sjlj-runtime-3.15.2-only.tar.bz2 -C /&lt;br /&gt;
 rm -v /usr/win32/bin/moc /usr/win32/bin/uic /usr/win32/bin/rcc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cp -v /usr/win32/share/aclocal/* m4/&lt;br /&gt;
 cp -v /usr/share/aclocal/* m4/&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH ./bootstrap&lt;br /&gt;
It should warn about gettext... Just ignore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure ==&lt;br /&gt;
&lt;br /&gt;
 sh extras/package/win32/configure-msys.sh&lt;br /&gt;
* If you downloaded a VLC source code tarball, retrieve &#039;&#039;configure-msys.sh&#039;&#039; and &#039;&#039;configure-common.sh&#039;&#039; from [[http://git.videolan.org/?p=vlc.git;a=summary vlc.git]] / extras / package / win32 /&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Compile ==&lt;br /&gt;
&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH make&lt;br /&gt;
If you have Cygwin and others tools installed, try using a shorter PATH inside MSYS shell i.e.&lt;br /&gt;
 $ echo $PATH&lt;br /&gt;
 .:/usr/local/bin:/mingw/bin:/bin&lt;br /&gt;
&lt;br /&gt;
==Creating self-contained packages==&lt;br /&gt;
&lt;br /&gt;
Once the compilation is done, build self-contained VLC packages with the following &amp;quot;make&amp;quot; commands:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-base&lt;br /&gt;
&lt;br /&gt;
(This will create a subdirectory named vlc-x.x.x with all the binaries &amp;quot;stripped&amp;quot; without any debugging symbols).&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip&lt;br /&gt;
&lt;br /&gt;
(Same as above but will package the directory in a zip file).&lt;br /&gt;
&lt;br /&gt;
 make package-win32&lt;br /&gt;
&lt;br /&gt;
(Same as above but will also create an auto-installer package. You will need to have NSIS installed in its default location for this to work).&lt;br /&gt;
&lt;br /&gt;
* If you have permissions problems running make package-*, chmod 777 -R the vlc folder.&lt;br /&gt;
* If you have permissions problems running vlc.exe after packaging, rename or delete vlc.exe.manifest&lt;br /&gt;
&lt;br /&gt;
== Random bootstrap, configure, and make errors ==&lt;br /&gt;
&lt;br /&gt;
There have been reports of random msys errors during bootstrap, configure, and make. They usually don&#039;t repeat themselves between runs. Rule out that your mingw-msys installation is at fault by building in windows safe mode. Even if this works, it may then be more practical to try a cross-compilation build.&lt;/div&gt;</summary>
		<author><name>Akzhan</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15427</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15427"/>
		<updated>2010-01-18T17:05:11Z</updated>

		<summary type="html">&lt;p&gt;Akzhan: /* Notes from January 2010 */ Wiki formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
MSYS is a helper environment for MinGW, the compiler chain for Windows based on GCC. It is the fastest way to build VLC natively on Windows.&lt;br /&gt;
&lt;br /&gt;
This howto was re-created by [[User:J-b|Jean-Baptiste Kempf]] and updated in  June 2009.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.4 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.4/MinGW-5.1.4.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard, selecting &amp;quot;Downloading and Install&amp;quot; and using the candidate release. Select gcc, g++ and MinGW make. It should download automatically:&lt;br /&gt;
*mingwrt-3.15&lt;br /&gt;
*w32api-3.12&lt;br /&gt;
*binutils-2.18&lt;br /&gt;
*gcc-core-3.4.5&lt;br /&gt;
*gcc-g++-3.4.5&lt;br /&gt;
*mingw32-make-3.81&lt;br /&gt;
&lt;br /&gt;
== Notes from December 2009 ==&lt;br /&gt;
&lt;br /&gt;
Currently the MinGW installer adds mingwrt-3.17 which is not compatible with the precompiled contribs mentioned below.  You should manually download and install 3.15 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/MinGW%20Runtime/mingwrt-3.15.2/mingwrt-3.15.2-mingw32-dev.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
The precompiled contribs also require gcc 4.2.1 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-core-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-g%2B%2B-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
After downloading and unpacking those two files you can switch MinGW to use the new version with&lt;br /&gt;
 mv /mingw/bin/c++.exe /mingw/bin/c++.345.exe&lt;br /&gt;
 mv /mingw/bin/g++.exe /mingw/bin/g++.345.exe&lt;br /&gt;
 mv /mingw/bin/gcc.exe /mingw/bin/gcc.345.exe&lt;br /&gt;
 mv /mingw/bin/g++-sjlj.exe /mingw/bin/g++.exe&lt;br /&gt;
 mv /mingw/bin/c++-sjlj.exe /mingw/bin/c++.exe&lt;br /&gt;
 mv /mingw/bin/gcc-sjlj.exe /mingw/bin/gcc.exe&lt;br /&gt;
&lt;br /&gt;
It also needs&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-core-4.4.0-mingw32-dll.tar.gz/download&lt;br /&gt;
to be installed otherwise there are warnings about a libgcc_s_dw2-1.dll missing when it comes to compiling the qt4 interface.&lt;br /&gt;
&lt;br /&gt;
== Install MSYS ==&lt;br /&gt;
&lt;br /&gt;
* Install 7-zip and Mozilla Firefox&lt;br /&gt;
* Install MSys 1.0.11-rc1 with the exe: http://sourceforge.net/project/downloading.php?group_id=2435&amp;amp;filename=MSYS-1.0.11.exe&lt;br /&gt;
 Accept Post Install: [y]&lt;br /&gt;
 MinGW Installed? :   [y]&lt;br /&gt;
 path to MinGW:       [c:/MinGW]&lt;br /&gt;
* Install MSys Developer Tooltkit: http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
== Notes from January 2010 ==&lt;br /&gt;
&lt;br /&gt;
Now You can build VLC using GCC 4.4.0 and mingw runtime 3.17 using minor patches:&lt;br /&gt;
* Before installing of MSys (after installing of latest mingw) rename MinGW/bin/mingw32-make.exe  to mingw/bin/make.exe. It will be renamed back by post install script.&lt;br /&gt;
* Install full GCC 4.4.0 binaries, and change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;library_names=&#039;&#039;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) due to bug in latest MinGW.&lt;br /&gt;
&lt;br /&gt;
=== AutoTools ===&lt;br /&gt;
&lt;br /&gt;
Update your autoconf, automake and libtool by downloading and installing them, keeping in mind that you need to extract the content of the usr folder in C:\Msys&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20autoconf/autoconf-2.63-1/autoconf-2.63-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20automake/automake-1.11-1/automake-1.11-1-msys-1.0.11-bin.tar.lzma/download &lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20libtool/libtool-2.2.7a-1/libtool-2.2.7a-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
You can also compile them according to:&lt;br /&gt;
* http://wiki.enlightenment.org/index.php/EFL_Windows_XP&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
== Install other tools ==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar.lzma&lt;br /&gt;
&lt;br /&gt;
Installing mingw-utils is recommended: http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
Installation of wget too: 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;
Extract the .tar.bz2 file. It contains wget.exe in the bin subfolder, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
=== Install Git and checkout VLC ===&lt;br /&gt;
&lt;br /&gt;
See [[Git_Windows]].&lt;br /&gt;
&lt;br /&gt;
You can also retrieve the source code from [http://www.videolan.org/vlc/download-sources.html VideoLAN Project: VLC media player source code]&lt;br /&gt;
&lt;br /&gt;
=== PKG-CONFIG ===&lt;br /&gt;
&lt;br /&gt;
pkg-config is a mess, this is not NEWS... And you cannot compile it from Windows because of a few bugs...&lt;br /&gt;
&lt;br /&gt;
Get Glib from GNOME: http://ftp.gnome.org/pub/GNOME/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip &lt;br /&gt;
Unzip it to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
Get PKG-CONFIG from GNOME: ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip&lt;br /&gt;
and ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-dev_0.23-3_win32.zip&lt;br /&gt;
Unzip them to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
== Contribs ==&lt;br /&gt;
&lt;br /&gt;
Take the precompiled contribs from:&lt;br /&gt;
 http://people.videolan.org/~jb/Contribs/&lt;br /&gt;
&lt;br /&gt;
Copy them in your ~&lt;br /&gt;
 tar xvjf contrib-20090813-win32-bin-gcc-4.2.1-sjlj-runtime-3.15.2-only.tar.bz2 -C /&lt;br /&gt;
 rm -v /usr/win32/bin/moc /usr/win32/bin/uic /usr/win32/bin/rcc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cp -v /usr/win32/share/aclocal/* m4/&lt;br /&gt;
 cp -v /usr/share/aclocal/* m4/&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH ./bootstrap&lt;br /&gt;
It should warn about gettext... Just ignore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure ==&lt;br /&gt;
&lt;br /&gt;
 sh extras/package/win32/configure-msys.sh&lt;br /&gt;
* If you downloaded a VLC source code tarball, retrieve &#039;&#039;configure-msys.sh&#039;&#039; and &#039;&#039;configure-common.sh&#039;&#039; from [[http://git.videolan.org/?p=vlc.git;a=summary vlc.git]] / extras / package / win32 /&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Compile ==&lt;br /&gt;
&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH make&lt;br /&gt;
If you have Cygwin and others tools installed, try using a shorter PATH inside MSYS shell i.e.&lt;br /&gt;
 $ echo $PATH&lt;br /&gt;
 .:/usr/local/bin:/mingw/bin:/bin&lt;br /&gt;
&lt;br /&gt;
==Creating self-contained packages==&lt;br /&gt;
&lt;br /&gt;
Once the compilation is done, build self-contained VLC packages with the following &amp;quot;make&amp;quot; commands:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-base&lt;br /&gt;
&lt;br /&gt;
(This will create a subdirectory named vlc-x.x.x with all the binaries &amp;quot;stripped&amp;quot; without any debugging symbols).&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip&lt;br /&gt;
&lt;br /&gt;
(Same as above but will package the directory in a zip file).&lt;br /&gt;
&lt;br /&gt;
 make package-win32&lt;br /&gt;
&lt;br /&gt;
(Same as above but will also create an auto-installer package. You will need to have NSIS installed in its default location for this to work).&lt;br /&gt;
&lt;br /&gt;
* If you have permissions problems running make package-*, chmod 777 -R the vlc folder.&lt;br /&gt;
* If you have permissions problems running vlc.exe after packaging, rename or delete vlc.exe.manifest&lt;br /&gt;
&lt;br /&gt;
== Random bootstrap, configure, and make errors ==&lt;br /&gt;
&lt;br /&gt;
There have been reports of random msys errors during bootstrap, configure, and make. They usually don&#039;t repeat themselves between runs. Rule out that your mingw-msys installation is at fault by building in windows safe mode. Even if this works, it may then be more practical to try a cross-compilation build.&lt;/div&gt;</summary>
		<author><name>Akzhan</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15426</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15426"/>
		<updated>2010-01-18T17:02:43Z</updated>

		<summary type="html">&lt;p&gt;Akzhan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
MSYS is a helper environment for MinGW, the compiler chain for Windows based on GCC. It is the fastest way to build VLC natively on Windows.&lt;br /&gt;
&lt;br /&gt;
This howto was re-created by [[User:J-b|Jean-Baptiste Kempf]] and updated in  June 2009.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.4 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.4/MinGW-5.1.4.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard, selecting &amp;quot;Downloading and Install&amp;quot; and using the candidate release. Select gcc, g++ and MinGW make. It should download automatically:&lt;br /&gt;
*mingwrt-3.15&lt;br /&gt;
*w32api-3.12&lt;br /&gt;
*binutils-2.18&lt;br /&gt;
*gcc-core-3.4.5&lt;br /&gt;
*gcc-g++-3.4.5&lt;br /&gt;
*mingw32-make-3.81&lt;br /&gt;
&lt;br /&gt;
== Notes from December 2009 ==&lt;br /&gt;
&lt;br /&gt;
Currently the MinGW installer adds mingwrt-3.17 which is not compatible with the precompiled contribs mentioned below.  You should manually download and install 3.15 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/MinGW%20Runtime/mingwrt-3.15.2/mingwrt-3.15.2-mingw32-dev.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
The precompiled contribs also require gcc 4.2.1 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-core-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-g%2B%2B-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
After downloading and unpacking those two files you can switch MinGW to use the new version with&lt;br /&gt;
 mv /mingw/bin/c++.exe /mingw/bin/c++.345.exe&lt;br /&gt;
 mv /mingw/bin/g++.exe /mingw/bin/g++.345.exe&lt;br /&gt;
 mv /mingw/bin/gcc.exe /mingw/bin/gcc.345.exe&lt;br /&gt;
 mv /mingw/bin/g++-sjlj.exe /mingw/bin/g++.exe&lt;br /&gt;
 mv /mingw/bin/c++-sjlj.exe /mingw/bin/c++.exe&lt;br /&gt;
 mv /mingw/bin/gcc-sjlj.exe /mingw/bin/gcc.exe&lt;br /&gt;
&lt;br /&gt;
It also needs&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-core-4.4.0-mingw32-dll.tar.gz/download&lt;br /&gt;
to be installed otherwise there are warnings about a libgcc_s_dw2-1.dll missing when it comes to compiling the qt4 interface.&lt;br /&gt;
&lt;br /&gt;
== Install MSYS ==&lt;br /&gt;
&lt;br /&gt;
* Install 7-zip and Mozilla Firefox&lt;br /&gt;
* Install MSys 1.0.11-rc1 with the exe: http://sourceforge.net/project/downloading.php?group_id=2435&amp;amp;filename=MSYS-1.0.11.exe&lt;br /&gt;
 Accept Post Install: [y]&lt;br /&gt;
 MinGW Installed? :   [y]&lt;br /&gt;
 path to MinGW:       [c:/MinGW]&lt;br /&gt;
* Install MSys Developer Tooltkit: http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
== Notes from January 2010 ==&lt;br /&gt;
&lt;br /&gt;
Now You can build VLC using GCC 4.4.0 and mingw runtime 3.17 using minor patches:&lt;br /&gt;
* Before installing of MSys (after installing of latest mingw) rename MinGW/bin/mingw32-make.exe  to mingw/bin/make.exe. It will be renamed back by post install script.&lt;br /&gt;
* Install full GCC 4.4.0 binaries, and change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la (library_names=&#039;&#039;) due to bug in latest MinGW.&lt;br /&gt;
&lt;br /&gt;
=== AutoTools ===&lt;br /&gt;
&lt;br /&gt;
Update your autoconf, automake and libtool by downloading and installing them, keeping in mind that you need to extract the content of the usr folder in C:\Msys&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20autoconf/autoconf-2.63-1/autoconf-2.63-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20automake/automake-1.11-1/automake-1.11-1-msys-1.0.11-bin.tar.lzma/download &lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20libtool/libtool-2.2.7a-1/libtool-2.2.7a-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
You can also compile them according to:&lt;br /&gt;
* http://wiki.enlightenment.org/index.php/EFL_Windows_XP&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install other tools ==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar.lzma&lt;br /&gt;
&lt;br /&gt;
Installing mingw-utils is recommended: http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
Installation of wget too: 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;
Extract the .tar.bz2 file. It contains wget.exe in the bin subfolder, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
=== Install Git and checkout VLC ===&lt;br /&gt;
&lt;br /&gt;
See [[Git_Windows]].&lt;br /&gt;
&lt;br /&gt;
You can also retrieve the source code from [http://www.videolan.org/vlc/download-sources.html VideoLAN Project: VLC media player source code]&lt;br /&gt;
&lt;br /&gt;
=== PKG-CONFIG ===&lt;br /&gt;
&lt;br /&gt;
pkg-config is a mess, this is not NEWS... And you cannot compile it from Windows because of a few bugs...&lt;br /&gt;
&lt;br /&gt;
Get Glib from GNOME: http://ftp.gnome.org/pub/GNOME/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip &lt;br /&gt;
Unzip it to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
Get PKG-CONFIG from GNOME: ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip&lt;br /&gt;
and ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-dev_0.23-3_win32.zip&lt;br /&gt;
Unzip them to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
== Contribs ==&lt;br /&gt;
&lt;br /&gt;
Take the precompiled contribs from:&lt;br /&gt;
 http://people.videolan.org/~jb/Contribs/&lt;br /&gt;
&lt;br /&gt;
Copy them in your ~&lt;br /&gt;
 tar xvjf contrib-20090813-win32-bin-gcc-4.2.1-sjlj-runtime-3.15.2-only.tar.bz2 -C /&lt;br /&gt;
 rm -v /usr/win32/bin/moc /usr/win32/bin/uic /usr/win32/bin/rcc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cp -v /usr/win32/share/aclocal/* m4/&lt;br /&gt;
 cp -v /usr/share/aclocal/* m4/&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH ./bootstrap&lt;br /&gt;
It should warn about gettext... Just ignore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure ==&lt;br /&gt;
&lt;br /&gt;
 sh extras/package/win32/configure-msys.sh&lt;br /&gt;
* If you downloaded a VLC source code tarball, retrieve &#039;&#039;configure-msys.sh&#039;&#039; and &#039;&#039;configure-common.sh&#039;&#039; from [[http://git.videolan.org/?p=vlc.git;a=summary vlc.git]] / extras / package / win32 /&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Compile ==&lt;br /&gt;
&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH make&lt;br /&gt;
If you have Cygwin and others tools installed, try using a shorter PATH inside MSYS shell i.e.&lt;br /&gt;
 $ echo $PATH&lt;br /&gt;
 .:/usr/local/bin:/mingw/bin:/bin&lt;br /&gt;
&lt;br /&gt;
==Creating self-contained packages==&lt;br /&gt;
&lt;br /&gt;
Once the compilation is done, build self-contained VLC packages with the following &amp;quot;make&amp;quot; commands:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-base&lt;br /&gt;
&lt;br /&gt;
(This will create a subdirectory named vlc-x.x.x with all the binaries &amp;quot;stripped&amp;quot; without any debugging symbols).&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip&lt;br /&gt;
&lt;br /&gt;
(Same as above but will package the directory in a zip file).&lt;br /&gt;
&lt;br /&gt;
 make package-win32&lt;br /&gt;
&lt;br /&gt;
(Same as above but will also create an auto-installer package. You will need to have NSIS installed in its default location for this to work).&lt;br /&gt;
&lt;br /&gt;
* If you have permissions problems running make package-*, chmod 777 -R the vlc folder.&lt;br /&gt;
* If you have permissions problems running vlc.exe after packaging, rename or delete vlc.exe.manifest&lt;br /&gt;
&lt;br /&gt;
== Random bootstrap, configure, and make errors ==&lt;br /&gt;
&lt;br /&gt;
There have been reports of random msys errors during bootstrap, configure, and make. They usually don&#039;t repeat themselves between runs. Rule out that your mingw-msys installation is at fault by building in windows safe mode. Even if this works, it may then be more practical to try a cross-compilation build.&lt;/div&gt;</summary>
		<author><name>Akzhan</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15399</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15399"/>
		<updated>2010-01-14T17:43:02Z</updated>

		<summary type="html">&lt;p&gt;Akzhan: /* Notes from December 2009 */ Fix movings&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
MSYS is a helper environment for MinGW, the compiler chain for Windows based on GCC. It is the fastest way to build VLC natively on Windows.&lt;br /&gt;
&lt;br /&gt;
This howto was re-created by [[User:J-b|Jean-Baptiste Kempf]] and updated in  June 2009.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.4 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.4/MinGW-5.1.4.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard, selecting &amp;quot;Downloading and Install&amp;quot; and using the candidate release. Select gcc, g++ and MinGW make. It should download automatically:&lt;br /&gt;
*mingwrt-3.15&lt;br /&gt;
*w32api-3.12&lt;br /&gt;
*binutils-2.18&lt;br /&gt;
*gcc-core-3.4.5&lt;br /&gt;
*gcc-g++-3.4.5&lt;br /&gt;
*mingw32-make-3.81&lt;br /&gt;
&lt;br /&gt;
== Notes from December 2009 ==&lt;br /&gt;
&lt;br /&gt;
Currently the MinGW installer adds mingwrt-3.17 which is not compatible with the precompiled contribs mentioned below.  You should manually download and install 3.15 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/MinGW%20Runtime/mingwrt-3.15.2/mingwrt-3.15.2-mingw32-dev.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
The precompiled contribs also require gcc 4.2.1 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-core-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/gcc-g%2B%2B-4.2.1-sjlj-2.tar.gz/download&lt;br /&gt;
&lt;br /&gt;
After downloading and unpacking those two files you can switch MinGW to use the new version with&lt;br /&gt;
 mv /mingw/bin/c++.exe /mingw/bin/c++.345.exe&lt;br /&gt;
 mv /mingw/bin/g++.exe /mingw/bin/g++.345.exe&lt;br /&gt;
 mv /mingw/bin/gcc.exe /mingw/bin/gcc.345.exe&lt;br /&gt;
 mv /mingw/bin/g++-sjlj.exe /mingw/bin/g++.exe&lt;br /&gt;
 mv /mingw/bin/c++-sjlj.exe /mingw/bin/c++.exe&lt;br /&gt;
 mv /mingw/bin/gcc-sjlj.exe /mingw/bin/gcc.exe&lt;br /&gt;
&lt;br /&gt;
It also needs&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-core-4.4.0-mingw32-dll.tar.gz/download&lt;br /&gt;
to be installed otherwise there are warnings about a libgcc_s_dw2-1.dll missing when it comes to compiling the qt4 interface.&lt;br /&gt;
&lt;br /&gt;
== Install MSYS ==&lt;br /&gt;
&lt;br /&gt;
* Install 7-zip and Mozilla Firefox&lt;br /&gt;
* Install MSys 1.0.11-rc1 with the exe: http://sourceforge.net/project/downloading.php?group_id=2435&amp;amp;filename=MSYS-1.0.11.exe&lt;br /&gt;
 Accept Post Install: [y]&lt;br /&gt;
 MinGW Installed? :   [y]&lt;br /&gt;
 path to MinGW:       [c:/MinGW]&lt;br /&gt;
* Install MSys Developer Tooltkit: http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe&lt;br /&gt;
&lt;br /&gt;
=== AutoTools ===&lt;br /&gt;
&lt;br /&gt;
Update your autoconf, automake and libtool by downloading and installing them, keeping in mind that you need to extract the content of the usr folder in C:\Msys&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20autoconf/autoconf-2.63-1/autoconf-2.63-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20automake/automake-1.11-1/automake-1.11-1-msys-1.0.11-bin.tar.lzma/download &lt;br /&gt;
* http://sourceforge.net/projects/mingw/files/MSYS%20libtool/libtool-2.2.7a-1/libtool-2.2.7a-1-msys-1.0.11-bin.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
You can also compile them according to:&lt;br /&gt;
* http://wiki.enlightenment.org/index.php/EFL_Windows_XP&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install other tools ==&lt;br /&gt;
&lt;br /&gt;
http://prdownloads.sourceforge.net/mingw/libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar.lzma&lt;br /&gt;
&lt;br /&gt;
Installing mingw-utils is recommended: http://prdownloads.sourceforge.net/mingw/mingw-utils-0.3.tar.gz, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
Installation of wget too: 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;
Extract the .tar.bz2 file. It contains wget.exe in the bin subfolder, extract it to mingw/bin.&lt;br /&gt;
&lt;br /&gt;
=== Install Git and checkout VLC ===&lt;br /&gt;
&lt;br /&gt;
See [[Git_Windows]].&lt;br /&gt;
&lt;br /&gt;
You can also retrieve the source code from [http://www.videolan.org/vlc/download-sources.html VideoLAN Project: VLC media player source code]&lt;br /&gt;
&lt;br /&gt;
=== PKG-CONFIG ===&lt;br /&gt;
&lt;br /&gt;
pkg-config is a mess, this is not NEWS... And you cannot compile it from Windows because of a few bugs...&lt;br /&gt;
&lt;br /&gt;
Get Glib from GNOME: http://ftp.gnome.org/pub/GNOME/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip &lt;br /&gt;
Unzip it to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
Get PKG-CONFIG from GNOME: ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip&lt;br /&gt;
and ftp://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config-dev_0.23-3_win32.zip&lt;br /&gt;
Unzip them to C:\Msys.&lt;br /&gt;
&lt;br /&gt;
== Contribs ==&lt;br /&gt;
&lt;br /&gt;
Take the precompiled contribs from:&lt;br /&gt;
 http://people.videolan.org/~jb/Contribs/&lt;br /&gt;
&lt;br /&gt;
Copy them in your ~&lt;br /&gt;
 tar xvjf contrib-20090813-win32-bin-gcc-4.2.1-sjlj-runtime-3.15.2-only.tar.bz2 -C /&lt;br /&gt;
 rm -v /usr/win32/bin/moc /usr/win32/bin/uic /usr/win32/bin/rcc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cp -v /usr/win32/share/aclocal/* m4/&lt;br /&gt;
 cp -v /usr/share/aclocal/* m4/&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH ./bootstrap&lt;br /&gt;
It should warn about gettext... Just ignore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure ==&lt;br /&gt;
&lt;br /&gt;
 sh extras/package/win32/configure-msys.sh&lt;br /&gt;
* If you downloaded a VLC source code tarball, retrieve &#039;&#039;configure-msys.sh&#039;&#039; and &#039;&#039;configure-common.sh&#039;&#039; from [[http://git.videolan.org/?p=vlc.git;a=summary vlc.git]] / extras / package / win32 /&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Compile ==&lt;br /&gt;
&lt;br /&gt;
 PATH=/usr/win32/bin:$PATH make&lt;br /&gt;
If you have Cygwin and others tools installed, try using a shorter PATH inside MSYS shell i.e.&lt;br /&gt;
 $ echo $PATH&lt;br /&gt;
 .:/usr/local/bin:/mingw/bin:/bin&lt;br /&gt;
&lt;br /&gt;
==Creating self-contained packages==&lt;br /&gt;
&lt;br /&gt;
Once the compilation is done, build self-contained VLC packages with the following &amp;quot;make&amp;quot; commands:&lt;br /&gt;
&lt;br /&gt;
 make package-win32-base&lt;br /&gt;
&lt;br /&gt;
(This will create a subdirectory named vlc-x.x.x with all the binaries &amp;quot;stripped&amp;quot; without any debugging symbols).&lt;br /&gt;
&lt;br /&gt;
 make package-win32-zip&lt;br /&gt;
&lt;br /&gt;
(Same as above but will package the directory in a zip file).&lt;br /&gt;
&lt;br /&gt;
 make package-win32&lt;br /&gt;
&lt;br /&gt;
(Same as above but will also create an auto-installer package. You will need to have NSIS installed in its default location for this to work).&lt;br /&gt;
&lt;br /&gt;
* If you have permissions problems running make package-*, chmod 777 -R the vlc folder.&lt;br /&gt;
* If you have permissions problems running vlc.exe after packaging, rename or delete vlc.exe.manifest&lt;br /&gt;
&lt;br /&gt;
== Random bootstrap, configure, and make errors ==&lt;br /&gt;
&lt;br /&gt;
There have been reports of random msys errors during bootstrap, configure, and make. They usually don&#039;t repeat themselves between runs. Rule out that your mingw-msys installation is at fault by building in windows safe mode. Even if this works, it may then be more practical to try a cross-compilation build.&lt;/div&gt;</summary>
		<author><name>Akzhan</name></author>
	</entry>
</feed>