Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

I think this is a bug in Trinity.
if you use the standard с connector supplied by mysql

http://dev.mysql.com/downloads/connector/c/

we have mysql_version.h

#define PROTOCOL_VERSION            10
#define MYSQL_SERVER_VERSION       "5.7.6-m16"
#define MYSQL_VERSION_ID            50706
#define MYSQL_PORT                  3306
#define MYSQL_PORT_DEFAULT          0
#define MYSQL_UNIX_ADDR            "/tmp/mysql.sock"
#define MYSQL_CONFIG_NAME          "my"
#define MYSQL_COMPILATION_COMMENT  "MySQL Connector/C (GPL)"
#define LIBMYSQL_VERSION           "6.1.6"
#define LIBMYSQL_VERSION_ID         60106

 

as you can see this condition is not met

            WPFatal(mysql_get_client_version() == MYSQL_VERSION_ID, "Used MySQL library version (%s) does not match the version used to compile TrinityCore (%s).", mysql_get_client_info(), MYSQL_SERVER_VERSION);

 

because  LIBMYSQL_VERSION_ID 60106     !=       MYSQL_VERSION_ID 50706

 

Link to comment
Share on other sites

and why even compare the version of MySQL server and MySQL connector library ?

 

maybe the condition should be different?

WPFatal(mysql_get_client_version() == LIBMYSQL_VERSION_ID, "Used MySQL library version (%s) does not match the version used to compile TrinityCore (%s).", mysql_get_client_info(), MYSQL_SERVER_VERSION);

Edited by MHard
Link to comment
Share on other sites

11 minutes ago, Shauren said:

@MHard we do not support using the connector library, only the lib shipped with MySQL server installation.

Additionally LIBMYSQL_VERSION_ID define is not present in older versions of MySQL (5.5) so it cannot be used.

 
very strange. maybe it would be more flexible?
 
#ifdef LIBMYSQL_VERSION_ID // use MYSQL >= 5.6
            WPFatal(mysql_get_client_version() == LIBMYSQL_VERSION_ID, "Used MySQL library version (%s) does not match the version used to compile TrinityCore (%s).",
                mysql_get_client_info(), MYSQL_SERVER_VERSION);
#else
            WPFatal(mysql_get_client_version() == MYSQL_VERSION_ID, "Used MySQL library version (%s) does not match the version used to compile TrinityCore (%s).",
                mysql_get_client_info(), MYSQL_SERVER_VERSION);
#endif

 

Link to comment
Share on other sites

Hello there,

I want to compile the 6.x Core and become this error on command "make". Can everyone help me?

Scanning dependencies of target zmqpp
Scanning dependencies of target Recast
Scanning dependencies of target Detour
Scanning dependencies of target g3dlib
Scanning dependencies of target format
Scanning dependencies of target jemalloc
Scanning dependencies of target gsoap
Scanning dependencies of target casc
[  0%] [  0%] [  0%] [  0%] [  0%] Building CXX object dep/cppformat/CMakeFiles/format.dir/form                                                                         at.cc.o
Building CXX object dep/zmqpp/CMakeFiles/zmqpp.dir/zmqpp/context.cpp.o
Building CXX object dep/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourAlloc.cpp.o
Building CXX object dep/gsoap/CMakeFiles/gsoap.dir/soapC.cpp.o
Building CXX object dep/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/Recast.cpp.o
/bin/sh: 1: Cannot fork
make[2]: *** [dep/recastnavigation/Recast/CMakeFiles/Recast.dir/Source/Recast.cpp.o] Error 2
make[1]: *** [dep/recastnavigation/Recast/CMakeFiles/Recast.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus: error while loading shared libraries: libc.so.6: can                                                                         not map zero-fill pages: Cannot allocate memory
/usr/bin/cmake: error while loading shared libraries: libgcrypt.so.11: failed to map segment fr                                                                         om shared object: Cannot allocate memory
make[2]: *** [dep/zmqpp/CMakeFiles/zmqpp.dir/zmqpp/message.cpp.o] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [dep/gsoap/CMakeFiles/gsoap.dir/soapC.cpp.o] Error 1
make[1]: *** [dep/gsoap/CMakeFiles/gsoap.dir/all] Error 2
[  0%] [  0%] Building CXX object dep/cppformat/CMakeFiles/format.dir/posix.cc.o
Building CXX object dep/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourCommon.cpp.o

cc1plus: out of memory allocating 120 bytes after a total of 270336 bytes
virtual memory exhausted: Cannot allocate memory
[  1%] make[2]: *** [dep/cppformat/CMakeFiles/format.dir/posix.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [dep/zmqpp/CMakeFiles/zmqpp.dir/zmqpp/context.cpp.o] Error 1
make[1]: *** [dep/zmqpp/CMakeFiles/zmqpp.dir/all] Error 2
[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/arena.c.o
[  1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/atomic.c.o

as: out of memory allocating 524411 bytes after a total of 0 bytes

cc1plus: out of memory allocating 1458 bytes after a total of 692224 bytes
[  1%] virtual memory exhausted: Cannot allocate memory
Building CXX object dep/CascLib/CMakeFiles/casc.dir/src/common/Common.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[2]: *** [dep/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourAlloc.cpp.o] Error                                                                          1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [dep/CascLib/CMakeFiles/casc.dir/src/common/Common.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [dep/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourCommon.cpp.o] Erro                                                                         r 1
Building CXX object dep/recastnavigation/Detour/CMakeFiles/Detour.dir/Source/DetourNavMesh.cpp.                                                                         o
make[2]: *** [dep/cppformat/CMakeFiles/format.dir/format.cc.o] Error 1
make[1]: *** [dep/cppformat/CMakeFiles/format.dir/all] Error 2
[  1%] [  1%] [  1%] [  1%] Building CXX object dep/CascLib/CMakeFiles/casc.dir/src/common/Dire                                                                         ctory.cpp.o
Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/base.c.o
Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk.c.o
Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/bitmap.c.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[2]: *** [dep/CascLib/CMakeFiles/casc.dir/src/common/Directory.cpp.o] Error 4
make[1]: *** [dep/CascLib/CMakeFiles/casc.dir/all] Error 2
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[2]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/src/bitmap.c.o] Error 4
make[2]: *** Waiting for unfinished jobs....

cc1: out of memory allocating 32768 bytes after a total of 1134592 bytes
virtual memory exhausted: Cannot allocate memory
make[2]: *** [dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o] Killed
make[1]: *** [dep/g3dlite/CMakeFiles/g3dlib.dir/all] Error 2
[  1%] make[2]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk.c.o] Error 1
make[2]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/src/arena.c.o] Error 1
Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk_dss.c.o

cc1: out of memory allocating 32768 bytes after a total of 1527808 bytes

cc1: out of memory allocating 8032 bytes after a total of 835584 bytes
make[2]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/src/base.c.o] Error 1
make[2]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk_dss.c.o] Error 1
make[1]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/all] Error 2
make[1]: *** [dep/recastnavigation/Detour/CMakeFiles/Detour.dir/all] Error 2
make: *** [all] Error 2

Link to comment
Share on other sites

10 minutes ago, ReaZze said:

i have 1GB ram on my vserver.

I have yet to try compiling trinitycore on linux, but I've compiled other gameservers before and in one particular case, had to have 8gbs free in order to compile everything, so try increasing it to 2-4gbs and see if it compiles.

  • Upvote 1
Link to comment
Share on other sites

So after redoing a lot, the error I am now getting in Cmake (even after changing back to VS 2013, and Cmake 3.3.2) is "Error in configuration process, project Files may be invalid" The download is direct from the installation guide. If anyone has an idea I would love to try them. 

Link to comment
Share on other sites

hi, execuse me english

I download release source code on linux (TDB 6.03) but at compilation 21% take me error

 

 

	root/TrinityCore/src/server/game/Entities/Taxi/TaxiPathGraph.cpp:26:63: fatal error: boost/property_map/transform_value_property_map.hpp: No such file or directory compilation terminated. make[2]: *** [src/server/game/CMakeFiles/game.dir/Entities/Taxi/TaxiPathGraph.cpp.o] Error 1 make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2 make: *** [all] Error 2 
 

I try download  source for patch 6.2.0 (TDB 6.02)
This compilation is fuction and run but idk where get function lauchner for this patch

I download some repack for Win and use maps, dbc for bin on linux, thats work but lauchner included at repack take me eror like

wow_64_patched.exe today, I got error #134:
"Unable to open DBFilesClient\MovieOverlays.dbc: Can't find file in build manifest


so please i need help idk what doing
can any help with source code for 03 tbd or this lauchner? ty

Edited by Noee
Link to comment
Share on other sites

Hello

 i installed ZeroMQ 4.0.4 and i get these errors on Visual Studio 13

Error    2    error C1083: Cannot open include file: 'zmq.h': No such file or directory (L:\Sorce\Trin\dep\zmqpp\zmqpp\context.cpp)    l:\sorce\trin\dep\zmqpp\zmqpp\context.hpp    13    1    zmqpp
Error    3    error C1083: Cannot open include file: 'zmq.h': No such file or directory (L:\Sorce\Trin\dep\zmqpp\zmqpp\frame.cpp)    l:\sorce\trin\dep\zmqpp\zmqpp\exception.hpp    14    1    zmqpp
Error    4    error C1083: Cannot open include file: 'zmq.h': No such file or directory (L:\Sorce\Trin\dep\zmqpp\zmqpp\message.cpp)    l:\sorce\trin\dep\zmqpp\zmqpp\exception.hpp    14    1    zmqpp
Error    5    error C1083: Cannot open include file: 'zmq.h': No such file or directory (L:\Sorce\Trin\dep\zmqpp\zmqpp\poller.cpp)    l:\sorce\trin\dep\zmqpp\zmqpp\exception.hpp    14    1    zmqpp
Error    7    error C1083: Cannot open include file: 'zmq.h': No such file or directory (L:\Sorce\Trin\dep\zmqpp\zmqpp\socket.cpp)    l:\sorce\trin\dep\zmqpp\zmqpp\context.hpp    13    1    zmqpp
Error    6    error C1083: Cannot open include file: 'zmq.h': No such file or directory (L:\Sorce\Trin\dep\zmqpp\zmqpp\zmqpp.cpp)    l:\sorce\trin\dep\zmqpp\zmqpp\zmqpp.hpp    51    1    zmqpp
Error    9    error C1083: Cannot open include file: 'zmq.h': No such file or directory (L:\Sorce\Trin\src\server\game\Handlers\CharacterHandler.cpp)    l:\sorce\trin\dep\zmqpp\zmqpp\compatibility.hpp    24    1    game
Error    10    error C1083: Cannot open include file: 'zmq.h': No such file or directory (L:\Sorce\Trin\src\server\game\Server\BattlenetServerManager.cpp)    L:\Sorce\Trin\dep\zmqpp\zmqpp\zmqpp.hpp    51    1    game
Error    11    error C1083: Cannot open include file: 'zmq.h': No such file or directory (L:\Sorce\Trin\src\server\game\Server\WorldSession.cpp)    l:\sorce\trin\dep\zmqpp\zmqpp\compatibility.hpp    24    1    game
Error    8    error LNK1181: cannot open input file '..\..\..\dep\zmqpp\Release\zmqpp.lib'    L:\Sorce\Trin1\src\server\bnetserver\LINK    bnetserver
Error    12    error LNK1181: cannot open input file '..\game\Release\game.lib'    L:\Sorce\Trin1\src\server\worldserver\LINK    worldserver
Error    1    error MSB6003: The specified task executable "Lib.exe" could not be run. Der Vorgang ist bei einer Datei mit einem geöffneten Bereich, der einem Benutzer zugeordnet ist, nicht anwendbar.    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets    1000    5    Detour
 

CMake 3.3.2 works without error

The C compiler identification is MSVC 18.0.40629.0

The CXX compiler identification is MSVC 18.0.40629.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

Found MySQL library: C:/Program Files (x86)/MySQL/MySQL Server 5.5/lib/libmysql.lib

Found MySQL headers: C:/Program Files (x86)/MySQL/MySQL Server 5.5/include

Found MySQL executable: C:/Program Files (x86)/MySQL/MySQL Server 5.5/bin/mysql.exe

Boost version: 1.59.0

Found the following Boost libraries:

system

filesystem

thread

program_options

iostreams

regex

Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM

Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success

Found git binary : C:/Program Files (x86)/Git/cmd/git.cmd

 

* TrinityCore revision : 9f4e4b9546e5+ 2016-01-05 23:37:45 +0100 (6.x branch)

 

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

 

* Build world/auth : Yes (default)

* Build with scripts : Yes (default)

* Build map/vmap tools : No (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 : No (default)

* Use GIT revision hash : Yes

 

Looking for open

Looking for open - found

Found ZMQ library: l:/ZeroMQ/lib/libzmq-v120-mt-4_0_4.lib

Found ZMQ headers: l:/ZeroMQ/include

SCRIPT PREPARATIONS

-> Prepared: Spells

-> Prepared: Commands

-> Prepared: Custom

-> Prepared: World

-> Prepared: Outdoor PVP Zones

-> Prepared: Eastern Kingdoms

-> Prepared: Kalimdor

-> Prepared: Outland

-> Prepared: Northrend

-> Prepared: The Maelstrom

-> Prepared: Events

-> Prepared: Pet

SCRIPT PREPARATION COMPLETE

 

Configuring done

Generating done

 

Can someone help me

 

 

Link to comment
Share on other sites

I downloaded 1.60 and compile
...failed updating 56 targets... ...skipped 6 targets... ...updated 13034 targets...

I try again compile 6.03 TDB version source code and again

[ 20%] Building CXX object src/server/game/CMakeFiles/game.dir/Entities/Taxi/TaxiPathGraph.cpp.o
/home/zippo/trinitycore3/src/server/game/Entities/Taxi/TaxiPathGraph.cpp:26:63: fatal error: boost/property_map/transform_value_property_map.hpp: No such file or directory
compilation terminated.
make[2]: *** [src/server/game/CMakeFiles/game.dir/Entities/Taxi/TaxiPathGraph.cpp.o] Error 1
make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2
make: *** [all] Error 2

 

Edited by Noee
Link to comment
Share on other sites

  • Aokromes changed the title to Compile or cmake problems
  • Aokromes locked this topic
  • Carbenium unlocked this topic
  • Aokromes pinned and locked this topic
  • Aokromes featured and featured this topic
  • Aokromes pinned this topic
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...