<?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=Harddisk</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=Harddisk"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Harddisk/"/>
	<updated>2026-11-04T16:54:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=WinCECompile&amp;diff=15401</id>
		<title>WinCECompile</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=WinCECompile&amp;diff=15401"/>
		<updated>2010-01-14T23:33:45Z</updated>

		<summary type="html">&lt;p&gt;Harddisk: /* Known issues */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
This is a guide for cross-compiling VLC for Windows CE on Linux with a step-by-step instruction to download, install, configure and build your VLC.&lt;br /&gt;
&lt;br /&gt;
First, you might want to take a look at [[Win32Compile|compiling instructions for Win32]], as the process is roughly the same, and it includes useful discussion and explanations.&lt;br /&gt;
&lt;br /&gt;
= Building VLC =&lt;br /&gt;
&lt;br /&gt;
==Prepare your environment==&lt;br /&gt;
VLC uses automake, autoconf and friends for compilation. Make sure they are up to date and usable for your system.&lt;br /&gt;
&lt;br /&gt;
===Get mingw32ce===&lt;br /&gt;
To compile VLC, we use Mingw32CE, a cross-development environment for Windows CE. Download the latest version on [http://cegcc.sourceforge.net/ Sourceforge].&lt;br /&gt;
&lt;br /&gt;
Go the the directory where you dowloaded CeGCC, and untar it, for example:&lt;br /&gt;
 % tar xjf arm-mingw32ce-0.59.1.tar.bz2 -C /&lt;br /&gt;
&lt;br /&gt;
You should now see the folder /opt/mingw32ce.&lt;br /&gt;
&lt;br /&gt;
==Get the source==&lt;br /&gt;
Start by [[GetTheSource|getting the source]], using FTP for releases, or using [[Git]] for development.&lt;br /&gt;
If your are using the release, download source code and extract the archive and go into your VLC directory.&lt;br /&gt;
 % cd /path/to/your/vlc/folder/&lt;br /&gt;
&lt;br /&gt;
If you are using the [[Git]] version, start by bootstrapping your VLC.&lt;br /&gt;
 % cd /path/to/your/vlc/folder/&lt;br /&gt;
 % ./bootstrap&lt;br /&gt;
&lt;br /&gt;
==Get the contribs==&lt;br /&gt;
You can get official WinCE contribs on [http://download.videolan.org/pub/testing/contrib/ http://download.videolan.org/pub/testing/contrib/], for example [http://download.videolan.org/pub/testing/contrib/contrib-20091114-wince-bin-gcc-4.1.0-runtime-3.15.2-only.tar.bz2 contrib-20091114-wince-bin-gcc-4.1.0-runtime-3.15.2-only.tar.bz2]. Uncompress them in &amp;lt;code&amp;gt;/usr/wince&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
You need to tweak your configure line.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;./configure&amp;lt;/tt&amp;gt; is used to check whether your system is able to compile VLC.&lt;br /&gt;
Also you choose the functionalities of your build.&lt;br /&gt;
 % ./configure --help&lt;br /&gt;
will show you the various options&lt;br /&gt;
&lt;br /&gt;
Create a new file named conf-vlc.sh and add in it:&lt;br /&gt;
&lt;br /&gt;
 PATH=/opt/mingw32ce/bin:$PATH \&lt;br /&gt;
 CPPFLAGS=&amp;quot;-I/usr/wince/include -D_WIN32_WCE=0x0500&amp;quot; \&lt;br /&gt;
 LDFLAGS=&amp;quot;-L/usr/wince/lib&amp;quot; \&lt;br /&gt;
 PKG_CONFIG_LIBDIR=/usr/wince/lib/pkgconfig \&lt;br /&gt;
 ./configure --host=arm-mingw32ce --enable-optimize-memory \&lt;br /&gt;
             --disable-directx --disable-dvdnav --disable-libgcrypt \&lt;br /&gt;
             --disable-mad --disable-remoteosd --disable-sdl --disable-skins2&lt;br /&gt;
&lt;br /&gt;
You will probably want to add more options like &amp;lt;code&amp;gt;--disable-sout --disable-httpd --disable-vlm&amp;lt;/code&amp;gt; to remove stuff that you won&#039;t need if your device is limited in storage space and memory.&lt;br /&gt;
&lt;br /&gt;
Save the file and make it executable:&lt;br /&gt;
 % chmod u+x conf-vlc.sh&lt;br /&gt;
&lt;br /&gt;
== Compiling source code ==&lt;br /&gt;
Now run your configuration script and build VLC:&lt;br /&gt;
 % ./conf-vlc.sh&lt;br /&gt;
 % make&lt;br /&gt;
&lt;br /&gt;
== Creating self contained packages ==&lt;br /&gt;
&lt;br /&gt;
Once the compilation is done, you can build self-contained VLC packages with the following command:&lt;br /&gt;
&lt;br /&gt;
 make package-wince&lt;br /&gt;
&lt;br /&gt;
This will create a vlc-x.x.x.zip archive. Transfer it on your device, uncompress it and enjoy!&lt;br /&gt;
&lt;br /&gt;
There is not (yet) an option to build a .cab file.&lt;br /&gt;
&lt;br /&gt;
= Using and Debugging VLC =&lt;br /&gt;
&lt;br /&gt;
== Interacting with your device ==&lt;br /&gt;
&lt;br /&gt;
Use [http://www.synce.org SynCE] to synchronize your device with Linux. Or find an Windows machine with ActiveSync installed and download your fresh new VLC build.&lt;br /&gt;
&lt;br /&gt;
== Debugging VLC ==&lt;br /&gt;
&lt;br /&gt;
CeGCC provides a stub for GDB to permit remote debugging on Windows CE. To use it, go in the vlc folder:&lt;br /&gt;
 % cd vlc-1.0.0&lt;br /&gt;
 % arm-mingw32ce-gdb vlc.exe&lt;br /&gt;
&lt;br /&gt;
This GDB will upload vlc.exe to /gdb/ on the device. Make sure you uploaded all the VLC directory on your device.&lt;br /&gt;
&lt;br /&gt;
Then, follow the [http://cegcc.sourceforge.net/docs/debugging.html demo of a debugging session] for Windows CE.&lt;br /&gt;
&lt;br /&gt;
== Known issues ==&lt;br /&gt;
&lt;br /&gt;
* There is &#039;&#039;&#039;no usable GUI&#039;&#039;&#039; for WinCE. There is a WinCE GUI module, however, it is unmaintained and badly broken. In the 1.0 branch, it will compile, load and show up when you launch VLC, but it doesn&#039;t work (clicking on buttons doesn&#039;t do anything etc). In the 1.1 branch, it simply doesn&#039;t compile anymore: use &amp;lt;code&amp;gt;--disable-wince&amp;lt;/code&amp;gt; to skip it. Yes, not having a GUI makes VLC pretty useless, so contributions from developers are badly welcome.&lt;br /&gt;
*: The diffs in which the WinCE GUI was removed are [http://repo.or.cz/w/vlc.git/commitdiff/745cf118bbab187333d581b692f93cd4ca2da898 this one] and [http://repo.or.cz/w/vlc.git/commitdiff/ba2736f415a73cc336663387e2d3b9225635a8e9 this one].&lt;br /&gt;
&lt;br /&gt;
* When launching VLC, if you get an error saying &amp;quot;&amp;lt;code&amp;gt;vlc.exe is not a valid PocketPC application&amp;lt;/code&amp;gt;&amp;quot; (and you use Windows Mobile 6.1), read [http://cegcc.sourceforge.net/docs/faq.html#DllDoesNotWorkWithWindowsMobile6.1 this] and set up your registry accordingly (yes, that&#039;s one entry for &amp;lt;code&amp;gt;libvlc.dll&amp;lt;/code&amp;gt;, one for &amp;lt;code&amp;gt;libvlccore.dll&amp;lt;/code&amp;gt;, and one for every DLL in the plugins directory; good luck).&lt;br /&gt;
&lt;br /&gt;
* If an error message appears about missing DLLs, it might be due to mingw32ce dynamically linking against libgcc. The build system of VLC doesn&#039;t fetch and include this library when it creates the package, which is why it is missing. Try looking for &amp;lt;code&amp;gt;libgcc*.dll&amp;lt;/code&amp;gt; files in &amp;lt;code&amp;gt;/opt/mingw32ce&amp;lt;/code&amp;gt; and copying them in the directory where you extracted VLC. For the same reason, some C++ plugins might refuse to load due to a missing libstdc++ DLL, so you&#039;ll want to copy &amp;lt;code&amp;gt;libstdc++-6.0.dll&amp;lt;/code&amp;gt; onto your device too.&lt;br /&gt;
&lt;br /&gt;
* Up to Windows CE 5.0, the memory model limits each process to 32 MB of virtual address space. If you compiled VLC with too many plugins, they will quickly fill up those 32 MB, which leads too missing features, or VLC simply freezing. In any case, check the &amp;lt;code&amp;gt;vlc-log.txt&amp;lt;/code&amp;gt; file in the root directory for &amp;lt;code&amp;gt;Error 14&amp;lt;/code&amp;gt; logs. If you find some, you can try reducing the memory footprint of VLC by disabling some modules during the &amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt; and/or removing them from the plugins directory. In my experience, VLC can load a maximum of roughly 16 MB of plugins.&lt;br /&gt;
&lt;br /&gt;
* If the colors are wrong when playing a video (red and blue swapped), try removing the libswscale plugin.&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;/div&gt;</summary>
		<author><name>Harddisk</name></author>
	</entry>
</feed>