- Joined
- Jun 14, 2024
- Messages
- 19
- Thread Author
- #1
Introduction
In this tutorial, we will be showing you how to compile Trinity Core 3.3.5a(WOTLK) on windows server 2022, but this will work on any windows version above windows 7.Software Requirements
- Git v2.39.0
- Visual Studio 2019
- VS 2019 (any edition) no longer includes the C++ compiler as part of the default installation. You will need to include it during the installation process as shown in this picture: image here
- MySQL Installer 8.0.31
- HeidiSQL
- Boost 1.73.0 – Important Information About Installation
- CMake 3.25.1
- OpenSSL 1.1.1s
Step 1: Installing the software
Git:Installing Git is very simple for this tutorial, simply just keep clicking next until you get to the end of the installation questions and install it.
Visual Studio 2019:
Installing visual studio 2019 is also simple, but we have to make sure to check to install desktop c++ during the installation process since this is a requirement to compile trinity core.
Once done installing, you do not need to sign in, simply click “not now, maybe later” and choose the theme you want before clicking Start Visual Studio. You can exit out of Visual Studio after that, as it isn’t needed right now.
MySQL
Installing MySQL is easy, when you first open the installer it’ll ask you to upgrade simply click yes. During the next screen, we will only need to install Server only.
After that, click next until you reach this screen:
You will need to make a MySQL root password, remember what you set as this will be useful later on.
Anything after setting the MySQL password, you can just click next until you reach the last page and then click execute and finish. We have now installed MySQL.
HeidiSQL:
HeidiSQL is simple to install, just open the installer and click next and complete the install. This isn’t required at the moment but is a very useful database client for future use.
Boost 1.73.0:
I made a entire tutorial on how to install boost you can view it here: Downloading and Installing Boost 1.73.0. Remember for this tutorial, you will need boost 64bit since all the tools we have downloaded is for 64bit.
cMake:
Installing cMake is easy, no extra steps required. Simply click and install it.
OpenSSL
Installing OpenSSL is easy, no extra steps required. Simply click and install it.
We now have all the tools required to compile, let’s move onto the next step.
Step 2: Cloning Trinity Core 3.3.5a.
To clone the source from GitHub, we will use the Git Bash tool on your desktop. Begin by right-clicking on an empty space on your desktop and selecting “Git Bash Here.”After the menu appears, enter or copy the following line into the window:
git clone -b 3.3.5 https://github.com/TrinityCore/TrinityCore.git
Step 3: Prepare The Source
Before moving forward, open the cMake program that was installed earlier in this tutorial. Also, create a new folder on the desktop called “Build.” Once you have created the new folder and opened cMake, you will need to select the source code and the new build folder as shown in the image provided.After selecting the two folders, click the “Generate” button at the bottom. It will bring up a window to select the compiler, you will need to select Visual Studio 16 2019
As long as you followed the steps to this point, there should be no errors during the cmake process.
Step 3: Compiling
You can now close out of the cmake program, and open the build folder on your desktop and click “ALL_BUILD”Once it opens Visual Studio, we will need to change the build type to “release” as shown in the image provided.
Now we are ready to compile, simply push F5 or right click “Solution ‘Trinity Core” and click build. If you followed along the tutorial, you should have no errors once the compiling is done and should see:
Assuming you succeeded with compiling with no errors, congratulations you successfully compiled trinity core! Your new compiled files can be found in your Build Folder Build->Bin->Release.
Step 4: Getting Required Files & Renaming Configuration Files
We will need to grab a few files from the programs at installed at the start of this tutorial. Remember these files will need to be placed in your Build->Bin->Release folder.libmysql.dll:
We will need to copy the libmysql.dll file from the location below. Remember to only copy this file, and not cut/delete it from the original folder.
C:\Program Files\MySQL\MySQL Server 8.0\lib
You will need to place this file inside your Build directory on the desktop Build->Bin->Release.
libssl-1_1-x64.dll & libcrypto-1_1-x64.dll
We will need to copy these two files from the location below. Remember to only copy these files and do not delete them from the original folder.
C:\Program Files\OpenSSL-Win64\bin
You will need to place this files inside your Build directory on your desktop Build->Bin->Release.
Rename Configuration Files
We will now need to rename the configuration files, you may find these located inside your Release folder Build->Bin->Release.
Rename the authserver.conf.dist file to authserver.conf
Rename the worldserver.conf.dist file to worldserver.conf