Below page describes the steps to build and run QEMUGL on Mac machines. Since the QEMU x86 for MeeGo has not yet formally been rebased to 0.14, right now the temporary branch is used. The branch was created by Juha, who added agl backend for QEMUGL x86. Below steps contains some manual config changes.
The steps are verified on MacBook Pro (Mac OS X 10.6.7)
Install Xcode
Install SDL package
Download SDL 1.2.14 source code from below web page:
http://www.libsdl.org/download-1.2.php
and manually build and install the library from source
Download QEMUGL source code.
git clone git://gitorious.org/qemu-maemo/qemu.git
Checkout qemugl code.
git checkout -b qemugl-merge --track origin/qemugl-merge
cd qemu
Edit "configure" file, in line 1257, remove the test of "if"
Edit "configure" file, in line 1290, add below line:
#undef main
Edit "target-i386/gloffscreen_common.c", change "include <GL/gl.h>" to "include <OpenGL/gl.h>
Edit "target-i386/gloffscreen_test.c", change "include <GL/gl.h>" to "include <OpenGL/gl.h>
configure and build QEMU source code.
./configure --enable-gl --enable-sdl --target-list=i386-softmmu make
Download qemu image, for instance, from below link:
http://repo.meego.com/MeeGo/builds/1.1.99/latest/images/meego-tablet-ia32-qemu/
extract the bz2 file to get the raw image:
tar -xf xxx.tar.bz2
run the image with the newly built qemu binary
qemugl -hda xxx.raw -m 1024 -vga std -enable-gl