-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Compiling on Windows (vcpkg)
To compile The Forgotten Server on Windows, you will need to download and install:
- Git
- Visual Studio 2017 Community (compiler)
- vcpkg (package manager)
Make sure to follow full installation of vcpkg
, per Official Quickstart execute the following in Git Bash or Powershell:
git clone https://github.com/Microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
git clone --recursive https://github.com/otland/forgottenserver.git
Choose one set of libraries, depending on the target platform.
-
For 64-bit (x64) build:
vcpkg install boost-iostreams:x64-windows boost-asio:x64-windows boost-system:x64-windows boost-variant:x64-windows boost-lockfree:x64-windows luajit:x64-windows libmariadb:x64-windows pugixml:x64-windows mpir:x64-windows
-
For 32-bit (Win32) build:
vcpkg install boost-iostreams:x86-windows boost-asio:x86-windows boost-system:x86-windows boost-variant:x86-windows boost-lockfree:x86-windows luajit:x86-windows libmariadb:x86-windows pugixml:x86-windows mpir:x86-windows
Find the directory vc14 in the copy of The Forgotten Server that you downloaded, and open theforgottenserver.sln
. This should launch Visual Studio, and you should be good to go.
To configure the build, navigate to Build -> Configuration Manager in the menu. A dialog should pop up where you can choose between Release or Debug build, and 32-bit (Win32) or 64-bit (x64) build.
To start compiling, open the Build menu again and click on Build Solution.