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

[SOLVED] CMake Error ZMQ Library

Status
Not open for further replies.

Tok124

Respected Member
Hello. I just downloaded latest version of TrinityCore Source and when i try to use Cmake im getting error

CMake Error at cmake/macros/FindZMQ.cmake:80 (message):
Could not find ZMQ libraries/headers! Please install ZMQ with libraries and
headers
Call Stack (most recent call first):
CMakeLists.txt:61 (find_package)

Yes. The error is obvious. It searches for ZMQ and it cannot find it. However i have downloaded it and i have tried to restart CMake and it doesnt work. Do i need to set a path to it somewhere? I tried to set path in system variables. (Same method as for the Boost Library). And i used the variable name "ZMQ_LIBRARY" and i used this path "C:\Program Files\ZeroMQ 4.0.4" and after adding that system variable i tried to restart cmake and click configure again and it still wont work. So, What am i doing wrong here?

And btw. It's for TrinityCore 3.3.5 if it matters
 

Tok124

Respected Member
TC 3.3.5 doesn't require ZMQ. This is the CmakeLists File: https://github.com/TrinityCore/TrinityCore/blob/3.3.5/CMakeLists.txt This is the 6.x CmakeListFiles with the ZMQ row highlighted: https://github.com/TrinityCore/TrinityCore/blob/6.x/CMakeLists.txt#L61 as you'll notice, the 3.3.5 branch does not have a required ZMQ package. Did you checkout the wrong branch?
hmm... well. That's wierd because i used the url: https://github.com/TrinityCore/TrinityCore and that should be the 3.3.5 source

- - - Updated - - -

Hmm. I notice that if i click on the cmakelists on https://github.com/TrinityCore/TrinityCore then i see the 6.0 cmakelists and not the 3.3.5 cmakelists. Why?

- - - Updated - - -

Why is it trying to build the 6.0 and not 3.3.5?
 

Neccta

Exalted Member
If you're using a git command line and used the command.
Code:
git clone https://github.com/TrinityCore/TrinityCore.git
then it defaults to the main branch which is 6.x. The following command will check out the 3.3.5 branch.
Code:
git clone -b 3.3.5 git://github.com/TrinityCore/TrinityCore.git

Or download the source from the git page. Make sure you select the 3.3.5 branch like so:

image.png


Then click on 'Download Zip' or click 'Clone in Desktop' if you have the Github client installed.

image.png
 

Tok124

Respected Member
Well. I just right click folder and click GIT Extensions > Clone but anyway. I just noticed that it was possible to change the branch when doing it that way. Last time i did this i didnt have to change branch. Anyway. Thanks for your help :)
 

Tommy

Founder
Why is it trying to build the 6.0 and not 3.3.5?

Because TrinityCore's master branch is 6.x.x, not 3.3.5. You can download the source from the same link https://github.com/TrinityCore/TrinityCore and do:

(If you already have the source downloaded still, just do:)
git checkout 3.3.5

And that will switch you to the 3.3.5 branch.

That has been an issue since they changed their master branch. Most people were used to having 3.3.5 as the master branch and since they changed it, most people don't notice that they need to checkout the 3.3.5 branch.
 

Tok124

Respected Member
Because TrinityCore's master branch is 6.x.x, not 3.3.5. You can download the source from the same link https://github.com/TrinityCore/TrinityCore and do:

(If you already have the source downloaded still, just do:)


And that will switch you to the 3.3.5 branch.

That has been an issue since they changed their master branch. Most people were used to having 3.3.5 as the master branch and since they changed it, most people don't notice that they need to checkout the 3.3.5 branch.
Aah sweet. Thanks Tommy. You may mark that thread as solved :)
 
Status
Not open for further replies.
Top