<?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=Belbear</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=Belbear"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Belbear/"/>
	<updated>2026-11-04T19:40:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=16000</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=16000"/>
		<updated>2010-05-01T19:33:51Z</updated>

		<summary type="html">&lt;p&gt;Belbear: &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;
== 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>Belbear</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Git_Windows&amp;diff=15908</id>
		<title>Git Windows</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Git_Windows&amp;diff=15908"/>
		<updated>2010-04-07T20:41:00Z</updated>

		<summary type="html">&lt;p&gt;Belbear: /* Checkout a project */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;This page documents how to use [[Git]] from Windows.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Install MSysGit ==&lt;br /&gt;
Take latest on http://code.google.com/p/msysgit/downloads/list .&lt;br /&gt;
&lt;br /&gt;
And follow installation. It should be straightforward.&lt;br /&gt;
&lt;br /&gt;
== Install TortoiseGit ==&lt;br /&gt;
Take latest 32bits version on http://code.google.com/p/tortoisegit/downloads/list .&lt;br /&gt;
&lt;br /&gt;
Start and follow installation until success.&lt;br /&gt;
You may need to point where MSysGit is after installation (point it to the bin/ folder).&lt;br /&gt;
&lt;br /&gt;
== Checkout a project ==&lt;br /&gt;
Open explorer, create a folder named VideoLAN.&lt;br /&gt;
&lt;br /&gt;
Enter it.&lt;br /&gt;
&lt;br /&gt;
Right click, select &#039;&#039;Git Clone&#039;&#039; and enter one of the VideoLAN project.&lt;br /&gt;
&lt;br /&gt;
In the URL text box fill in the following: &amp;quot;git://git.videolan.org/x264.git&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Accept and wait.&lt;br /&gt;
&lt;br /&gt;
==== When you receive an error that git cannot connect to the server: ====&lt;br /&gt;
&lt;br /&gt;
In contrary to what the [http://git.videolan.org git.videolan.org] site suggests, using http for git checkouts is NOT supported. If you happen to be behind a restrictive firewall that blocks the git port 9418: Well, sorry, game over for what git concerns.&lt;br /&gt;
&lt;br /&gt;
== Cygwin git issue ==&lt;br /&gt;
&#039;&#039;&#039;Note for Windows users using [http://www.cygwin.com Cygwin] (linux-like build environment):&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Applies to:&lt;br /&gt;
&lt;br /&gt;
 Windows XP Service Pack 2 with Security Update &#039;&#039;&#039;KB925902&#039;&#039;&#039; installed&lt;br /&gt;
 Windows XP Service Pack 3&lt;br /&gt;
&lt;br /&gt;
There is a problem on Windows XP (and possibly on other Microsoft Operating Systems) with &#039;git clone&#039; which aborts unexpectedly with a Cygwin error during the &#039;checking out files&#039; (reproducable every time and at the same percentage) at the end of the clone procedure:&lt;br /&gt;
&lt;br /&gt;
 $ 2 [main] git 4012 D:\cygwin\bin\git.exe:&lt;br /&gt;
   *** fatal error - &#039;&#039;&#039;could not load shell32, Win32 error 487&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This has been verified (May 22, 2008) against the currently available Cygwin 1.5.25-12 with git package versions 1.5.5.1-1 and 1.5.4-1 and is a generic problem which also affects cloning from other git repositories (although x264.git seems unaffected).&lt;br /&gt;
&lt;br /&gt;
The issue is referred to in the mail archives of the Cygwin project mailing list here &lt;br /&gt;
[http://sourceware.org/ml/cygwin/2007-07/msg00858.html Git error on Cygwin].&lt;br /&gt;
&lt;br /&gt;
By eliminating the impossible, whatever remained, however improbable, it is the following Windows Security Update (April 3, 2007) which is actually the cause of the Cygwin issue: [http://www.microsoft.com/technet/security/bulletin/ms07-017.mspx Microsoft Security Bulletin MS07-017 - Vulnerabilities in GDI Could Allow Remote Code Execution (925902)]&lt;br /&gt;
&lt;br /&gt;
Even though the same Security Update applies to the following systems, these are reported not to be affected:&lt;br /&gt;
&lt;br /&gt;
 Windows Vista Service Pack 1&lt;br /&gt;
 Windows 2003 Server Standard Service Pack 2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;It is possible to get &#039;git clone&#039; working again on the affected systems by removing the Security Update (KB925902) but this is obviously not recommended for security reasons.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
To use git with Cygwin (for WinXP) do this:&lt;br /&gt;
&lt;br /&gt;
[Start][Run] and type &amp;quot;cmd&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change to the directory where you desire to download x264 to:&lt;br /&gt;
&lt;br /&gt;
cd c:\ffmpeg-SVN\&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have installed Cygwin in the standard location then type this:&lt;br /&gt;
&lt;br /&gt;
C:\ffmpeg-SVN\&amp;gt;c:\cygwin\bin\git clone git://git.videolan.org/x264.git&lt;br /&gt;
&lt;br /&gt;
Initialized empty Git repository in /cygdrive/c/ffmpeg-SVN/x264/.git/&amp;lt;br&amp;gt;&lt;br /&gt;
remote: Generating pack...&amp;lt;br&amp;gt;&lt;br /&gt;
remote: Done counting 6710 objects.&amp;lt;br&amp;gt;&lt;br /&gt;
remote: Deltifying 6710 objects...&amp;lt;br&amp;gt;&lt;br /&gt;
remote:  100% (6710/6710) done&amp;lt;br&amp;gt;&lt;br /&gt;
remote: Total 6710 (delta 5345), reused 156 (delta 123)                :&amp;lt;br&amp;gt;&lt;br /&gt;
Receiving objects: 100% (6710/6710), 1.63 MiB | 25 KiB/s, done.&amp;lt;br&amp;gt;&lt;br /&gt;
Resolving deltas: 100% (5345/5345), done.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can use Cygwin&#039;s git under the DOS shell but if you try the same &lt;br /&gt;
command under the Cygwin (Bash) shell you get an error message.&lt;br /&gt;
&lt;br /&gt;
---&lt;/div&gt;</summary>
		<author><name>Belbear</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15903</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15903"/>
		<updated>2010-04-07T13:27:59Z</updated>

		<summary type="html">&lt;p&gt;Belbear: &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. Notepad is NOT good because it makes a mess of LF-only files.&lt;br /&gt;
Wordpad converts them to Windows-style CR-LF on saving, which is also not good.&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;
Put a shortcut to Notepad2 on your desktop, so you can drop those pesky files-with-no-extension on it from Explorer.&lt;br /&gt;
&lt;br /&gt;
--[[User:Belbear|Belbear]] 12:58, 7 April 2010 (UTC)&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, 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.17&lt;br /&gt;
*w32api-3.14&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;
=== 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://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;
=== 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;
== 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>Belbear</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15902</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15902"/>
		<updated>2010-04-07T13:09:11Z</updated>

		<summary type="html">&lt;p&gt;Belbear: &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;
Additional entries by Chris Van den Bossche a.k.a. Belbear, April 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. Notepad is NOT good because it makes a mess of LF-only files.&lt;br /&gt;
Wordpad converts them to Windows-style CR-LF on saving, which is also not good.&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;
Put a shortcut to Notepad2 on your desktop, so you can drop those pesky files-with-no-extension on it from Explorer.&lt;br /&gt;
&lt;br /&gt;
--[[User:Belbear|Belbear]] 12:58, 7 April 2010 (UTC)&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, 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.17&lt;br /&gt;
*w32api-3.14&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;
=== 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://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;
=== 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;
== 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>Belbear</name></author>
	</entry>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15901</id>
		<title>Win32CompileMSYSNew</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Win32CompileMSYSNew&amp;diff=15901"/>
		<updated>2010-04-07T12:58:40Z</updated>

		<summary type="html">&lt;p&gt;Belbear: Notepad2, TDM MinGW 4.4.1, LUA&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;
Additional entries by Chris Van den Bossche a.k.a. Belbear, April 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. Notepad is NOT good because it makes a mess of LF-only files.&lt;br /&gt;
Wordpad converts them to Windows-style CR-LF on saving, which is also not good.&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;
Put a shortcut to Notepad2 on your desktop, so you can drop those pesky files-with-no-extension on it from Explorer.&lt;br /&gt;
&lt;br /&gt;
--[[User:Belbear|Belbear]] 12:58, 7 April 2010 (UTC)&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, 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.17&lt;br /&gt;
*w32api-3.14&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;
=== 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.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;
== 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://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;
=== 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;
== 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>Belbear</name></author>
	</entry>
</feed>