Skip to content

Linux Build Instructions

Margen67 edited this page Sep 24, 2020 · 29 revisions

NOTE: The Linux build is still under development (see PR #140) - don't expect stability of any kind. Caveat compositor.

Dependencies (libraries must be i686/lib32):

  • make
  • GCC
  • automake
  • autoconf

Libraries:

  • 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.

Instructions:

  1. Make sure the path leading up to team-comtress-2 has no spaces in it. This will lead to errors compiling Protobuf and gperftools (needed for tcmalloc).
  2. Prepare for unforeseen consequences (crashes, and unhelpful ones.)
  3. Run ./build.sh.
  4. To make sure it compiled correctly, run it again. If you see no errors, then it compiled. Success!
  5. Install your TF2 assets into ../game/tf. If you have TF2 and Steam installed on the same drive, running cp -rn ~/.steam/steam/steamapps/common/Team\ Fortress\ 2/* ../game/ from the main repo folder should work.
  6. Run in the main repo folder ./run.sh.
  7. If you get some errors about a missing client library, enter the bin folder, which is in the ../game folder (relative to the main repo folder) and run this command: ln -s ../tf/bin/* ., then try running again. If it still doesn't work, try rebooting.

Clone this wiki locally