6.3 Cross compilation for Windows with Linux
- Install the MinGW cross compilation tools available at
http://www.mingw.org/.
- Install the Win32 version of SDL (http://www.libsdl.org) by
unpacking i386-mingw32msvc.tar.gz. Set up the PATH environment
variable so that i386-mingw32msvc-sdl-config can be launched by
the QEMU configuration script.
- Configure QEMU for Windows cross compilation:
./configure --enable-mingw32
If necessary, you can change the cross-prefix according to the prefix
chosen for the MinGW tools with –cross-prefix. You can also use
–prefix to set the Win32 install path.
- You can install QEMU in the installation directory by typing
make install. Don't forget to copy SDL.dll in the
installation directory.
Note: Currently, Wine does not seem able to launch
QEMU for Win32.