Skip to content

Compilling on Windows

Matheus Matias edited this page Dec 30, 2023 · 9 revisions

COMPILING IN WINDOWS

Download the required software

To compile The OTX Server on Windows, you will need:

Install the required software:

Once you have downloaded the software listed in the step above, begin by installing Visual Studio and Boost C++ libraries. Boost must be version 1_84 and need to be installed on C:\local.

OTX3 Only:

Extract "tfs-sdk-3.2-OTX" anywhere on your computer and run the file "registerenv.bat" to set the PATH environment variable for "SQK-NOBOOST", so that the compiler can find the libraries once we get to compiling the source code. Move the file "register_boost_env.bat" from "SQK-NOBOOST" to the directory where you installed Boost C++ libraries and run it there (it should be in the directory called for example: C:\local\boost_1_84_0).

Download the source code

If you have a Git client installed, you can clone the latest copy with this command:

CodeGit:

$ git clone https://github.com/mattyx14/otxserver.git

Source OTX Server 2:

https://github.com/mattyx14/otxserver/archive/otxserv2.zip

Source OTX Server 3:

https://github.com/mattyx14/otxserver/archive/otxserv3.zip

Build

Find the directory msvc in the copy of The OTX Server that you downloaded, and open TheOTXServer.sln. This should launch Visual Studio, and you should be good to go.

To configure the build, navigate to Build -> Configuration Manager in the menu. A dialog should pop up where you can choose between "Release" or "Release GUI" and build, on 32-bit (Win32) or 64-bit (x64) build. I strongly recommend to only use the x64 version only. If everything was setup correctly, all you need to do now is to build the program.

To start compiling, open the Build menu again and click on Build Solution.

Note: This only work for OTX Server 2.XS.2+ - and OTX Server 3.1+ or TFS 1.2+