Skip to content

Compiling on Windows (CMake)

Eduardo Dantas edited this page Mar 28, 2023 · 7 revisions

Canary

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 Powershell:

To open Powershell navigate to your desired directory e.g. C:\ and choose Open PowerShell window here (shift + right click).

Then you can safely proceed with configuring vcpkg:

git clone https://github.com/microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg integrate install

3. Install dependencies (vcpkg libraries)

For x64 processor:

.\vcpkg install --triplet x64-windows asio pugixml spdlog curl jsoncpp protobuf parallel-hashmap magic-enum mio luajit libmariadb mpir

For x86 processor:

.\vcpkg install asio pugixml spdlog curl jsoncpp protobuf parallel-hashmap magic-enum mio luajit libmariadb mpir

4. Download the source code

cd C:\
git clone --recursive https://github.com/opentibiabr/canary.git

5. Build

  1. Open "vcxproj/canary.sln", wait for Visual Studio to open and load.. In "Build", select "Build All" or "Build Solution".

  2. Wait for the compilation to finish, the executable and dlls will be generated in the server's main folder.