• 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 FindOpenSSL.cmake:200

Status
Not open for further replies.

Noven

Exalted Member
When I am trying to use cmake, I get these errors, when I hit "generate:

Code:
Detected 32-bit platform
MSVC: Enabled large address awareness
MSVC: Enabled SSE2 support
MSVC: Disabled Safe Exception Handlers for debug builds
MSVC: Overloaded standard names
MSVC: Disabled NON-SECURE warnings
MSVC: Disabled POSIX warnings
MSVC: Disabled generic compiletime warnings
Found OpenSSL library: optimized;C:/OpenSSL-Win32/lib/VC/ssleay32MD.lib;C:/OpenSSL-Win32/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win32/lib/VC/ssleay32MDd.lib;C:/OpenSSL-Win32/lib/VC/libeay32MDd.lib
Found OpenSSL headers: C:/OpenSSL-Win32/include
CMake Error at cmake/macros/FindOpenSSL.cmake:200 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:57 (find_package)


CMake Error at cmake/macros/FindOpenSSL.cmake:201 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:57 (find_package)


CMake Error at cmake/macros/FindOpenSSL.cmake:202 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:57 (find_package)


CMake Error at cmake/macros/FindOpenSSL.cmake:203 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:57 (find_package)


CMake Error at cmake/macros/FindOpenSSL.cmake:210 (math):
  math cannot parse the expression: " + 96": syntax error, unexpected
  exp_PLUS, expecting exp_OPENPARENT or exp_NUMBER (2)
Call Stack (most recent call first):
  CMakeLists.txt:57 (find_package)


CMake Error at cmake/macros/FindOpenSSL.cmake:214 (string):
  string Character with code does not exist.
Call Stack (most recent call first):
  CMakeLists.txt:57 (find_package)


CMake Error at cmake/macros/EnsureVersion.cmake:76 (MATH):
  math cannot parse the expression: "..*10000 + ..*100 + 0": syntax error,
  unexpected exp_TIMES, expecting exp_OPENPARENT or exp_NUMBER (3)
Call Stack (most recent call first):
  cmake/macros/EnsureVersion.cmake:95 (NORMALIZE_VERSION)
  cmake/macros/FindOpenSSL.cmake:221 (ENSURE_VERSION)
  CMakeLists.txt:57 (find_package)


CMake Error at cmake/macros/FindOpenSSL.cmake:223 (message):
  TrinityCore needs OpenSSL version 1.0.0 but found version ..
Call Stack (most recent call first):
  CMakeLists.txt:57 (find_package)


Configuring incomplete, errors occurred!
 

Neccta

Exalted Member
Go to the TrinityCore repository like so, 'C:\Users\Neccta\Documents\GitHub\ElunaTrinityWotlk\'. Then open 'Cmake\macros\'. Next open 'FindOpenSSL.cmake' with notepad++ or notepad.

Go to line 188 or find
Code:
REGEX "^#define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9][0-9][0-9][0-9][0-9][0-9].*")
Replace with
Code:
REGEX "^.*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9][0-9][0-9][0-9][0-9][0-9].*")

I ran into this problem yesterday, and god knows why It happened. I've complied TC hundreds of times before but never had a problem with this till now. Original solution found by 'Katrina Swales'.
 
Last edited:

Noven

Exalted Member
Atleast got a little further, but this time I was greated by this message:

Code:
The C compiler identification is MSVC 18.0.31101.0
The CXX compiler identification is MSVC 18.0.31101.0
Check for working C compiler using: Visual Studio 12 2013
Check for working C compiler using: Visual Studio 12 2013 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 12 2013
Check for working CXX compiler using: Visual Studio 12 2013 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Detected 32-bit platform
MSVC: Enabled large address awareness
MSVC: Enabled SSE2 support
MSVC: Disabled Safe Exception Handlers for debug builds
MSVC: Overloaded standard names
MSVC: Disabled NON-SECURE warnings
MSVC: Disabled POSIX warnings
MSVC: Disabled generic compiletime warnings
Found OpenSSL library: optimized;C:/OpenSSL-Win32/lib/VC/ssleay32MD.lib;C:/OpenSSL-Win32/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win32/lib/VC/ssleay32MDd.lib;C:/OpenSSL-Win32/lib/VC/libeay32MDd.lib
Found OpenSSL headers: C:/OpenSSL-Win32/include
Looking for include file pthread.h
Looking for include file pthread.h - not found
Found Threads: TRUE  
Boost version: 1.56.0
Found the following Boost libraries:
  system
  thread
  program_options
CMake Error at cmake/macros/FindMySQL.cmake:193 (message):
  Could not find the MySQL libraries! Please install the development
  libraries and headers
Call Stack (most recent call first):
  CMakeLists.txt:61 (find_package)


Configuring incomplete, errors occurred!
See also "C:/Trinity/CMakeFiles/CMakeOutput.log".
See also "C:/Trinity/CMakeFiles/CMakeError.log".
 

Neccta

Exalted Member
Did you install MySQL Server Community Edition? If you did hit the 'Advanced' checkbox at the top of Cmake. Find 'MYSQL_INCLUDE_DIR' and 'MYSQL_LIBARY'. Their paths should look something like this.

Code:
MYSQL_INCLUDE_DIR = C:/Program Files (x86)/MySQL/MySQL Server 5.6/include
MYSQL_LIBARY = C:/Program Files (x86)/MySQL/MySQL Server 5.6/lib/libmysql.lib

If you don't have those folders download https://github.com/TrinityCore/TrinityCore/releases/download/TDB335.55/mysql_lib.zip then extract it to your MySQL folder.
 

Noven

Exalted Member
Okay, fixed that, thanks a lot mate! :)
Think you could help me with this error(?):

Code:
Detected 32-bit platform
MSVC: Enabled large address awareness
MSVC: Enabled SSE2 support
MSVC: Disabled Safe Exception Handlers for debug builds
MSVC: Overloaded standard names
MSVC: Disabled NON-SECURE warnings
MSVC: Disabled POSIX warnings
MSVC: Disabled generic compiletime warnings
Found OpenSSL library: optimized;C:/OpenSSL-Win32/lib/VC/ssleay32MD.lib;C:/OpenSSL-Win32/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win32/lib/VC/ssleay32MDd.lib;C:/OpenSSL-Win32/lib/VC/libeay32MDd.lib
Found OpenSSL headers: C:/OpenSSL-Win32/include
Boost version: 1.56.0
Found the following Boost libraries:
  system
  thread
  program_options
Found MySQL library: C:/_Server/lib_64/libmysql.lib
Found MySQL headers: C:/_Server/include

* TrinityCore revision   : unknown 1970-01-01 00:00:00 +0000 (Archived branch)

* Install core to        : C:/Program Files (x86)/TrinityCore

* Build world/auth       : Yes (default)
* Build with scripts     : Yes (default)
* Build Eluna LuaEngine   : Yes (default)
* Build map/vmap tools   : Yes
* Build core w/PCH       : Yes (default)
* Build scripts w/PCH    : Yes (default)
* Show compile-warnings  : No  (default)
* Use coreside debug     : No  (default)
* Use GIT revision hash  : No

 *** WITHOUT_GIT - WARNING!
 *** By choosing the WITHOUT_GIT option you have waived all rights for support,
 *** and accept that or all requests for support or assistance sent to the core
 *** developers will be rejected. This due to that we will be unable to detect
 *** what revision of the codebase you are using in a proper way.
 *** We remind you that you need to use the repository codebase and a supported
 *** version of git for the revision-hash to work, and be allowede to ask for
 *** support if needed.

SCRIPT PREPARATIONS
  -> Prepared: Spells
  -> Prepared: Commands
  -> Prepared: Custom
  -> Prepared: World
  -> Prepared: Outdoor PVP Zones
  -> Prepared: Eastern Kingdoms
  -> Prepared: Kalimdor
  -> Prepared: Outland
  -> Prepared: Northrend
  -> Prepared: Events
  -> Prepared: Pet
SCRIPT PREPARATION COMPLETE

CMake Error at src/CMakeLists.txt:19 (add_subdirectory):
  The source directory

    C:/Trinity/Source/src/LuaEngine

  does not contain a CMakeLists.txt file.


Configuring incomplete, errors occurred!
See also "C:/Trinity/CMakeFiles/CMakeOutput.log".
See also "C:/Trinity/CMakeFiles/CMakeError.log".
 

Neccta

Exalted Member
That's because you didn't pull the ElunaEngine repository in C:/Trinity/Source/src/LuaEngine If you where to go there you would see that folder is empty.
Open GitBash then type
Code:
 cd C:\\Trinity\\Source\\
then type
Code:
git submodule init
git submodule update
Now run Cmake again.
 

Tommy

Founder
Marking as solved. Also, I encased your CMake error output in
Code:
 bbcode tags. It is better to read when you put things like that in bbcode code/quote tags.
 
Status
Not open for further replies.
Top