Difference between revisions of "Building DOOM with scratchbox2"
Jump to navigation
Jump to search
m (added link) |
m |
||
Line 1: | Line 1: | ||
− | First, follow the tutorial [[ScratchBox2_cross_compiling_with_SDL | + | First, follow the tutorial [[ScratchBox2_cross_compiling_with_SDL]] to set up the cross compilation environment. |
Next, download the sdlDOOM source code: | Next, download the sdlDOOM source code: |
Revision as of 02:02, 6 January 2010
First, follow the tutorial ScratchBox2_cross_compiling_with_SDL to set up the cross compilation environment.
Next, download the sdlDOOM source code:
wget http://www.libsdl.org/projects/doom/src/sdldoom-1.10.tar.gz cd sdldoom-1.10
Now run scratchbox2 with the webos / pre mapping file:
$ sb2 -M /srv/preware/cross-compile/staging/mapping-armv7
You will get a different prompt indicating you are in a scratchbox shell, like:
[SB2 mapping-armv7 armv7] $
Run:
./configure --with-sdl-prefix=/usr/local make
Build should complete successfully with no problems. Download a DOOM shareware WAD:
wget http://www.libsdl.org/projects/doom/data/doom1.wad.gz gunzip doom1.wad.gz
Copy the DOOM program binary and wad to root's home directory on the pre:
scp doom doom1.wad root@pre:
SSH to the device (novaterm would also work to get there, or an on-device terminal)
ssh root@pre
On the device, run DOOM:
./doom
Yay, it should now run. You may want to customize the code for better controls on the device.