Skip to content

Compiling on Windows (CMake vcpkg)

Ranieri Althoff edited this page Jun 6, 2024 · 3 revisions

This page is a work in progress

1. Download and install the required software

To compile on Windows using the CMake solution, you will need to download and install:

You must install Visual Studio 2022 it with at least the following individual components enabled:

  • C++ core features
  • C++ CMake tools for Windows
  • Windows SDK for your Windows version

You must also install the English language pack.

It is recommended that you install the "Desktop development with C++" workload.

2. Set up vcpkg

Make sure to follow the install instructions for vcpkg on Get started with vcpkg. You will need to follow the "Install vcpkg" and "Using vcpkg with MSBuild / Visual Studio" sections.

3. Set up Visual Studio

Open Visual Studio and, in the project launcher, click either "Clone a repository" (if you haven't cloned or downloaded the files already) or "Open a local folder" (if you have downloaded the source code). Keep in mind that Visual Studio is slow and might take a very long time to finish loading and the interface to be ready.

Note: There is no need to separately install dependencies using vcpkg. Visual Studio and CMake will take care of that automatically when you build the project.

4. Build

Make sure you have selected the "vcpkg" configuration in the dropdown (the default option is "default"). The configuration selector is to the right of the target machine selector, which will likely have "Local Machine" selected.

To build The Forgotten Server, in the top bar click "Build", then "Build All" (or press F7).

Clone this wiki locally