Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Compiling

Matt Haynie edited this page Aug 6, 2020 · 10 revisions

Compiling

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:


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.

Windows

  1. Download and install git for Windows: https://git-scm.com/download/win
  2. Download and install CMake: https://cmake.org/download/
  3. 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
Clone this wiki locally