-
-
Notifications
You must be signed in to change notification settings - Fork 27
Linux Build Instructions
int edited this page Sep 25, 2020
·
29 revisions
NOTE: The Linux build is still under development (see PR #140) - don't expect stability of any kind. Caveat compiler.
- make
- GCC
- automake
- autoconf
- libunwind
- glibc
- freetype
- fontconfig
- libGL
- libX11
- openal
- libncurses
- libcurl-gnutls
Note: If you get an error in compiling due to -lcurl-gnutls being missing, you need a symlink:
sudo ln -s /usr/lib32/libcurl-gnutls.so.4 /usr/lib32/libcurl-gnutls.so
This occurs on Arch/pacman based distros as far as we know.
- Make sure the path leading up to
team-comtress-2has no spaces in it. This will lead to errors compiling Protobuf and gperftools (needed for tcmalloc). - Prepare for unforeseen consequences. (Crashes during compilation are common.)
- Run
./build.shto compile. This can take any amount of time- 10-15 minutes is average. - To make sure it compiled correctly, run it again. If you see no errors, then it compiled. Success!
- Install your TF2 assets into
../game/tf. If you have TF2 and Steam installed on the same drive, runningcp -rn ~/.steam/steam/steamapps/common/Team\ Fortress\ 2/* ../game/from the main repo folder should work. - Run in the main repo folder
./run.shto launch the game. - If you get some errors about a missing client library, run this command:
ln -s ../game/tf/bin/* ../game/bin/, then try launching the game again. If it still doesn't work, try rebooting.