Meego Wiki
Views

SDK/Build QEMUGL from source on MAC

From MeeGo wiki
< SDK(Difference between revisions)
Jump to: navigation, search
(Created page with "Below page describes the steps to build and run QEMUGL on Mac machines. The steps are verified on MacBook Pro (Mac OS X 10.6.7) == Prerequisites == Install Xcode <br> Install SDL...")
 
Line 1: Line 1:
-
Below page describes the steps to build and run QEMUGL on Mac machines. The steps are verified on MacBook Pro (Mac OS X 10.6.7)
+
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. <br>
 +
The steps are verified on MacBook Pro (Mac OS X 10.6.7)
== Prerequisites ==
== Prerequisites ==
Install Xcode <br>
Install Xcode <br>
 +
Install SDL package <br>
Install SDL package <br>
 +
Download SDL 1.2.14 source code from below web page: <br>
 +
http://www.libsdl.org/download-1.2.php <br>
 +
and manually build and install the library from source <br>
 +
Download QEMUGL source code.
Download QEMUGL source code.
  git clone git://gitorious.org/qemu-maemo/qemu.git
  git clone git://gitorious.org/qemu-maemo/qemu.git
-
Checkout qemugl code. Right now the temporary branch is used.
+
Checkout qemugl code.
  git checkout -b qemugl-merge --track origin/qemugl-merge
  git checkout -b qemugl-merge --track origin/qemugl-merge
== Building ==  
== Building ==  
  cd qemu
  cd qemu
-
  ./configure --enable-gl --enable-sdl --target-list=i386-softmmu
+
Edit "configure" file, in line 1257, remove the test of "if" <br>
 +
Edit "configure" file, in line 1290, add below line: <br>
 +
  #undef main
 +
Edit "target-i386/gloffscreen_common.c", change "include <GL/gl.h>" to "include <OpenGL/gl.h>    <br>
 +
Edit "target-i386/gloffscreen_test.c", change "include <GL/gl.h>" to "include <OpenGL/gl.h>      <br>
 +
configure and build QEMU source code.
 +
./configure --enable-gl --enable-sdl --target-list=i386-softmmu
 +
make
== Run with QEMU ==
== Run with QEMU ==
Download qemu image, for instance, from below link:
Download qemu image, for instance, from below link:

Latest revision as of 06:53, 13 July 2011

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