Raspberry Pi support


With SDL2 and the OpenGL ES support in the 20150214 relese, it is now possible to run the game on systems like the Raspberry Pi and MIPS Creator CI20.

With a Raspberry Pi B+ running Raspbian in Turbo mode, I build SDL 2 with these configure settings:
./configure --disable-video-x11 --disable-video-opengl

And then build avp with these cmake settings:
cmake … -DSDL_TYPE=SDL2 -DOPENGL_TYPE=OPENGLES -DCMAKE_C_FLAGS="-DNDEBUG -Ofast -pipe -march=armv6j -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -ffast-math -fno-math-errno -g -DFIXED_WINDOW_SIZE" -DCMAKE_CXX_FLAGS="-DNDEBUG -Ofast -pipe -march=armv6j -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -ffast-math -fno-math-errno -g -DDFIXED_WINDOW_SIZE" -DCMAKE_EXE_LINKER_FLAGS="-g"




The CMake project currently prefers SDL1 over SDL2 and desktop OpenGL over OpenGL ES, but it’s possible to override these settings when running cmake.

To force use of SDL2 and OpenGL ES:

I’ve updated my post with these settings.