Skip to content

Compiling on Windows (Visual Studio Solution)

Majesty edited this page Apr 3, 2023 · 5 revisions

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:

cd C:\

Then you can safely proceed with configuring vcpkg:

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

3. Install dependencies

  • Choose 32 or 64 bit or both. This will take some time so be patient.
  • 32 bit: .\vcpkg install asio freeglut nlohmann-json pugixml wxwidgets
  • 64 bit: .\vcpkg install --triplet x64-windows asio freeglut nlohmann-json pugixml wxwidgets
  • Make libraries available to Visual Studio: .\vcpkg integrate install
  • Execute the following command in Powershell with Administrator permission to set vcpkg environment variable: [System.Environment]::SetEnvironmentVariable('VCPKG_ROOT','C:\vcpkg', [System.EnvironmentVariableTarget]::Machine)

4. Download the source code

cd C:\ 
git clone --recursive https://github.com/opentibiabr/remeres-map-editor.git

5. Build

  • Open vcproj\RME.sln in Visual Studio.
  • Choose Debug or Release and Win32 or x64 in the toolbar.
Clone this wiki locally