[Windows][VC2022][Solution] Compiling Canary Sources

1 - Downloads Required:

2 - Visual Studio 2022:

  • On the Visual Studio home screen, in the Visual Studio Community 2022 product click the Install button.

  • On the next screen under Workloads select Desktop Development with C++:

  • Then in Language Packs, select English:

  • Then click the Install button.

3 - Install the necessary software:

  • Install Git.

4 - VCPKG:

If you don't have vcpkg installed

Use Powershell in directory C:

  • cd C:\

• To complete vcpkg installation, run the commands below in Powershell:

  • git clone https://github.com/microsoft/vcpkg

  • cd vcpkg

  • .\bootstrap-vcpkg.bat

  • .\vcpkg integrate install

If you already have vcpkg installed

Use Powershell in directory C:

  • cd C:\vcpkg

• To update vcpkg installation, run the commands below in Powershell:

  • git pull

  • .\vcpkg upgrade

  • .\vcpkg upgrade --no-dry-run

  • .\bootstrap-vcpkg.bat

5 - Integration of vcpkg into Visual Studio:

  • Execute the following command in Powershell with Administrator permission to set vcpkg environment variable:

[System.Environment]::SetEnvironmentVariable('VCPKG_ROOT','C:\vcpkg', [System.EnvironmentVariableTarget]::Machine)

6 - Canary Sources:

  • Download Canary sources with the command below in Powershell:

cd C:\

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

7 - Install libraries:

  • The libs are installed automatically following the next step.

8 - Compiling Canary Sources:

  • Open vcproj\canary.sln. This should launch Visual Studio.

  • Choose build configuration from the drop downs (Release and x64).

  • To start compiling go to the menu Build and choose Build Solution.

9 - Credits:

Majesty (Canary compilation tutorial on VS2022)

Microsoft - VCPKG: https://github.com/Microsoft/vcpkg

Last updated