(→Build environment) |
(→Build environment) |
||
| Line 13: | Line 13: | ||
cd /mingw/lib | cd /mingw/lib | ||
ln -s libpthread.dll.a libpthread.a (windows may create hard file instead of symbolic link. It is fine as well) | ln -s libpthread.dll.a libpthread.a (windows may create hard file instead of symbolic link. It is fine as well) | ||
| - | Download source package of libSDL-1.2 from [http://www.libsdl.org/download-1.2.php here]. Copy SDL-1.2.14.tar.gz into c:/mingw/msys/1.0/home/xxx/. | + | |
| + | Download source package of libSDL-1.2 from [http://www.libsdl.org/download-1.2.php here]. Copy SDL-1.2.14.tar.gz into c:/mingw/msys/1.0/home/xxx/. Then in msys terminal: | ||
tar xzvf SDL-1.2.14.tar.gz | tar xzvf SDL-1.2.14.tar.gz | ||
cd SDL-1.2.14 | cd SDL-1.2.14 | ||
| Line 20: | Line 21: | ||
make install | make install | ||
| - | Download source package of zlib-1.2.3 from [http://gnuwin32.sourceforge.net/packages/zlib.htm here]. Get zlib-1.2.3 source directory and copy it into c:/mingw/msys/1.0/home/XXX/ | + | Download source package of zlib-1.2.3 from [http://gnuwin32.sourceforge.net/packages/zlib.htm here]. Get zlib-1.2.3 source directory and copy it into c:/mingw/msys/1.0/home/XXX/. |
| + | Then in msys terminal: | ||
cd zlib-1.2.3 | cd zlib-1.2.3 | ||
./configure --prefix=/mingw | ./configure --prefix=/mingw | ||
| Line 26: | Line 28: | ||
make install | make install | ||
| - | Download source package of libpng 1.4.5 from [http://www.libpng.org/pub/png/libpng.html here]. Copy libpng-1.4.5.tar.gz into c:/mingw/msys/1.0/home/xxx/. | + | Download source package of libpng 1.4.5 from [http://www.libpng.org/pub/png/libpng.html here]. Copy libpng-1.4.5.tar.gz into c:/mingw/msys/1.0/home/xxx/. Then in msys terminal: |
tar xzvf libpng-1.4.5.tar.gz | tar xzvf libpng-1.4.5.tar.gz | ||
cd libpng-1.4.5 | cd libpng-1.4.5 | ||
| Line 32: | Line 34: | ||
make | make | ||
make install | make install | ||
| + | |||
| + | Download wglext.h from [http://www.opengl.org/registry/ here], and copy the file into /mingw/include/GL/ directory. <br> | ||
| + | |||
| + | Get QEMU-GL code from MeeGo gitorious [http://meego.gitorious.org/meego-developer-tools/meego-emulator-qemugl-x86 here]. Switch to the branch "qemugl-on-qemu-0.11". <br> | ||
mingw is used to build QEMU from source on Windows.
Go to MinGW download page, download mingw-get-inst-20101030.exe, and run the installer.
Use pre-packaged repository cataloguse 20101030
select "C Compiler", "MSYS Basic System" and "MinGW Developer ToolKit"
After installing minGW successfully, open an msys terminal by clicking c:/mingw/msys/1.0/msys.bat (suppose minGW is installed in c:/mingw. The same to below when "c:/mingw" is used)
run below commands to install more packages needed:
mingw-get.exe install libpthread mingw-get.exe install libexpat
create link for libpthread.a
cd /mingw/lib ln -s libpthread.dll.a libpthread.a (windows may create hard file instead of symbolic link. It is fine as well)
Download source package of libSDL-1.2 from here. Copy SDL-1.2.14.tar.gz into c:/mingw/msys/1.0/home/xxx/. Then in msys terminal:
tar xzvf SDL-1.2.14.tar.gz cd SDL-1.2.14 ./configure --prefix=/mingw make make install
Download source package of zlib-1.2.3 from here. Get zlib-1.2.3 source directory and copy it into c:/mingw/msys/1.0/home/XXX/. Then in msys terminal:
cd zlib-1.2.3 ./configure --prefix=/mingw make make install
Download source package of libpng 1.4.5 from here. Copy libpng-1.4.5.tar.gz into c:/mingw/msys/1.0/home/xxx/. Then in msys terminal:
tar xzvf libpng-1.4.5.tar.gz cd libpng-1.4.5 ./configure --prefix=/mingw make make install
Download wglext.h from here, and copy the file into /mingw/include/GL/ directory.
Get QEMU-GL code from MeeGo gitorious here. Switch to the branch "qemugl-on-qemu-0.11".