Files
UltraGrid/.github/scripts/Linux/install_sdl.sh
Martin Pulec dae8192c4d CI Linux: build own SDL2
This fixed crashing on Wayland (only - Weston without XWayland) in both U20.04 and
U22.04.
2022-10-24 15:06:23 +02:00

28 lines
744 B
Bash
Executable File

#!/bin/sh -eu
sudo aptitude -y build-dep libsdl2 libsdl2-mixer libsdl2-ttf libsdl2-dev:
# v2.0.22 requires wayland-client version 1.18.0 but in U18.04 is only 1.16.0
curl -sSLO https://github.com/libsdl-org/SDL/releases/download/release-2.0.20/SDL2-2.0.20.tar.gz
tar xaf SDL2*tar*
cd SDL2-2.0.20
./configure
make -j "$(nproc)"
sudo make install
cd ..
git clone --depth 1 https://github.com/libsdl-org/SDL_mixer
cd SDL_mixer
./configure
make -j "$(nproc)"
sudo make install
cd ..
# v2.0.18 and further require automake 1.16 but U18.04 has only automake 1.15.1
git clone -b release-2.0.15 --depth 1 https://github.com/libsdl-org/SDL_ttf
cd SDL_ttf
./autogen.sh # to allow automake 1.15.1
./configure
make -j "$(nproc)"
sudo make install
cd ..