Page 5 of 5

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Thu Sep 08, 2016 2:57 am
by exobuzz
I have looked at the original darkplaces code - and with some minor source changes and a quick makefile hack, I have it built on the rpi with GLES2 acceleration - will clean up my changes and provide source changes needed to build on the RPI (and will include in retropie)

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Thu Sep 08, 2016 9:55 am
by Super Jamie
Thanks exobuzz for being the real MVP.

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Thu Sep 08, 2016 1:12 pm
by Vanfanel
Wow, this is going to be great!

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Thu Sep 08, 2016 1:49 pm
by exobuzz
To build on RPI

Code: Select all

git clone -b rpi https://github.com/joolswills/darkplaces
make sdl-release DP_MAKE_TARGET=rpi

RPI2 optimised - 

CFLAGS="-mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations" make -j4 sdl-release DP_MAKE_TARGET=rpi


RPI3 optimised (may well not performance better than the rpi2 build) - 

CFLAGS="-mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -funsafe-math-optimizations" make -j4 sdl-release DP_MAKE_TARGET=rpi
you end up with a file "darkplaces-sdl`

you can call it with `darkplaces-sdl -basedir /path/to/parent/of/id1/folder`

A retropie module will be available shortly.

Here are the source changes from upstream - very few changes required - https://github.com/joolswills/darkplace ... swills:rpi

might have bugs / I have only done limited testing.

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Thu Sep 08, 2016 6:47 pm
by Vanfanel
@exobuzz: thanks a lot for this! Any chance to build it agains SDL2 instead of the old SDL1.x?

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Thu Sep 08, 2016 7:04 pm
by exobuzz
It uses sdl2 here - I forgot to mention that a raspberrypi targetted sdl2 is required also (eg like the one included in RetroPie)

Code: Select all

readelf -d ./darkplaces-sdl 

Dynamic section at offset 0x2ae00c contains 32 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libjpeg.so.62]
 0x00000001 (NEEDED)                     Shared library: [librt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libSDL2-2.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libGLESv2.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
an easy way to install it is via RetroPie (for other people on this thread)

Code: Select all

sudo apt-get install git
cd
git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git
cd RetroPie-Setup

then - to just install darkplaces-quake from source

sudo ./retropie_packages_sh darkplaces-quake

or to do it from a gui

sudo ./retropie_setup.sh

then navigate to Manage Packages -> manage Optional packages -> darkplaces-quake (under id 3xx)

it will be installed to /opt/retropie/ports/darkplaces-quake
here is the RetroPie module https://github.com/RetroPie/RetroPie-Se ... s-quake.sh

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Thu Sep 08, 2016 8:07 pm
by Vanfanel
Works great on Pi3! Not quite constant 60fps, but almost there...

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Sun Sep 11, 2016 8:47 am
by Vanfanel
@exobuzz: any clues to get to stable 60FPS on Pi3? Things to do on the Quake console, options to disable...

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Sun Sep 11, 2016 9:01 am
by exobuzz
Not done any experimenting I'm afraid.

Re: NEW: Darkplaces Quake engine up and running on Raspberry

Posted: Fri Mar 10, 2017 6:51 am
by antiriad
Hello,
I'd like to enjoy Darkplaces on RPi3.

Are "unofficial" SDL 2.X (2.0.4, 2.05) needed for better performance, or since the engine is yet GLES optimized I can build it with SDL2 in the official Jessie repository?

Thanks!

Re: NEW: Darkplaces Quake engine up and running on Raspberry PI

Posted: Sun Apr 08, 2018 1:17 pm
by Haemogoblin
Hey guys

Did this with on the latest version of Stretch?

Re: NEW: Darkplaces Quake engine up and running on Raspberry PI

Posted: Tue Apr 10, 2018 7:36 pm
by Haemogoblin
Just a heads up, the following command does not work on a RPI3 running stretch.

make sdl-release DP_MAKE_TARGET=rpi

Seems to have issue with SDL

Re: NEW: Darkplaces Quake engine up and running on Raspberry PI

Posted: Sat Nov 10, 2018 2:45 pm
by victor256
i fixed it but NOW i have THIS error:
Flags: 0x00000009* failed to add service - already in use?
any fix?