Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebreaker/3d11d13249c0f00de2b6ef522091e462 to your computer and use it in GitHub Desktop.
Save icebreaker/3d11d13249c0f00de2b6ef522091e462 to your computer and use it in GitHub Desktop.
build-sdl2-for-torchlight.sh
# set this to your Torchlight directory
TORCHLIGHTDIR=$HOME/games/Torchlight
hg clone http://hg.libsdl.org/SDL
# check out the revision before the one that introduces the bug as advised here: http://forums.runicgames.com/viewtopic.php?f=24&t=33360&start=60#p474739
hg up 4de584a3a027 --clean
# Fix X11 compilation issues with another changeset
hg export 6caad66a4966 > patch
hg import patch
# just in case
./autogen.sh
# use build dir else configure will complain
mkdir build
cd build
../configure
make
# copy the resulting lib to the game's lib64 directory
cp -Rv build/.libs/libSDL2*so* $TORCHLIGHTDIR/lib64/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment