<?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=Stevewelburn</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=Stevewelburn"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Stevewelburn/"/>
	<updated>2026-11-04T21:47:07Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=16043</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=16043"/>
		<updated>2010-05-12T16:41:59Z</updated>

		<summary type="html">&lt;p&gt;Stevewelburn: /* PKG-CONFIG */&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, September 2009, December 2009 and March 2010&lt;br /&gt;
&lt;br /&gt;
== Text editor ==&lt;br /&gt;
&lt;br /&gt;
To edit unix-style text documents you need a suitable editor.&lt;br /&gt;
&lt;br /&gt;
For those wishing to have a Notepad look-and-feel I recommend [http://sourceforge.net/projects/notepad2/ notepad2], which may tempt you to ditch Notepad alltogether.&lt;br /&gt;
You can set File - Line endings - Default to &amp;quot;Unix (LF)&amp;quot;, but it always saves opened files in the ending style they have.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.6 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard:&lt;br /&gt;
* select &amp;quot;Downloading and Install&amp;quot;&lt;br /&gt;
* select candidate release&lt;br /&gt;
* select g++ and MinGW Make (in addition to the base system)&lt;br /&gt;
&lt;br /&gt;
It will download (from http://prdownloads.sourceforge.net/mingw) and install (based on mingw.ini file Build 12):&lt;br /&gt;
* mingwrt-3.17-mingw32-dev.tar.gz&lt;br /&gt;
* mingwrt-3.17-mingw32-dll.tar.gz&lt;br /&gt;
* w32api-3.14-mingw32-dev.tar.gz&lt;br /&gt;
* binutils-2.18.50-20080109-2.tar.gz&lt;br /&gt;
* gcc-core-3.4.5-20060117-3.tar.gz&lt;br /&gt;
* gcc-g++-3.4.5-20060117-3.tar.gz&lt;br /&gt;
* mingw32-make-3.81-2.tar.gz&lt;br /&gt;
&lt;br /&gt;
=== Update Mingw GCC to 4.4.0 ===&lt;br /&gt;
&lt;br /&gt;
Use GCC 4.4.0, with&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-full-4.4.0-mingw32-bin-2.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
Extract it to C:\Mingw and make it replace the current files (you can use 7-zip to extract the files).&lt;br /&gt;
&lt;br /&gt;
* Use text editor to change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la file (line should be &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;
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;
=== &#039;&#039;ALTERNATIVE&#039;&#039; for above installation: Install TDM MinGW 4.4.1 ===&lt;br /&gt;
&lt;br /&gt;
The above setup may produce build errors like &amp;quot;undefined reference to `__Unwind_SjLj_Register&#039;&amp;quot; when compiling vlc.&lt;br /&gt;
That is because the above 4.4.0 build uses DW2(Dwarf-2) unwinding. &lt;br /&gt;
&lt;br /&gt;
You need a MinGW build of SJLJ unwinding.&lt;br /&gt;
&lt;br /&gt;
An easy installer is offered on [http://www.tdragon.net/recentgcc/ Twilight Dragon Media]: (Thanks to [[User:MichaelMc|MichaelMc]])&lt;br /&gt;
* http://sourceforge.net/projects/tdm-gcc/files/TDM-MinGW%20Installer/1.908.0/tdm-mingw-1.908.0-4.4.1-2.exe/download&lt;br /&gt;
&lt;br /&gt;
* Use text editor to change MinGW\lib\gcc\mingw32\4.4.1\libstdc++.la file (line should be &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;
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 to default C:\Msys\1.0 folder&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 in MSYS ===&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 to C:\Msys\1.0&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://trac.enlightenment.org/e/wiki/EFLWindowsXP (was: http://wiki.enlightenment.org/index.php/EFL_Windows_XP)&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
==== Patch libtools ====&lt;br /&gt;
&lt;br /&gt;
If you installed the TDM MinGW 4.4.1, you may also need to patch the downloaded libtools file in your msys after installing, because it is hardcoded for the 4.4.0 version of MinGW: &lt;br /&gt;
* Use text editor to open /bin/libtools and find &amp;quot;compiler_lib_search_dirs&amp;quot; (lines 10244 to 10255) and change ALL &amp;quot;mingw32/4.4.0&amp;quot; instances to &amp;quot;mingw32/4.4.1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Add a personal touch to your own build of vlc ====&lt;br /&gt;
&lt;br /&gt;
This one isn&#039;t necessary to build vlc, but it adds a personal touch.&lt;br /&gt;
&lt;br /&gt;
No &#039;compiled by&#039; name will appear in vlc&#039;s about box when you run it. This is because msys lacks a &#039;whoami&#039; command. &lt;br /&gt;
&lt;br /&gt;
Use your text editor to create a new file and enter a single line of text:&lt;br /&gt;
&lt;br /&gt;
 echo &#039;insert your name here&#039;&lt;br /&gt;
&lt;br /&gt;
Save it as &#039;whoami&#039; in C:\msys\1.0\bin . Type &#039;whoami&#039; in the console: It now returns your name.&lt;br /&gt;
&lt;br /&gt;
=== Install libgcrypt in MSys ===&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;
=== Install other tools in Mingw ===&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;
=== 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\1.0 .&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\1.0 .&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Set PKG_CONFIG_PATH=/win32/lib/pkgconfig&lt;br /&gt;
&lt;br /&gt;
(e.g. by adding the Windows enviroment variable PKG_CONFIG_PATH in &amp;quot;Control Panel&amp;quot;-&amp;gt;&amp;quot;System&amp;quot;-&amp;gt;&amp;quot;Advanced System Settings&amp;quot;-&amp;gt;&amp;quot;Environment Variables&amp;quot; and setting the value to /win32/lib/pkgconfig)&lt;br /&gt;
&lt;br /&gt;
--- (SJW 12/5/2010)&lt;br /&gt;
&lt;br /&gt;
== Install LUA tools ==&lt;br /&gt;
&lt;br /&gt;
vlc uses the LUA scripting language (See [http://www.lua.org lua.org]).&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t have a lua.exe and luac.exe: &lt;br /&gt;
* Download the lua tools from http://www.lua.org/ftp/lua-5.1.4.tar.gz&lt;br /&gt;
Untar it in your home folder.&lt;br /&gt;
There are no binaries supplied, so you need to compile this:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/lua-5.1.4 &lt;br /&gt;
 $ make mingw&lt;br /&gt;
&lt;br /&gt;
This should produce lua.exe, luac.exe and lua51.dll in the src directory. Put these in your /bin&lt;br /&gt;
&lt;br /&gt;
 $ cd src &lt;br /&gt;
 $ cp *.exe /bin&lt;br /&gt;
 $ cp *.dll /bin&lt;br /&gt;
&lt;br /&gt;
--[[User:Belbear|Belbear]] 12:58, 7 April 2010 (UTC)&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;
== 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;
rm isn&#039;t needed with some contrib packages, because they don&#039;t contain those files.&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cd vlc&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;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
* It doesn&#039;t link, and complains about missing gcc symbols: You missed this line in the instructions:&lt;br /&gt;
Use text editor to change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la file (line should be library_names=&#039;&#039;) due to bug in latest MinGW.&lt;br /&gt;
* Compilation stops early, after configure was complaining about mismatched quotes:&lt;br /&gt;
Check the VLC_COMPILE_HOST variable in your config.h - if it&#039;s &#039;&#039;Option f is not valid&#039;&#039; then &#039;&#039;hostname -f&#039;&#039; fails (on Windows, there is no such option as -f). In configure.ac change&lt;br /&gt;
&amp;lt;pre&amp;gt;AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, &amp;quot;`hostname -f 2&amp;gt; /dev/null || hostname`&amp;quot;, [host which ran configure])&amp;lt;/pre&amp;gt;&lt;br /&gt;
to &lt;br /&gt;
&amp;lt;pre&amp;gt;AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, &amp;quot;`hostname`&amp;quot;, [host which ran configure])&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Stevewelburn</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=16042</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=16042"/>
		<updated>2010-05-12T16:41:17Z</updated>

		<summary type="html">&lt;p&gt;Stevewelburn: /* Install LUA tools */&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, September 2009, December 2009 and March 2010&lt;br /&gt;
&lt;br /&gt;
== Text editor ==&lt;br /&gt;
&lt;br /&gt;
To edit unix-style text documents you need a suitable editor.&lt;br /&gt;
&lt;br /&gt;
For those wishing to have a Notepad look-and-feel I recommend [http://sourceforge.net/projects/notepad2/ notepad2], which may tempt you to ditch Notepad alltogether.&lt;br /&gt;
You can set File - Line endings - Default to &amp;quot;Unix (LF)&amp;quot;, but it always saves opened files in the ending style they have.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.6 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard:&lt;br /&gt;
* select &amp;quot;Downloading and Install&amp;quot;&lt;br /&gt;
* select candidate release&lt;br /&gt;
* select g++ and MinGW Make (in addition to the base system)&lt;br /&gt;
&lt;br /&gt;
It will download (from http://prdownloads.sourceforge.net/mingw) and install (based on mingw.ini file Build 12):&lt;br /&gt;
* mingwrt-3.17-mingw32-dev.tar.gz&lt;br /&gt;
* mingwrt-3.17-mingw32-dll.tar.gz&lt;br /&gt;
* w32api-3.14-mingw32-dev.tar.gz&lt;br /&gt;
* binutils-2.18.50-20080109-2.tar.gz&lt;br /&gt;
* gcc-core-3.4.5-20060117-3.tar.gz&lt;br /&gt;
* gcc-g++-3.4.5-20060117-3.tar.gz&lt;br /&gt;
* mingw32-make-3.81-2.tar.gz&lt;br /&gt;
&lt;br /&gt;
=== Update Mingw GCC to 4.4.0 ===&lt;br /&gt;
&lt;br /&gt;
Use GCC 4.4.0, with&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-full-4.4.0-mingw32-bin-2.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
Extract it to C:\Mingw and make it replace the current files (you can use 7-zip to extract the files).&lt;br /&gt;
&lt;br /&gt;
* Use text editor to change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la file (line should be &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;
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;
=== &#039;&#039;ALTERNATIVE&#039;&#039; for above installation: Install TDM MinGW 4.4.1 ===&lt;br /&gt;
&lt;br /&gt;
The above setup may produce build errors like &amp;quot;undefined reference to `__Unwind_SjLj_Register&#039;&amp;quot; when compiling vlc.&lt;br /&gt;
That is because the above 4.4.0 build uses DW2(Dwarf-2) unwinding. &lt;br /&gt;
&lt;br /&gt;
You need a MinGW build of SJLJ unwinding.&lt;br /&gt;
&lt;br /&gt;
An easy installer is offered on [http://www.tdragon.net/recentgcc/ Twilight Dragon Media]: (Thanks to [[User:MichaelMc|MichaelMc]])&lt;br /&gt;
* http://sourceforge.net/projects/tdm-gcc/files/TDM-MinGW%20Installer/1.908.0/tdm-mingw-1.908.0-4.4.1-2.exe/download&lt;br /&gt;
&lt;br /&gt;
* Use text editor to change MinGW\lib\gcc\mingw32\4.4.1\libstdc++.la file (line should be &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;
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 to default C:\Msys\1.0 folder&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 in MSYS ===&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 to C:\Msys\1.0&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://trac.enlightenment.org/e/wiki/EFLWindowsXP (was: http://wiki.enlightenment.org/index.php/EFL_Windows_XP)&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
==== Patch libtools ====&lt;br /&gt;
&lt;br /&gt;
If you installed the TDM MinGW 4.4.1, you may also need to patch the downloaded libtools file in your msys after installing, because it is hardcoded for the 4.4.0 version of MinGW: &lt;br /&gt;
* Use text editor to open /bin/libtools and find &amp;quot;compiler_lib_search_dirs&amp;quot; (lines 10244 to 10255) and change ALL &amp;quot;mingw32/4.4.0&amp;quot; instances to &amp;quot;mingw32/4.4.1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Add a personal touch to your own build of vlc ====&lt;br /&gt;
&lt;br /&gt;
This one isn&#039;t necessary to build vlc, but it adds a personal touch.&lt;br /&gt;
&lt;br /&gt;
No &#039;compiled by&#039; name will appear in vlc&#039;s about box when you run it. This is because msys lacks a &#039;whoami&#039; command. &lt;br /&gt;
&lt;br /&gt;
Use your text editor to create a new file and enter a single line of text:&lt;br /&gt;
&lt;br /&gt;
 echo &#039;insert your name here&#039;&lt;br /&gt;
&lt;br /&gt;
Save it as &#039;whoami&#039; in C:\msys\1.0\bin . Type &#039;whoami&#039; in the console: It now returns your name.&lt;br /&gt;
&lt;br /&gt;
=== Install libgcrypt in MSys ===&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;
=== Install other tools in Mingw ===&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;
=== 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\1.0 .&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\1.0 .&lt;br /&gt;
&lt;br /&gt;
== Install LUA tools ==&lt;br /&gt;
&lt;br /&gt;
vlc uses the LUA scripting language (See [http://www.lua.org lua.org]).&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t have a lua.exe and luac.exe: &lt;br /&gt;
* Download the lua tools from http://www.lua.org/ftp/lua-5.1.4.tar.gz&lt;br /&gt;
Untar it in your home folder.&lt;br /&gt;
There are no binaries supplied, so you need to compile this:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/lua-5.1.4 &lt;br /&gt;
 $ make mingw&lt;br /&gt;
&lt;br /&gt;
This should produce lua.exe, luac.exe and lua51.dll in the src directory. Put these in your /bin&lt;br /&gt;
&lt;br /&gt;
 $ cd src &lt;br /&gt;
 $ cp *.exe /bin&lt;br /&gt;
 $ cp *.dll /bin&lt;br /&gt;
&lt;br /&gt;
--[[User:Belbear|Belbear]] 12:58, 7 April 2010 (UTC)&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;
== 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;
rm isn&#039;t needed with some contrib packages, because they don&#039;t contain those files.&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cd vlc&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;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
* It doesn&#039;t link, and complains about missing gcc symbols: You missed this line in the instructions:&lt;br /&gt;
Use text editor to change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la file (line should be library_names=&#039;&#039;) due to bug in latest MinGW.&lt;br /&gt;
* Compilation stops early, after configure was complaining about mismatched quotes:&lt;br /&gt;
Check the VLC_COMPILE_HOST variable in your config.h - if it&#039;s &#039;&#039;Option f is not valid&#039;&#039; then &#039;&#039;hostname -f&#039;&#039; fails (on Windows, there is no such option as -f). In configure.ac change&lt;br /&gt;
&amp;lt;pre&amp;gt;AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, &amp;quot;`hostname -f 2&amp;gt; /dev/null || hostname`&amp;quot;, [host which ran configure])&amp;lt;/pre&amp;gt;&lt;br /&gt;
to &lt;br /&gt;
&amp;lt;pre&amp;gt;AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, &amp;quot;`hostname`&amp;quot;, [host which ran configure])&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Stevewelburn</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=16041</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=16041"/>
		<updated>2010-05-12T16:36:27Z</updated>

		<summary type="html">&lt;p&gt;Stevewelburn: /* Install LUA tools */&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, September 2009, December 2009 and March 2010&lt;br /&gt;
&lt;br /&gt;
== Text editor ==&lt;br /&gt;
&lt;br /&gt;
To edit unix-style text documents you need a suitable editor.&lt;br /&gt;
&lt;br /&gt;
For those wishing to have a Notepad look-and-feel I recommend [http://sourceforge.net/projects/notepad2/ notepad2], which may tempt you to ditch Notepad alltogether.&lt;br /&gt;
You can set File - Line endings - Default to &amp;quot;Unix (LF)&amp;quot;, but it always saves opened files in the ending style they have.&lt;br /&gt;
&lt;br /&gt;
== Install MinGW ==&lt;br /&gt;
&lt;br /&gt;
Use the main installer 5.1.6 found at&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download&lt;br /&gt;
&lt;br /&gt;
Go through the wizard:&lt;br /&gt;
* select &amp;quot;Downloading and Install&amp;quot;&lt;br /&gt;
* select candidate release&lt;br /&gt;
* select g++ and MinGW Make (in addition to the base system)&lt;br /&gt;
&lt;br /&gt;
It will download (from http://prdownloads.sourceforge.net/mingw) and install (based on mingw.ini file Build 12):&lt;br /&gt;
* mingwrt-3.17-mingw32-dev.tar.gz&lt;br /&gt;
* mingwrt-3.17-mingw32-dll.tar.gz&lt;br /&gt;
* w32api-3.14-mingw32-dev.tar.gz&lt;br /&gt;
* binutils-2.18.50-20080109-2.tar.gz&lt;br /&gt;
* gcc-core-3.4.5-20060117-3.tar.gz&lt;br /&gt;
* gcc-g++-3.4.5-20060117-3.tar.gz&lt;br /&gt;
* mingw32-make-3.81-2.tar.gz&lt;br /&gt;
&lt;br /&gt;
=== Update Mingw GCC to 4.4.0 ===&lt;br /&gt;
&lt;br /&gt;
Use GCC 4.4.0, with&lt;br /&gt;
http://sourceforge.net/projects/mingw/files/GCC%20Version%204/Current%20Release_%20gcc-4.4.0/gcc-full-4.4.0-mingw32-bin-2.tar.lzma/download&lt;br /&gt;
&lt;br /&gt;
Extract it to C:\Mingw and make it replace the current files (you can use 7-zip to extract the files).&lt;br /&gt;
&lt;br /&gt;
* Use text editor to change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la file (line should be &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;
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;
=== &#039;&#039;ALTERNATIVE&#039;&#039; for above installation: Install TDM MinGW 4.4.1 ===&lt;br /&gt;
&lt;br /&gt;
The above setup may produce build errors like &amp;quot;undefined reference to `__Unwind_SjLj_Register&#039;&amp;quot; when compiling vlc.&lt;br /&gt;
That is because the above 4.4.0 build uses DW2(Dwarf-2) unwinding. &lt;br /&gt;
&lt;br /&gt;
You need a MinGW build of SJLJ unwinding.&lt;br /&gt;
&lt;br /&gt;
An easy installer is offered on [http://www.tdragon.net/recentgcc/ Twilight Dragon Media]: (Thanks to [[User:MichaelMc|MichaelMc]])&lt;br /&gt;
* http://sourceforge.net/projects/tdm-gcc/files/TDM-MinGW%20Installer/1.908.0/tdm-mingw-1.908.0-4.4.1-2.exe/download&lt;br /&gt;
&lt;br /&gt;
* Use text editor to change MinGW\lib\gcc\mingw32\4.4.1\libstdc++.la file (line should be &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;
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 to default C:\Msys\1.0 folder&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 in MSYS ===&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 to C:\Msys\1.0&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://trac.enlightenment.org/e/wiki/EFLWindowsXP (was: http://wiki.enlightenment.org/index.php/EFL_Windows_XP)&lt;br /&gt;
* http://www.mingw.org/wiki/msys&lt;br /&gt;
&lt;br /&gt;
==== Patch libtools ====&lt;br /&gt;
&lt;br /&gt;
If you installed the TDM MinGW 4.4.1, you may also need to patch the downloaded libtools file in your msys after installing, because it is hardcoded for the 4.4.0 version of MinGW: &lt;br /&gt;
* Use text editor to open /bin/libtools and find &amp;quot;compiler_lib_search_dirs&amp;quot; (lines 10244 to 10255) and change ALL &amp;quot;mingw32/4.4.0&amp;quot; instances to &amp;quot;mingw32/4.4.1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Add a personal touch to your own build of vlc ====&lt;br /&gt;
&lt;br /&gt;
This one isn&#039;t necessary to build vlc, but it adds a personal touch.&lt;br /&gt;
&lt;br /&gt;
No &#039;compiled by&#039; name will appear in vlc&#039;s about box when you run it. This is because msys lacks a &#039;whoami&#039; command. &lt;br /&gt;
&lt;br /&gt;
Use your text editor to create a new file and enter a single line of text:&lt;br /&gt;
&lt;br /&gt;
 echo &#039;insert your name here&#039;&lt;br /&gt;
&lt;br /&gt;
Save it as &#039;whoami&#039; in C:\msys\1.0\bin . Type &#039;whoami&#039; in the console: It now returns your name.&lt;br /&gt;
&lt;br /&gt;
=== Install libgcrypt in MSys ===&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;
=== Install other tools in Mingw ===&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;
=== 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\1.0 .&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\1.0 .&lt;br /&gt;
&lt;br /&gt;
== Install LUA tools ==&lt;br /&gt;
&lt;br /&gt;
vlc uses the LUA scripting language (See [http://www.lua.org lua.org]).&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t have a lua.exe and luac.exe: &lt;br /&gt;
* Download the lua tools from http://www.lua.org/ftp/lua-5.1.4.tar.gz&lt;br /&gt;
Untar it in your home folder.&lt;br /&gt;
There are no binaries supplied, so you need to compile this:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/lua-5.1.4 &lt;br /&gt;
 $ make mingw&lt;br /&gt;
&lt;br /&gt;
This should produce lua.exe, luac.exe and lua51.dll in the src directory. Put these in your /bin&lt;br /&gt;
&lt;br /&gt;
 $ cd src &lt;br /&gt;
 $ cp *.exe /bin&lt;br /&gt;
 $ cp *.dll /bin&lt;br /&gt;
&lt;br /&gt;
--[[User:Belbear|Belbear]] 12:58, 7 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Set PKG_CONFIG_PATH=/win32/lib/pkgconfig to allow ./configure to know that lua is installed&lt;br /&gt;
&lt;br /&gt;
(e.g. by adding the Windows enviroment variable PKG_CONFIG_PATH in &amp;quot;Control Panel&amp;quot;-&amp;gt;&amp;quot;System&amp;quot;-&amp;gt;&amp;quot;Advanced System Settings&amp;quot;-&amp;gt;&amp;quot;Environment Variables&amp;quot; and setting the value to /win32/lib/pkgconfig)&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;
== 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;
rm isn&#039;t needed with some contrib packages, because they don&#039;t contain those files.&lt;br /&gt;
&lt;br /&gt;
== Bootstrap VLC ==&lt;br /&gt;
&lt;br /&gt;
 cd vlc&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;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
* It doesn&#039;t link, and complains about missing gcc symbols: You missed this line in the instructions:&lt;br /&gt;
Use text editor to change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la file (line should be library_names=&#039;&#039;) due to bug in latest MinGW.&lt;br /&gt;
* Compilation stops early, after configure was complaining about mismatched quotes:&lt;br /&gt;
Check the VLC_COMPILE_HOST variable in your config.h - if it&#039;s &#039;&#039;Option f is not valid&#039;&#039; then &#039;&#039;hostname -f&#039;&#039; fails (on Windows, there is no such option as -f). In configure.ac change&lt;br /&gt;
&amp;lt;pre&amp;gt;AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, &amp;quot;`hostname -f 2&amp;gt; /dev/null || hostname`&amp;quot;, [host which ran configure])&amp;lt;/pre&amp;gt;&lt;br /&gt;
to &lt;br /&gt;
&amp;lt;pre&amp;gt;AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, &amp;quot;`hostname`&amp;quot;, [host which ran configure])&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Stevewelburn</name></author>
	</entry>
</feed>