<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.armagetronad.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=164.58.61.52</id>
	<title>Armagetron Advanced - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.armagetronad.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=164.58.61.52"/>
	<link rel="alternate" type="text/html" href="http://wiki.armagetronad.org/index.php?title=Special:Contributions/164.58.61.52"/>
	<updated>2026-10-16T09:41:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>http://wiki.armagetronad.org/index.php?title=Cross-compiling_Windows_version_from_Linux&amp;diff=18609</id>
		<title>Cross-compiling Windows version from Linux</title>
		<link rel="alternate" type="text/html" href="http://wiki.armagetronad.org/index.php?title=Cross-compiling_Windows_version_from_Linux&amp;diff=18609"/>
		<updated>2007-06-08T10:57:19Z</updated>

		<summary type="html">&lt;p&gt;164.58.61.52: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Just collecting cross-compilation notes.&lt;br /&gt;
&lt;br /&gt;
== Setting up the cross compiler under linux ==&lt;br /&gt;
&lt;br /&gt;
Check your distribution for mingw packages.  If it has it, install them.  If not, try this:&lt;br /&gt;
&lt;br /&gt;
http://www.libsdl.org/extras/win32/cross/&lt;br /&gt;
&lt;br /&gt;
Export some environment variable:&lt;br /&gt;
&lt;br /&gt;
 export CC=i586-mingw32msvc-gcc&lt;br /&gt;
 export CXX=i586-mingw32msvc-c  &lt;br /&gt;
 export LD=i586-mingw32msvc-ld&lt;br /&gt;
 export AR=i586-mingw32msvc-ar&lt;br /&gt;
 export AS=i586-mingw32msvc-as&lt;br /&gt;
 export NM=i586-mingw32msvc-nm&lt;br /&gt;
 export STRIP=i586-mingw32msvc-strip&lt;br /&gt;
 export RANLIB=i586-mingw32msvc-ranlib&lt;br /&gt;
 export DLLTOOL=i586-mingw32msvc-dlltool&lt;br /&gt;
 export OBJDUMP=i586-mingw32msvc-objdump&lt;br /&gt;
 export RESCOMP=i586-mingw32msvc-windres&lt;br /&gt;
&lt;br /&gt;
You might want those in a script.&lt;br /&gt;
&lt;br /&gt;
== Libraries ==&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need to use the same configure command to configure and install the libraries.  Get libSDL and libxml2 and do this:&lt;br /&gt;
&lt;br /&gt;
 ./configure --host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc&lt;br /&gt;
&lt;br /&gt;
Prefix is the location of your cross-compiler, it should have &amp;quot;bin&amp;quot;, &amp;quot;lib&amp;quot;, and &amp;quot;include&amp;quot; in it.&lt;br /&gt;
&lt;br /&gt;
To get libxml2 to cross-compile, use this as your configure command:&lt;br /&gt;
&lt;br /&gt;
 ./configure --host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc --with-python=no&lt;br /&gt;
&lt;br /&gt;
== Armagetron Advanced ==&lt;br /&gt;
&lt;br /&gt;
You need to set some influential environment variables to make it configure.&lt;br /&gt;
&lt;br /&gt;
XML2_CONFIG=/path/to/cross-compiled/xml2-config&lt;br /&gt;
SDL_CONFIG=/path/to/cross-compiled/sdl-config&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 XML2_CONFIG=/usr/i586-mingw32msvc/bin/xml2-config SDL_CONFIG=/usr/i586-mingw32msvc/bin/sdl-config ../../armagetronadnew/configure --host=i586-mingw32msvc --prefix=/usr/i586-mingw32msvc --disable-sound&lt;br /&gt;
&lt;br /&gt;
Currently it&#039;s failing for me with this line:&lt;br /&gt;
&lt;br /&gt;
  checking for glVertex3f in -lopengl32... no&lt;br /&gt;
  OpenGL not found. Maybe it needs X11 to compile? Checking that...&lt;br /&gt;
&lt;br /&gt;
== Dedicated Server ==&lt;br /&gt;
&lt;br /&gt;
Same as above, only try this configure line instead:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 XML2_CONFIG=/usr/i586-mingw32msvc/bin/xml2-config SDL_CONFIG=/usr/i586-mingw32msvc/bin/sdl-config CFLAGS=&amp;quot;-I/usr/i586-mingw32msvc/include -DNO_SOCKLEN_T&amp;quot; CXXFLAGS=&amp;quot;-I/usr/i586-mingw32msvc/include&amp;quot; ../../armagetronadnew/configure --host=i586-mingw32msvc --prefix=/home/dave/Projects/armagetronad/aabuild/win32install --disable-sound --disable-glout --disable-binreloc&lt;br /&gt;
&lt;br /&gt;
This will configure and build the dedicated server with a recent trunk checkout.  The dedicated server that&#039;s built this way has a few issues to work out, but it&#039;ll run in Win98 and Wine, the difference being that in Wine you can&#039;t connect a client to it.&lt;/div&gt;</summary>
		<author><name>164.58.61.52</name></author>
	</entry>
</feed>