This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 54
Compiling
Matt Haynie edited this page Aug 6, 2020
·
10 revisions
Note: You probably only want to compile from source if you intend on making changes to the code. If all you want is the absolute latest build:
- Make sure you are signed into GitHub
- Go to https://github.com/PazerOP/tf2_bot_detector/actions?query=workflow%3Abuild
- Click on the latest build
- Download one of the artifacts that starts with the name
tf2_bot_detector_
This guide assumes you are already familiar with the fundamentals of git and compiling programs from source code.
TF2 Bot Detector currently only works on MSVC and Windows, but support for Linux is planned.
- Download and install git for Windows: https://git-scm.com/download/win
- Download and install CMake: https://cmake.org/download/
- Save the following as a batch file and run it:
@ECHO OFF
ECHO Downloading vcpkg...
git clone https://github.com/Microsoft/vcpkg.git
ECHO Setting up vcpkg...
cd vcpkg
CALL bootstrap-vcpkg.bat
SET VCPKG_ROOT=%CD%
ECHO Installing dependencies for TF2 Bot Detector...
vcpkg install SDL2 openSSL glbinding cpp-httplib libzippp fmt discord-game-sdk --triplet x64-windows
ECHO Downloading TF2 Bot Detector source...
cd ..\
git clone https://github.com/PazerOP/tf2_bot_detector.git --recursive
ECHO Configuring TF2 Bot Detector...
cd tf2_bot_detector
REM Perform an out-of-source build
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=..\..\vcpkg\scripts\buildsystems\vcpkg.cmake
ECHO Compiling TF2 Bot Detector...
cmake --build . --config Release
ECHO Opening compiled output...
explorer "%CD%\Release"
pause