Dark574
-
Posts
2 -
Joined
-
Last visited
Posts posted by Dark574
-
-
Hi there,
i am trying to compile the current 3.3.5 Branch on Linux.
Manjaro KDE Rolling Release -> up to Date
gcc (7.1.1-4)
make (4.2.1-2)
boost (1.64.0-4)
cmake (3.8.2-1)
git (2.13.4-1)
mariadb (10.1.25-1)
openssl (1.1.0.f-1.1) / openssl-1.0 (1.0.2.l-1)I am following the installation guide from the Trinity Core Page....
after running cmake i get the following:
-- Detected 64-bit platform
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/cc
-- GCC: Enabled c++11 support
-- GCC: Enabled C99 support
-- GCC: SFMT enabled, SSE2 flags forced
-- Using mysql-config: /usr/bin/mysql_config
-- Found MySQL library: /usr/lib/libmysqlclient.so
-- Found MySQL headers: /usr/include/mysql
-- Found MySQL executable: /usr/bin/mysql
-- Found git binary : /usr/bin/git* TrinityCore revision : d09de6425ca7 2017-08-12 21:10:22 +0200 (3.3.5 branch)
* TrinityCore buildtype : Release* Install core to : /home/dark574/Server
* Install libraries to : /home/dark574/Server/lib
* Install configs to : /home/dark574/Server/etc* Build world/auth : Yes (default)
* Build with scripts : Yes (static)
* Build map/vmap tools : Yes (default)
* Build core w/PCH : Yes (default)
* Build scripts w/PCH : Yes (default)
* Show compile-warnings : No (default)
* Use coreside debug : No (default)
* Show source tree : Yes (hierarchical)
* Use GIT revision hash : Yes (default)-- Boost version: 1.64.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- program_options
-- iostreams
-- regex
-- Found OpenSSL library: /usr/lib/libssl.so;/usr/lib/openssl-1.0
-- Found OpenSSL headers: /usr/include/openssl-1.0
-- Found Readline library: /usr/lib/libreadline.so
-- Include dir is: /usr/include* Script configuration (static):
|
+- worldserver
| +- Commands
| +- Custom
| +- EasternKingdoms
| +- Events
| +- Kalimdor
| +- Northrend
| +- OutdoorPvP
| +- Outland
| +- Pet
| +- Spells
| +- World
|-- Configuring done
To run CMake succesfully, I used the following command, since CMake found openssl 1.1:
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/dark574/Server -DOPENSSL_LIBRARIES=/usr/lib/openssl-1.0 -DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0
Configuration worked. After running 'make' I get error at 39% :/
[ 38%] Building CXX object src/server/game/CMakeFiles/game.dir/Weather/Weather.cpp.o
[ 38%] Building CXX object src/server/game/CMakeFiles/game.dir/Weather/WeatherMgr.cpp.o
[ 38%] Building CXX object src/server/game/CMakeFiles/game.dir/World/World.cpp.o
[ 38%] Linking CXX static library libgame.a
[ 38%] Built target game
Scanning dependencies of target authPCH.cpp_dephelp
[ 38%] Building CXX object src/server/authserver/CMakeFiles/authPCH.cpp_dephelp.dir/PrecompiledHeaders/authPCH.cpp.o
[ 39%] Linking CXX shared module libauthPCH.cpp_dephelp.so
[ 39%] Built target authPCH.cpp_dephelp
Scanning dependencies of target generate_authPCH.cpp
[ 39%] Generating authPCH.h.gch
[ 39%] Built target generate_authPCH.cpp
Scanning dependencies of target authserver
[ 39%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Main.cpp.o
[ 39%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Authentication/AuthCodes.cpp.o
[ 39%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Authentication/TOTP.cpp.o
[ 39%] Building CXX object src/server/authserver/CMakeFiles/authserver.dir/Server/AuthSession.cpp.o
[ 39%] Linking CXX executable authserver
/usr/bin/ld: ../../common/libcommon.a(BigNumber.cpp.o): undefined reference to symbol 'BN_exp@@OPENSSL_1_1_0'
/usr/lib/libcrypto.so.1.1: error adding symbols: DSO missing from command line
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [src/server/authserver/CMakeFiles/authserver.dir/build.make:189: src/server/authserver/authserver] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:1465: src/server/authserver/CMakeFiles/authserver.dir/all] Fehler 2
make: *** [Makefile:130: all] Fehler 2Anyone who can help me? :/
Compile or cmake problems
in Help and Support
Posted
i know that openssl 1.0x is needed
thats why i told cmake to use it
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/dark574/Server -DOPENSSL_LIBRARIES=/usr/lib/openssl-1.0 -DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0
but i dont understand why it still uses the wrong libs... i used the correct path to the 1.0 openssl libs
Maybe its a trivial problem but i am relatively new to Linux, so sorry coming forth with a stupid error