-
-
Notifications
You must be signed in to change notification settings - Fork 27
Linux Build Instructions
NOTE: The Linux build is still under development on another fork, and is currently being drafted to merge (see PR #486) - don't expect stability of any kind. Make sure to pull HurricanePootis's fork, specifically the vphysics-rev branch.
- make
- GCC (or LLVM/clang)
- automake
- autoconf
- libunwind
- glibc
- freetype2
- fontconfig
- libGL (should be provided by graphics drivers on all distros)
- libX11
- openal
- libncurses
- libcurl-gnutls
sudo pacman -S base-devel gcc binutils automake autoconf lib32-libunwind lib32-glibc lib32-freetype2 lib32-fontconfig lib32-mesa lib32-libx11 lib32-libglvnd lib32-openal lib32-ncurses lib32-libcurl-gnutlssudo apt install autoconf automake build-essential fontconfig:i386 g++-multilib libcurl4-gnutls-dev:i386 libfontconfig1:i386 libfontconfig1-dev:i386 libfreetype-dev:i386 libncurses-dev:i386 libopenal-dev:i386 libopenal1:i386 libunwind-dev libunwind-dev:i386 libx11-dev:i386 mesa-common-dev:i386Note: 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.soThis 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 the third party libraries. - Prepare for unforeseen consequences; crashes during compilation aren't common but should be expected. Make sure you're able to scroll back so you can grab error information, as it can keep spewing out info after the exact error.
- Run
./build.shto compile. This can take any amount of time; it took 20 minutes on a Ryzen 5 1600. You can pass-lto build with clang,-c numberto change amount of cores used (defaults to max),-dor-ddto build with varying levels of debug, and-rto build with Steam Runtime (not working yet). - To make sure it compiled correctly, run it again. If you see no errors, then it compiled. Success!
- Run
./link.shto symlink your TF2 assets into the../gamefolder. - In the main repository directory, run
./run.shto launch the game. If you have mangohud installed, this will also inject it.
Bug reports are appreciated! Please send a full backtrace by running with LLDB and crashing - run.sh -d will launch lldb with the game. Once in LLDB at the terminal, enter r at the (lldb) prompt to run the game, then reproduce the crash. The game should freeze instead of quitting and in your terminal, LLDB should say what the error was, and be at another prompt. type bt to get a backtrace, and put it in an issue on HurricanePootis's fork with how you got there.
Also: Build time in seconds should be reported after build.sh is done the first time you run it (the first line should say real then a number). Reporting your successful build time with your hardware in an issue (if you need to make one) could also be helpful.