# \[Windows]\[VC2026]\[Solution] Compiling Canary Sources

## **1 - Downloads Required:**

* **Visual Studio 2026 Community:** [Download](https://visualstudio.microsoft.com/pt-br/thank-you-downloading-visual-studio/?sku=Community\&channel=Stable\&version=VS18\&source=VSLandingPage\&cid=2500\&passive=false)
* **Microsoft Visual C++ Redistributable 2017-2026:** **(**[32-bit download](https://aka.ms/vc14/vc_redist.x86.exe), [64-bit download](https://aka.ms/vc14/vc_redist.x64.exe)**)**
* **Git:** <https://git-scm.com/download/win>

## **2 - Visual Studio 2026:**

* On the Visual Studio home screen, in the Visual Studio Community 2026 product click the Install button.
* On the next screen under Workloads select Desktop Development with C++:
* ![](https://1381914140-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzV9t92sKcMkphxwdvwZs%2Fuploads%2Fzv5Q41C3IQKG6o3F3GPF%2FVisualStudio2026-1.png?alt=media\&token=93cc87bb-fd42-4fc9-8451-e7308a6a9e78)
* Then in Language Packs, select English:
* ![](https://1381914140-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzV9t92sKcMkphxwdvwZs%2Fuploads%2FVxHT6pi6JZ5I7eS8F1xp%2FVisualStudio2026-2.png?alt=media\&token=9ccdbbc6-a7b1-4195-b4c3-9754a45fac4b)
* Then click the Install button.

## **3 - Install the necessary software:**

* Install Git.

## **4 - VCPKG:**

<details>

<summary><strong>If you don't have vcpkg installed</strong></summary>

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

</details>

<details>

<summary><strong>If you already have vcpkg installed</strong></summary>

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

</details>

## **5 -** Integration of vcpkg into Visual Studio:

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

{% hint style="info" %}

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

{% endhint %}

## **6 - Canary Sources:**

* Download **Canary** sources with the command below in **Powershell:**

{% hint style="info" %}
cd C:\\

git clone --recursive <https://github.com/opentibiabr/canary.git>
{% endhint %}

## **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 VS2026)**
* **Microsoft - VCPKG:** <https://github.com/Microsoft/vcpkg>
