Blame | Last modification | View Log | Download | RSS feed
DXX-Rebirth for the Raspberry PiBUILDING:=========Make sure you have installed (the development packages of) all of the requiredlibraries (libsdl, libphysfs, ...). For building, you will also need scons (andfor that, python). Most linux distributions should contain all the requiredpackages, debain/raspbian do so for sure. Using a distribution with hardfp ABIis recommended for optimal performance. I developed/tested this on a raspbianwheezy.Multiple build configurations are possible for the Pi, depending on whether youwish to use the legacy vendor graphics driver or experimental Mesa VC4 driver.To build against the legacy vendor graphics driver (recommended for most users):scons raspberrypi=1If you're using a firmware release older than 1.20160921-1, it's highlyrecommended that you upgrade, but if that's not an option, you must manuallyspecify the original GLES/EGL library names:scons raspberrypi=1 egl_lib=EGL opengles_lib=GLESv2This assumes that the development files (libs/headers) for the VideoCore APIsare located in /opt/vc. You can use rpi_vc_path to specify another location.If you wish to build for Raspberry Pi 4B or the experimental Mesa VC4 driver:scons raspberrypi=mesaThis will select the GL interface with SDL2 by default, but you can selectGLES & SDL1 by adding "opengles=1 sdl2=0". Keep in mind that as of Raspbian buster,the Mesa packages no longer ship with GLESv1 headers, making GLES builds impossible.Additionally, SDL2 is highly recommended, as its KMSDRM video driver is the onlyway to run DXX-Rebirth on a Raspberry Pi 4B outside of an Xorg session.For all other options, check "scons -h".Currently, there is no direct support for crosscompiling.RUNNING:========The game should run with X11 or directly on the console (libsdl with fbcon/directfb driver).NOTE: *** PLEASE USE THE 128/128MB MEMORY SPLIT ***The game might completely freeze or diplay messed up graphics inout-of-(GPU)-memory situations. If you want to run it with the 192/64MB memorysplit, you might be able to do so by setting the texture filter to "NONE" inthe graphics options. (This disables mip mapping and reduces the memoryrequirements of the textures. Note that the "BILINEAR" filter still usesmipmapping).If the game freezes during the "Prepare for Descent" phase when loading alevel, you probably do not have enough GPU memory.RUNNING ON X11:===============Recommendation is to use fullscreen mode. However, you can run in "windowed"mode, too. The game will open an X11 window in that case, and the actual gameoutput will be an overlay of the same size, but not at the same position, andalways on top (and completely out of control of the X Server). Game input isstill handled via the X11 window, so make sure it has the focus.RUNNING ON THE CONSOLE:=======================libsdl supports running directly on the Linux console. While the SDL Video modeis technically not required on the RPi, we still have to use it to get all theinput events we need. libsdl seems to have problems on the RPi, I always get acrash in libsdl when trying to change the resolution. To avoid such crashes,the code will try to detect if it is running on the console and activate a hackto prevent switching the resolution. Note that the in-game framebufferresolution can still be changed, the RPi will just scale the output to theinitial resolution (in "fullscreen" mode). "Windowed" mode will just result inunscaled output. As libsdl creates a black screen, you will not be able to havethe "Window" on top of the linux console output :(NOTE: You might need root privileges to use the libsdl fbcon/directfb drivers.BUGS, SUGGESTIONS AND FEEDBACK:===============================The RPi patch was written by:Marcel Heinz <derhass@arcor.de>Send bug reports, suggestions and other feedback regarding the operationon the RPi to me via email.-- derhass, 2012-08-09