-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Compiling on Windows (CMake vcpkg)
This page is a work in progress
To compile on Windows using the CMake solution, you will need to download and install:
- Git
- Visual Studio 2022 Community
- vcpkg (package manager)
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.
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.
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.
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).