cmakeopensslazerothcore

OPENSSL_CRYPTO_LIBRARY Crypto SSL error when trying to configure in CMake


This is my first time trying to install Azerothcore. I followed a few (I would say up to a year old) ways of installing Azerothcore but every time I seem to have a hiccup when it comes to the OpenSSL. I think I have followed the process to a 'T' but obviously not. I have a window that pops up saying Error in configuration process project files may be invalid.

The 2 CMake errors I get when following the Azerothcore guide are:

CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY Crypto
  SSL)

Call Stack (most recent call first):
  C:/Program Files (x86)/CMake/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  src/cmake/macros/FindOpenSSL.cmake:559 (find_package_handle_standard_args)
  deps/openssl/CMakeLists.txt:17 (find_package)

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

I've been following the Azerothcore install guide for Windows 11

Win64OpenSSL-3_2_0

cmake-3.25.2-windows-i386

boost_1_81_0-msvc-14.3-64

mysqlcommunity-8.0.33.0

visual studio 2022

I'm looking to play offline due to no internet access where I work and I obviously have no programming experience but I'm ok at getting around a computer and would appreciate any help.


Solution

  • CMake cannot find the OpenSSL directory on your machine. It looks for it by default under the OPENSSL_ROOT_DIR system variable. Make sure it is set properly.