Tuesday, June 22, 2010

#quake #sdl on #haikuos

wget http://www.libsdl.org/projects/quake/data/quakesw-1.0.6.tar.gz
wget http://www.libsdl.org/projects/quake/src/sdlquake-1.0.9.tar.gz

tar -x --strip-components=1 -f sdlquake-1.0.9.tar.gz
tar -x -f quakesw-1.0.6.tar.gz

wget http://gist.github.com/raw/448637/e43f70ff6e6e7bbdac1a26b4b0886d162a1ab7a2/sys_sdl.patch

wget http://gist.github.com/raw/448609/d077f11f4cb72e0044773bda2ce1a921389f508d/net_udp.patch

http://gist.github.com/raw/448637/e43f70ff6e6e7bbdac1a26b4b0886d162a1ab7a2/net_dgrm.patch

patch -p1 < sys_sdl.patch
patch -p1 < net_dgrm.patch
patch -p1 < sys_sdl.patch

./configure --host=i686-beos

or you can enable asm optimizations too if you want so

./configure --host=i686-beos --enable-asm

make

./sdlquake


Bellow is why i needed the patches and what they do

first i had this error
sys_sdl.c:16:21: error: sys/shm.h: No such file or directory

deleted the line with

#include sys/shm.h





I have reviewed the udp patches from native client to disable udp related communication







My next patches will be the ones with audio to make it usable and also the network should be reenabled somehow 

2 comments:

Unknown said...

I am confused by the directions. They says to wget a net_dgrm.patch, a net_udp.patch, and then a second net_dgrm.patch.

The patching section then says to use a sys_sdl.patch, a net_dgrm.patch, and then a second sys_sdl.patch.

From where are the 2 sys_sdl patches retrieved and which of the 2 net_dgrm patches are used?

Popa Adrian Marius said...

thanks for the observation the first one is sys_sdl patch

now is fixed