Meego Wiki
Views

SDK/Build QEMUGL from source on MAC

From MeeGo wiki
< SDK
Revision as of 06:53, 13 July 2011 by Zhiyuan (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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)

Prerequisites

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

Building

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

Run with QEMU

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
Personal tools