-
Notifications
You must be signed in to change notification settings - Fork 15
Custom SDL2 build for ARM
Mátyás Mustoha edited this page Nov 13, 2016
·
1 revision
Using the default SDL2 library shipped with Debian/Raspian, hardware acceleration may not work properly, causing slowness and ugly graphics. For the best performance, it is recommended to build your own SDL2. With hardware acceleration, OpenBlok runs full speed even on a first-gen Raspberry Pi.
wget https://www.libsdl.org/release/SDL2-2.0.5.tar.gz
tar xzf SDL2-2.0.5.tar.gz
cd SDL2-2.0.5
mkdir build && cd build
# The following parameters are based on the Debian build,
# with the addition of disabling certain drivers
../configure \
--prefix=/usr \
--disable-rpath --enable-sdl-dlopen --disable-loadso \
--disable-nas --disable-esd --disable-arts \
--disable-alsa-shared --disable-pulseaudio-shared \
--enable-ibus \
--enable-video-opengles \
--disable-video-wayland \
--disable-video-x11 \
--disable-video-mir \
--disable-video-opengl
make
sudo make install # or checkinstall