• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Written How to CMake

Tommy

Founder
Required Programs


I'm getting errors

  • OpenSSL could not be found: Make sure you installed it and be sure you installed the correct bit (32/64 bit, whatever you are compiling in).
  • Could not find ZMQ libraries/headers: Make sure you installed ZMQ. View Required Programs above.
  • No C/CXX compiler could be found: Make sure you've ran Visual Studio at least once before using CMake. If you are still getting the error you most likely missed some necessities. Typically you can launch Visual Studio, click New Project, select Visual C++ and you will see the required necessities to install.
  • GIT not found: Make sure you installed Git, the link is above. If you're still receiving this error, follow my post here.
  • I'm getting boost errors: Boost error solutions can be found in How to install and setup Boost thread.
  • If you are receiving errors not on this list make a new support thread here.

Specifying your paths

Where is the source code: Source code path should be linked to your TrinityCore/ source folder. Do not link the path anywhere else other than TrinityCore/ since it contains the main CMakeLists.txt.

For example, I cloned my TrinityCore source to my desktop, so my source path would be:

Code:
C:/Users/Easelmm/Desktop/TrinityCore

Where to build the binaries: This will be your build folder. It can be anywhere, but it is best to just create the folder in your TrinityCore/ source folder. That's what I do.
(NOTE: If you move this folder manually it is best to just delete the old build folder and rerun CMake to the new build folder location.)

For example:

Code:
C:/Users/Easelmm/Desktop/TrinityCore/build

Generator/Compiler

I use Visual Studio 2015, so the compiler option is Visual Studio 14 2015. Above, under "Required Programs" are the recommend visual studio versions. If you cannot find the correct generator make sure your CMake version supports the version of Visual Studio.

Bubble option: Choose "Use default native compilers" and click 'Finish'.

After that, click on "Generate". It will start Configuring and Generating.

Extra Options

If you check "Advanced" in CMake (if not already checked) you will see different options. Don't mess with anything unless you know what you're doing. If you want to compile "Tools" check "Tools" and there's other options you might want to check (typically at the bottom of the list).

If you need any help, scroll up to "I'm getting errors" part of this tutorial.
 
Last edited:

vxea

Respected Member
Sadly i've gone through all of these, and im running windows 8.1, and everyone in my family is too dumb so they threw away all the windows 7 software, so i can't install windows7, since the torrents dosent work either. just wanted to make that clear.

So My question is, does this tutorial support Windows 8+ or just windows 7? Besides that, Great tut, one of the most easiest tutorials i've ever seen.





- EDIT: Notice i've done this before, i know that it worked for me on my old pc, but I've never liked cmake, and i never will either becuse it is too buggy.

(i can't touch the NetFrame, becuse microsoft feelt like to fuck with everyone with the new windows version (if i delete it using cmd, then i wont be able to reinstall it)
 
Last edited:

Tommy

Founder
Sadly i've gone through all of these, and im running windows 8.1, and everyone in my family is too dumb so they threw away all the windows 7 software, so i can't install windows7, since the torrents dosent work either. just wanted to make that clear.

So My question is, does this tutorial support Windows 8+ or just windows 7? Besides that, Great tut, one of the most easiest tutorials i've ever seen.





- EDIT: Notice i've done this before, i know that it worked for me on my old pc, but I've never liked cmake, and i never will either becuse it is too buggy.

(i can't touch the NetFrame, becuse microsoft feelt like to fuck with everyone with the new windows version (if i delete it using cmd, then i wont be able to reinstall it)

I'm using Windows 7, but I don't see why it wouldn't work for Windows 8. Sadly, despite your feels on CMake, you'll still need it to compile. :p
 

Tommy

Founder
It is about that time to start updating everything. I updated the tutorial and put a more professional twist to it. Screenshots after awhile tend to randomly go away so I'm probably not going to use screenshots unless absolutely necessary, or just upload them on EmuDevs FTP instead. Enjoy!
 

Syphex

Exalted Member
I Realized that in thew new Git Version you have to add the path yourself.^

Note: You must have msysgit installed on your machine. Also, the path to my git install is "C:\Program Files (x86)\Git" yours might be different. Please check were yours is before continuing.

Open Windows Environment Variables/Path Window
Right-Click on My Computer
Click Advanced System Settings from the left side column
Click Environment Variables at the bottom of the window
Under System Variables look for the path variable and click edit
Add the pwd to git's bin and cmd at the end of the string like this: (Add them separately.)
C:\Program Files (x86)\Git\bin
C:\Program Files (x86)\Git\cmd
olskTQZ.png
AVvS6kI.png
 
Last edited:

Tommy

Founder
I Realized that in thew new Git Version you have to add the path yourself.^

Note: You must have msysgit installed on your machine. Also, the path to my git install is "C:\Program Files (x86)\Git" yours might be different. Please check were yours is before continuing.

Open Windows Environment Variables/Path Window
Right-Click on My Computer
Click Advanced System Settings link from the left side column
Click Environment Variables in the bottom of the window
Then under System Variables look for the path variable and click edit
Add the pwd to git's bin and cmd at the end of the string like this: (Add them separately.)

CMake only checks for the GIT_EXECUTABLE (and I'm pretty sure it doesn't even check the Path system variable for the entry. Look at FindGit.cmake in macros) which by default is located in "C:/Program Files/Git/cmd/git.exe" (or where ever you installed it). The system variable that Git does add is "C:\Program Files\Git\cmd" (or your installation path) inside of "Path" variable. I installed new version of Git and it successfully added "C:\Program Files\Git\cmd" to my Path system variable and nothing else since that's all it should ever need. This "msysgit" is not at all needed, why do you think it is needed? Never heard of it and if any of this was really required I would've added up top.

Installed new version of Git and CMake, reconfigured and generated on a fresh source, paths are the way they should be. As far as I see the installation process hasn't changed a bit. Either you install Git incorrectly or something of yours messed up pretty badly for you to include all of that. TrinityCore is very specific in its CMake process and quite-frankly you don't even need Git in the long run to compile your source, but it is recommended to include Git.

If all of that is require for other projects then add it for your own sake, but as for WoW emulators go, I've never had to include those to make it work.
 

Syphex

Exalted Member
That is true, but i've had that problem for over a year on 4 different computers. Altrough i've followed guides and videos.
But it works after that and i had no problem with it, even if i installed it wrong i yet have to have a problem with it.
It's just a good way for people who do have the same problem as me, even through they have followed guides and videos but end up with it like i did.
 
Top