在编译安装TrinityCore的时候,碰到报错:
报错:
CMake Error at cmake/macros/FindOpenSSL.cmake:579 (message):
TrinityCore needs OpenSSL version 1.0 but found too new version .
TrinityCore needs OpenSSL 1.0.x or 1.1.x to work properly. If you still
have problems please install OpenSSL 1.0.x if you still have problems
search on forum for TCE00022
Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)
由于不能降低openssl版本,以免影响当前的应用,所以只好再装一个1.0.x的版本。
下载:
OpenSSL官方下载 - 码客
tar -xzvf 解压后,
进入openssl目录进行编译。
make ,报错:
making all in crypto...
make[1]: Entering directory '/home/wow/work/openssl-1.0.2p/crypto'
make[1]: *** No rule to make target '../include/openssl/bio.h', needed by 'cryptlib.o'. Stop.
原来需要先config再make
./config
make
现在就编译好了低版本的opensll,在编译安装TrinityCore的时候,加上参数:
-DOPENSSL_LIBRARIES=path to OpenSSL library
-DOPENSSL_INCLUDE_DIR=path to OpenSSL includes
问题解决!