Last active
June 16, 2021 05:54
-
-
Save PVince81/63800bffd437f2175da9 to your computer and use it in GitHub Desktop.
build-sdl2-for-torchlight.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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
After
hg clone
: