-
-
Notifications
You must be signed in to change notification settings - Fork 194
Compiling on Windows (OTX 6 )
Matt Gomez edited this page Mar 19, 2024
·
1 revision
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).
Then you can safely proceed with configuring vcpkg:
git clone https://github.com/microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\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/mattyx14/otxserver.git
- Open Visual Studio. In "Get started", select "Open a local folder" and open the server main folder.
- Wait for the Visual Studio to load. It will automatically install the libraries and generate the cmake cache. (Be patient, the first cache may take a few minutes).
- After the cmake cache is successfully generated, you can compile the server by going to the menu Build and choose Build All.