First major step: prepare the MinGW 64-bit environment for the dependency components of QEMU
Requirements
Get the MinGW-w64 package from here:
http://mingw-w64.sourceforge.net/downlo ... ngw-builds
And check the downloads, and, in the installer of MinGW 64-bit, use the sjsj exception, use gcc 4.8.1, and win32 thread and rev1.
However, this does not install MSYS by default, so you need to get it separately, from here: http://sourceforge.net/projects/mingw-w ... 32-bit%29/
Install Python 2.7 from here:
http://www.python.org/download/releases/2.7/
Accept the default directory it gives (C:\Python27).
After being installed, make a copy of python.exe as python2.5.exe.
Once gotten, we can start compiling the dependencies.
1)
Get the latest release of libffi from here:
http://www.mirrorservice.org/sites/sour ... ub/libffi/
compile it with:
Code: Select all
./configure --prefix=/c/mingw-builds/mingw64 --build=x86_64-w64-mingw32
make
make install
Get libiconv-1.14 from here:
http://ftp.gnu.org/pub/gnu/libiconv/lib ... .14.tar.gz
compile it with:
Code: Select all
./configure --prefix=/c/mingw-builds/mingw64 --build=x86_64-w64-mingw32
make
make install
Get the latest release of gettext from here:
http://ftp.gnu.org/gnu/gettext/
compile it with the following options:
Code: Select all
./configure --prefix=/c/mingw-builds/mingw64 --enable-threads=win32 --enable-relocatable --build=x86_64-w64-mingw32
make
make install
Code: Select all
PATH=/c/Python27:/c/Python27/DLLs:$PATH
export PATH
Watch out again! As explained in the official Qemu website, Glib 2.23 and higher in x64 mode won't make Qemu work!.
Get glib for win64 here (x64):
http://www.gtk.org/download/win64.php (grab the sources instead of the dev and bin)
compile it first with:
Code: Select all
export LIBFFI_CFLAGS='-I /c/mingw-builds/mingw64/lib/libffi-3.0.13/include'
export LIBFFI_LIBS=-lffi
export lt_cv_deplibs_check_method="pass_all"
export CFLAGS="-O0 -g -pipe -Wall -mms-bitfields -mthreads"
export CPPFLAGS="-DG_ATOMIC_OP_USE_GCC_BUILTINS=1"
configure -prefix=/c/mingw-builds/mingw64 -with-pcre=internal -disable-static -disable-gtk-doc -enable-silent-rules -build=x86_64-w64-mingw32
make
make install
5)
Grab pkg-config from here:
http://pkgconfig.freedesktop.org/releases/
compile it with:
Code: Select all
export GLIB_CFLAGS="-I /c/mingw-builds/mingw64/include/glib-2.0 -I /c/mingw-builds/mingw64/lib/glib-2.0/include"
export GLIB_LIBS="-lglib-2.0"
configure -prefix=/c/mingw-builds/mingw64 -build=x86_64-w64-mingw32
make
make install
Rebuild Glib with these options instead:
Code: Select all
configure -prefix=/c/mingw-builds/mingw64 -build=x86_64-w64-mingw32
make
make install
Grab SDL from here:
http://www.libsdl.org/download-1.2.php (Select the mingw32 one)
compile it with:
Code: Select all
configure -prefix=/c/mingw-builds/mingw64 -build=x86_64-w64-mingw32
make
make install
Grab pixman from here:
http://pkgs.fedoraproject.org/repo/pkgs ... 0a9a15f20/
compile it with:
Code: Select all
configure -prefix=/c/mingw-builds/mingw64 -build=x86_64-w64-mingw32
make
make install
If you want to compile QEMU 1.x, you need to put, every time, the python path to the MSYS shell that is shown above in this tutorial.
Grab the latest git release here:
http://wiki.qemu.org/Main_Page
and start compiling with:
Code: Select all
./configure
make
make install