forked from hampusborgos/rme
-
Notifications
You must be signed in to change notification settings - Fork 54
Compiling on Windows (Visual Studio Solution)
Majesty edited this page Apr 3, 2023
·
5 revisions
To compile on Windows, you will need to download and install:
- Git
- Visual Studio 2022 Community (compiler and english language pack)
- vcpkg (package manager)
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
- 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)
cd C:\
git clone --recursive https://github.com/opentibiabr/remeres-map-editor.git
- Open
vcproj\RME.sln
in Visual Studio. - Choose Debug or Release and Win32 or x64 in the toolbar.