Table of contents
Windows
In order to properly build shaders - you'll need a regular DirectX End-User Runtime installed.
- Go to DirectX End-User Runtime download page
- Select needed language and hit "Download"
- Run dxwebsetup.exe and install (don't forget to untick the Bing Bar checkbox)
Installing an IDE
Windows 10 is recommended.
You'll need Visual Studio Community Edition 2022 (it's free software). Download it here
Download the latest version of Visual Studio through the Visual Studio Installer:
- Open Available page

- Click Install on Visual Studio Community 2022

- Choose "Desktop development with C++" package

- Deselect unneeded packages in the right menu:
Test Adapters
Live Share
IntelliCode
C++ AddressSanitizer
C++ Build Insights
vcpkg package manager
- Select additional packages:
C++ MFC
C++ CMake tools
Wait until all the needed software are installed 
Compiling
To make the solution run:
.\createeverything.bat- to build all available projects.\creategameprojects.bat- to build basic game without utils and tools
- Open Visual Studio. You can skip the Microsoft signing in section, but this will lead to 30 days trial.
- Press "Open a project or solution"
- Navigate to
<your pulled repo folder>\src_main\buildand openLeakNet.sln - In Solution Explorer open the "CMakePredefinedTargets" folder, right-click on INSTALL project and hit "Build"
You also can use cmake from command line to build the solution, if you want:
cmake --build build --config "Debug"
cmake --install build --config "Debug"
for a debug build, or
cmake --build build --config "Release"
cmake --install build --config "Release"
for a release one.
-
Please note that the "build" command would take a long time, around 20 minutes, so prepare yourself a cup of tea while the project is building.
-
All of the project binaries will be stored in
(srcrepo)/leaknet-install(can be changed through cmake's command-line argument-DGAMEDIR="<absolute_path>"applied atcreateeverything.batstage). -
If there are a few failed to build projects - open a
build\LeakNet.slnand hit Build on INSTALL project, orTODO: cmake alternative?
Linux
- To build dedicated server run:
./creatededicated.sh
cd build_dedicated
make -j$(nproc --all) install
- All installed libs will be stored in
(srcrepo)/leaknet-install(can be changed through command-line argument -DGAMEDIR="dir").
