Jump to content
  • 0

Got Cmake error. Can't figure out where the problem is


Jet Avin

Question

Posted

Once I compiled core on release20 branch(I've never updated it before), and yesterday I decided to pull all changes from all branches. I did the following:

  1. git pull
  2. checked out on develop21
  3. git pull --recurse-submodules=true

After that I run Cmake to generate solution, and unfortunately got this error:

CMake Warning (dev) at src/realmd/CMakeLists.txt:77 (target_link_libraries):
 Link library type specifier "optimized" is followed by specifier
 "optimized" instead of a library name.  The first specifier will be
 ignored.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at src/realmd/CMakeLists.txt:77 (target_link_libraries):
 Link library type specifier "debug" is followed by specifier "debug"
 instead of a library name.  The first specifier will be ignored.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at src/realmd/CMakeLists.txt:77 (target_link_libraries):
 The "debug" argument must be followed by a library.

Firstly, my system is x64, and don't know why if(WIN32) condition is true.

Secondly, I added status messages inside that script to see what I get:

Executable name: realmd

MYSQL_LIBRARY name: C:/Program Files/MySQL/MySQL Server 5.6/lib/libmysql.lib

OPENSSL_LIBRARIES name: optimized;C:/OpenSSL-Win64/lib/VC/ssleay32MD.lib;C:/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;C:/OpenSSL-Win64/lib/VC/libeay32MDd.lib

MYSQL_DEBUG_LIBRARY name: 

OPENSSL_DEBUG_LIBRARIES name: 

Seems like I need debug libraries, but not sure where to get them...

UPD 1: Same error even when cloned from scratch (problem occurs only on develop21 branch. All is fine on release20)

UPD 2: Resolved problem(https://www.getmangos.eu/wiki.php in __TEST__ part)

1 answer to this question

Recommended Posts

Posted

Please create a new thread for your issues. Posting on someone elses thread can end up being confusing.

Moved to its own thread.

Please pull develop21 directly, git checkout doesn't always get the latest version of the submodules.

git clone https://github.com/mangoszero/server -b develop21 --recursive

Switch out the mangoszero part with whatever core version you would like to compile

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use