Compiling on Windows (vcpkg)
1. Download/install the required software
To compile on Windows, you will need to download and install:
2. Set up vcpkg
Make sure to follow full installation of vcpkg, per Official Quickstart execute the following in cmd or Powershell:
To open Powershell navigate to your desired directory and choose Open PowerShell window here (shift + right click).
If you prefer cmd (command prompt) click on your Start windows button or just use the windows key on your keyboard and search for cmd then navigate to your desired directory using cd e.g. you want to have your vcpkg folder on root of your C drive:
1
cd C:\
Copied!
then you can safely proceed with configuring vcpkg (may require administrator elevation)
1
git clone https://github.com/Microsoft/vcpkg && cd vcpkg && .\bootstrap-vcpkg.bat && .\vcpkg integrate install
Copied!
3. Download the source code
1
git clone --recursive https://github.com/otland/forgottenserver.git
Copied!
4. Install libraries
Choose one set of libraries, depending on the target platform and execute the following in Git Bash or Powershell:
Note: boost-filesystem is not needed from 4b800b2 onwards
  • For 64-bit (x64) build:
    1
    .\vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml cryptopp fmt
    Copied!
  • For 32-bit (Win32) build:
    1
    .\vcpkg install boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml cryptopp fmt
    Copied!
5. Build
  1. 1.
    Open vc17/theforgottenserver.vcxproj. This should launch Visual Studio.
  2. 2.
    Choose build configuration from the drop downs (Debug or Release and Win32 or x64). For best performance choose Release & x64.
  3. 3.
    To start compiling press F7.
Copy link