-
-
Notifications
You must be signed in to change notification settings - Fork 196
Compilling on Windows
To compile The OTX Server on Windows, you will need:
- Visual Studio Community 2022 (https://visualstudio.microsoft.com/vs/community/)
- Boost C++ libraries: (https://sourceforge.net/projects/boost/files/boost-binaries/1.84.0/boost_1_84_0-msvc-14.3-64.exe/download)
- Libs (libraries) 3.2-OTX (Not required for OTX2)
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.
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).
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
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+