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 use TC335 core on a Windows 8.1 without any problem. Now I have setup a Windows 10 Build 1803 system and got different problems.

CMake produces different errors, it doesn't recognize well Boost and OpenSSL. It finds the Boost root folder and I set manually the openssl root and include folder. It find something but not all libraries.

But looking into the log I found the line 'Detected 32-bit platform'. That's definitely wrong. I guess CMake is looking for 32bit libs now. But I have everything in 64bit.

I use: CMake 3.11.3 / VS Community 2017 Ver. 15.7.3 / OpenSSL 1.1.0h / Boost 1_66_0 or 1_67_0

CMake Log (Debug Mode): https://pastebin.com/Et54UWG5

Any ideas ?

 

EDIT:

Found the problem. On a completely new system you need not only to choose the right compiler, you also need to choose the right complier for 64bit ;-)

Link to comment
Share on other sites

On 6/14/2018 at 4:59 PM, Magnuss said:

EDIT:

Found the problem. On a completely new system you need not only to choose the right compiler, you also need to choose the right complier for 64bit ;-)

Hey could you please clarify this or take a screenshot of those settings what we need to specify

Link to comment
Share on other sites

Hey Aokromes, I tried to make a fresh compile today, pulled trinity master to c:/trinity, dl-ed newest cmake specified that ⌃⌃ from the tutorial screenshot native compilers etc. and everythings working up until Visual studio builds it, I get this message 

d83664890001bfa133a8cd9e10fb0519.png

and D:\Build\bin\RelWithDebInfo looks like this its missing bnetserver.exe bnetserver.pdb bnetserver.conf.dist bnetserver.cert.perm bnetserver.key.perm

431b871be75ab97a09ab1224cf9b9563.png

EDIT: this solved, had old boost installed

Edited by Untechie
Link to comment
Share on other sites

4 hours ago, Untechie said:

Hey Aokromes, I tried to make a fresh compile today, pulled trinity master to c:/trinity, dl-ed newest cmake specified that ⌃⌃ from the tutorial screenshot native compilers etc. and everythings working up until Visual studio builds it, I get this message 

d83664890001bfa133a8cd9e10fb0519.png

and D:\Build\bin\RelWithDebInfo looks like this its missing bnetserver.exe bnetserver.pdb bnetserver.conf.dist bnetserver.cert.perm bnetserver.key.perm

 

you need to scroll to find real error.

Link to comment
Share on other sites

5 minutes ago, Aokromes said:

you need to scroll to find real error.

hmm then when i run it again i'll check that out, but tell me another thing please if the current retail wow isn't 7.3.5.26654 like trinity master where is the best place to download client, yesterday i dl-ed from some private servers google drive but it wasnt compatible with trinity extractors

Link to comment
Share on other sites

8 minutes ago, Untechie said:

hmm then when i run it again i'll check that out, but tell me another thing please if the current retail wow isn't 7.3.5.26654 like trinity master where is the best place to download client, yesterday i dl-ed from some private servers google drive but it wasnt compatible with trinity extractors

Client requirement was updated to 7.3.5.26822  yesterday.

  • Like 1
Link to comment
Share on other sites

  • 5 weeks later...

Hey I'm trying to configure hot reloading that Naios (Denis Blank) implemented a while ago to speed up development. The step I am confused at which is probably really easy and really trivial is when he says to make sure to change the target to the install target in visual studio to install to the CMAKE_INSTALLPREFIX location. Can anyone clarify this? Screenshot provided below and highlighted with red border its step 2 I'm confused with 

Capture.PNG

Link to comment
Share on other sites

2 minutes ago, Magnuss said:

Just use any new folder you want but NOT the build folder.

(And also NOT c:/program files/something because they are write protected.)

This configuration is the same for static or dynamic linking.

 

Yeah thanks so much forgot to mention that I solved it. Yeah just built the install folder and it built out to the folder I specified with the prefix. It works great for the ashmancore btw!

Link to comment
Share on other sites


Hello. There was a problem in the compilation "master (legion client)" on OC Debian 9.x.
I really need your help, since I am not experienced enough in this direction, so I will only study this direction and I will be very grateful if, there is an opportunity to help in this decision!

I use the instructions for removing this link : https://trinitycore.atlassian.net/wiki/spaces/tc/pages/10977288/Linux+Requirements

Error compiling:
 

 No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.  If you still have problems search on forum for TCE00020.
Call Stack (most recent call first):
  dep/boost/CMakeLists.txt:43 (find_package)


CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:                                  138 (message):
  Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.8")
Call Stack (most recent call first):
  /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_F                                  AILURE_MESSAGE)
  /usr/share/cmake-3.7/Modules/FindZLIB.cmake:114 (FIND_PACKAGE_HANDLE_STANDARD_                                  ARGS)
  dep/zlib/CMakeLists.txt:13 (find_package)


-- Configuring incomplete, errors occurred!
 

Initially I used the default setting of parameters, there was no error, and after prompted to extract maps,mmaps, dbc files.. 
you must specify the parameters needed.That's actually in this error and it turns out ... and it still can not be solved ...

 

Edited by Crystal
Link to comment
Share on other sites

I ran into a little issue after updating one of my gentoo machines' mariadb client/server. When I tried to run authserver, I got the error:

Used MySQL library version (6.1.11) does not match the version used to compile TrinityCore (5.7.16). Search on forum for .

After reading up on it, I double-checked my gentoo packages and recompiled trinity in a new build directory, but got the same issue. When I looked at the code and the mariadb headers, it was obvious that the MYSQL_VERSION_ID and LIBMYSQL_VERSION_ID macros were set to two different values (the latter was the one mysql_get_client_version() returned). A quick search suggested that they are expected to be the same. So, I changed the macro in the check in DatabaseWorkerPool.cpp to from MYSQL_VERSION_ID to LIBMYSQL_VERSION_ID, and everything appears to be working fine.

I suspect there's more to this, so I'm backing up my databases more than usual, and I plan on looking everything over thoroughly. I'm not sure if this is a mariadb thing, a gentoo thing, or (most likely) something I jumbled up, and I know that my software is far from common. I also took a look at github pull request 22031, but I don't feel qualified to comment there.

I thought I'd post this in case anyone has any thoughts, or another gentoo/mariadb user has the same issue. I've attached the little patch, just for fun.

tc.patch

Link to comment
Share on other sites

  • 3 weeks later...

I see these error during build:

> 13>LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL\lib\VC\ssleay32MD.lib'

> 13>Done building project "mapextractor.vcxproj" -- FAILED

> 14>LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL\lib\VC\ssleay32MD.lib'

> 14>Done building project "mmaps_generator.vcxproj" -- FAILED

> 15>LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL\lib\VC\ssleay32MD.lib'

> 15>Done building project "vmap4assembler.vcxproj" -- FAILED

> 16>LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL\lib\VC\ssleay32MD.lib'

> 16>Done building project "vmap4extractor.vcxproj" -- FAILED

> 20>LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL\lib\VC\ssleay32MD.lib'

> 20>Done building project "authserver.vcxproj" -- FAILED

> 21>LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL\lib\VC\ssleay32MD.lib'

> 21>Done building project "worldserver.vcxproj" -- FAILED.

---

The file "ssleay32MD.lib" does not exist in the OpenSSL folder.

I just had to reinstall Windows 10 on my server. I went through the installation process outlined in the installation guide requirements; reinstalled newer versions of OpenSSL and Boost.

I moved my local copy of the trinitycore installation I had while making those adjustments (Source, Build, and Release folders).

Is there a setting I need to change in Cmake or something?

Link to comment
Share on other sites

1 hour ago, dane said:

It sounds like you ought to delete (or rename) your build folder, make a new one, and configure/compile based on the new setup.

Yep. Thank you.

Build completed just fine. I didn't know CMake stored configuration files in the build folder but in retrospect it makes sense.

Link to comment
Share on other sites

There is now a new error upon starting up the authserver and worldserver:

The code execution cannot proceed because libcrypto-1_1-x64.dll was not found. Reinstalling the program may fix this problem.

 

image.thumb.png.66f591e84644256ab076bebeabf90647.png

 

Found the required dll in my "C:\OpenSSL\bin" directory -- Helps to consult the rest of the Windows Core Installation guide.

Link to comment
Share on other sites

  • 3 weeks later...

I'm having problems in compiling the source in Windows 10 64-bit. I get three errors, and they all seem related to the same problem. These show in the Output window, but not in the Errors window, in VS.

I get:

12>c:\program files\mysql\mysql server 8.0\include\mysql\client_plugin.h(108): error C2371: 'MYSQL': redefinition; different basic types
12>c:\trinity\src\server\database\database\databaseenvfwd.h(48): note: see declaration of 'MYSQL'
12>c:\program files\mysql\mysql server 8.0\include\mysql.h(121): error C2371: 'MYSQL_FIELD': redefinition; different basic types
12>c:\trinity\src\server\database\database\databaseenvfwd.h(50): note: see declaration of 'MYSQL_FIELD'
12>c:\program files\mysql\mysql server 8.0\include\mysql.h(291): error C2371: 'MYSQL_STMT': redefinition; different basic types
12>c:\trinity\src\server\database\database\databaseenvfwd.h(52): note: see declaration of 'MYSQL_STMT'
12>c:\program files\mysql\mysql server 8.0\include\mysql.h(333): error C2371: 'MYSQL_RES': redefinition; different basic types
12>c:\trinity\src\server\database\database\databaseenvfwd.h(49): note: see declaration of 'MYSQL_RES'
12>c:\program files\mysql\mysql server 8.0\include\mysql.h(619): error C2371: 'MYSQL_BIND': redefinition; different basic types
12>c:\trinity\src\server\database\database\databaseenvfwd.h(51): note: see declaration of 'MYSQL_BIND'
12>Done building project "database.vcxproj" -- FAILED.

and then 

20>LINK : fatal error LNK1181: cannot open input file '..\database\RelWithDebInfo\database.lib'
20>Done building project "authserver.vcxproj" -- FAILED.

21>LINK : fatal error LNK1181: cannot open input file '..\database\RelWithDebInfo\database.lib'
21>Done building project "worldserver.vcxproj" -- FAILED.

I checked my process list, and double-checked my environment variables. 

I know I'm using mysql server 8.0 and not 5.6. When I downloaded the MSI for 5.6 64-bit, the server part was missing. When I went into "Add" only version 8.0 was showing. 

If this is specific to mysql 8.0, I'd appreciate a link to 5.6 that includes the server. Or any suggestions on how to make this run with 8.0.

 

Edit: I have also gone to the MySQL archived version site, and each one I download has 8.0.11 only in it: https://downloads.mysql.com/archives/installer/?version=5.6.26

Edit 2: SOLVED don't have your network connected with doing the MySQL installation - it automatically grabs the latest server from the website instead of installing the one that is downloaded.

Edited by Hesione
solved problem
Link to comment
Share on other sites

Hello guys, I have some errors on compiling will be happy if someone helps me :) : 

 

  • error LNK2019: unresolved external symbol "void __cdecl LoadGameObjectModelList(void)" (?LoadGameObjectModelList@@YAXXZ) referenced in function "public: void __thiscall World::SetInitialWorldSettings(void)" (?SetInitialWorldSettings@World@@QAEXXZ)
    C:\Users\Javad\Desktop\Circle\src\server\worldserv er\game.lib(World.obj)
    ———-
    error LNK2019: unresolved external symbol "public: __thiscall GameObjectModel::~GameObjectModel(void)" (??1GameObjectModel@@QAE@XZ) referenced in function "public: virtual __thiscall GameObject::~GameObject(void)" (??1GameObject@@UAE@XZ)
    C:\Users\Javad\Desktop\Circle\src\server\worldserv er\game.lib(GameObject.obj)
    ———-
    error LNK2019: unresolved external symbol "public: static class GameObjectModel * __cdecl GameObjectModel::Create(class GameObject const &)" (?Create@GameObjectModel@@SAPAV1@ABVGameObject@@@Z ) referenced in function "public: bool __thiscall GameObject::Create(unsigned int,unsigned int,class Map *,unsigned int,float,float,float,float,float,float,float,floa t,unsigned int,enum GOState,unsigned int)" (?Create@GameObject@@QAE_NIIPAVMap@@IMMMMMMMMIW4GO State@@I@Z)
    C:\Users\Javad\Desktop\Circle\src\server\worldserv er\game.lib(GameObject.obj)
    ———-
    error LNK2019: unresolved external symbol "public: bool __thiscall GameObjectModel::intersectRay(class G3D::Ray const &,float &,bool,unsigned int)const " (?intersectRay@GameObjectModel@@QBE_NABVRay@G3D@@A AM_NI@Z) referenced in function "public: bool __thiscall BIHWrap<class GameObjectModel,struct BoundsTrait<class GameObjectModel> >::MDLCallback<struct DynamicTreeIntersectionCallback>::operator()(class G3D::Ray const &,unsigned int,float &,bool)" (??R?$MDLCallback@UDynamicTreeIntersectionCallback @@@?$BIHWrap@VGameObjectModel@@U?$BoundsTrait@VGam eObjectModel@@@@@@QAE_NABVRay@G3D@@IAAM_N@Z)
    C:\Users\Javad\Desktop\Circle\src\server\worldserv er\collision.lib(DynamicTree.obj)
Link to comment
Share on other sites

Hi everyone,

I'm trying to setup my own local server to play WoW by myself basically, so just trying to setup the basics.

I finally managed to generate the build files with CMake successfully, and when compiling the source (Building in VS), worldserver and authserver both fail to build in the same fashion. Here's the end of the logs, that includes what goes wrong for worldserver (authserver fails similarly).

 

 21>WheatyExceptionReport.cpp
21>ServiceWin32.cpp
21>database.lib(MySQLThreading.obj) : error LNK2019: unresolved external symbol _mysql_server_init@12 referenced in function "void __cdecl MySQL::Library_Init(void)" (?Library_Init@MySQL@@YAXXZ)
21>database.lib(MySQLThreading.obj) : error LNK2019: unresolved external symbol _mysql_server_end@0 referenced in function "void __cdecl MySQL::Library_End(void)" (?Library_End@MySQL@@YAXXZ)
21>database.lib(DatabaseWorkerPool.obj) : error LNK2019: unresolved external symbol _mysql_get_client_info@0 referenced in function "public: __thiscall DatabaseWorkerPool<class CharacterDatabaseConnection>::DatabaseWorkerPool<class CharacterDatabaseConnection>(void)" (??0?$DatabaseWorkerPool@VCharacterDatabaseConnection@@@@QAE@XZ)
21>database.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol _mysql_get_client_info@0
21>database.lib(DatabaseWorkerPool.obj) : error LNK2019: unresolved external symbol _mysql_get_client_version@0 referenced in function "public: __thiscall DatabaseWorkerPool<class CharacterDatabaseConnection>::DatabaseWorkerPool<class CharacterDatabaseConnection>(void)" (??0?$DatabaseWorkerPool@VCharacterDatabaseConnection@@@@QAE@XZ)
21>database.lib(DatabaseWorkerPool.obj) : error LNK2019: unresolved external symbol _mysql_get_server_version@4 referenced in function "private: unsigned int __thiscall DatabaseWorkerPool<class CharacterDatabaseConnection>::OpenConnections(enum DatabaseWorkerPool<class CharacterDatabaseConnection>::InternalIndex,unsigned char)" (?OpenConnections@?$DatabaseWorkerPool@VCharacterDatabaseConnection@@@@AAEIW4InternalIndex@1@E@Z)
21>database.lib(DatabaseWorkerPool.obj) : error LNK2019: unresolved external symbol _mysql_real_escape_string@16 referenced in function "private: unsigned long __thiscall DatabaseWorkerPool<class CharacterDatabaseConnection>::EscapeString(char *,char const *,unsigned long)" (?EscapeString@?$DatabaseWorkerPool@VCharacterDatabaseConnection@@@@AAEKPADPBDK@Z)
21>database.lib(DatabaseWorkerPool.obj) : error LNK2019: unresolved external symbol _mysql_thread_safe@0 referenced in function "public: __thiscall DatabaseWorkerPool<class CharacterDatabaseConnection>::DatabaseWorkerPool<class CharacterDatabaseConnection>(void)" (??0?$DatabaseWorkerPool@VCharacterDatabaseConnection@@@@QAE@XZ)
21>database.lib(PreparedStatement.obj) : error LNK2019: unresolved external symbol _mysql_stmt_param_count@4 referenced in function "public: __thiscall MySQLPreparedStatement::MySQLPreparedStatement(struct st_mysql_stmt *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0MySQLPreparedStatement@@QAE@PAUst_mysql_stmt@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
21>database.lib(PreparedStatement.obj) : error LNK2019: unresolved external symbol _mysql_stmt_attr_set@12 referenced in function "public: __thiscall MySQLPreparedStatement::MySQLPreparedStatement(struct st_mysql_stmt *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0MySQLPreparedStatement@@QAE@PAUst_mysql_stmt@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
21>database.lib(PreparedStatement.obj) : error LNK2019: unresolved external symbol _mysql_stmt_close@4 referenced in function "public: __thiscall MySQLPreparedStatement::~MySQLPreparedStatement(void)" (??1MySQLPreparedStatement@@QAE@XZ)
21>database.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol _mysql_stmt_close@4
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_fetch_fields@4 referenced in function __catch$??0PreparedResultSet@@QAE@PAUst_mysql_stmt@@PAUst_mysql_res@@_KI@Z$0
21>database.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol _mysql_fetch_fields@4
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_error@4 referenced in function "public: bool __thiscall ResultSet::NextRow(void)" (?NextRow@ResultSet@@QAE_NXZ)
21>database.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol _mysql_error@4
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_free_result@4 referenced in function "private: void __thiscall PreparedResultSet::CleanUp(void)" (?CleanUp@PreparedResultSet@@AAEXXZ)
21>database.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol _mysql_free_result@4
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_fetch_row@4 referenced in function "public: bool __thiscall ResultSet::NextRow(void)" (?NextRow@ResultSet@@QAE_NXZ)
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_fetch_lengths@4 referenced in function "public: bool __thiscall ResultSet::NextRow(void)" (?NextRow@ResultSet@@QAE_NXZ)
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_stmt_fetch@4 referenced in function "private: bool __thiscall PreparedResultSet::_NextRow(void)" (?_NextRow@PreparedResultSet@@AAE_NXZ)
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_stmt_store_result@4 referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" (??0PreparedResultSet@@QAE@PAUst_mysql_stmt@@PAUst_mysql_res@@_KI@Z)
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_stmt_bind_result@8 referenced in function __catch$??0PreparedResultSet@@QAE@PAUst_mysql_stmt@@PAUst_mysql_res@@_KI@Z$0
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_stmt_free_result@4 referenced in function __catch$??0PreparedResultSet@@QAE@PAUst_mysql_stmt@@PAUst_mysql_res@@_KI@Z$2
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_stmt_error@4 referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" (??0PreparedResultSet@@QAE@PAUst_mysql_stmt@@PAUst_mysql_res@@_KI@Z)
21>database.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol _mysql_stmt_error@4
21>database.lib(QueryResult.obj) : error LNK2019: unresolved external symbol _mysql_stmt_num_rows@4 referenced in function __catch$??0PreparedResultSet@@QAE@PAUst_mysql_stmt@@PAUst_mysql_res@@_KI@Z$0
21>database.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol _mysql_stmt_num_rows@4
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_field_count@4 referenced in function __catch$?_Query@MySQLConnection@@QAE_NPBDPAPAUst_mysql_res@@PAPAUst_mysql_field@@PA_KPAI@Z$4
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_affected_rows@4 referenced in function __catch$?_Query@MySQLConnection@@QAE_NPBDPAPAUst_mysql_res@@PAPAUst_mysql_field@@PA_KPAI@Z$4
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_errno@4 referenced in function "public: bool __thiscall MySQLConnection::Execute(class PreparedStatement *)" (?Execute@MySQLConnection@@QAE_NPAVPreparedStatement@@@Z)
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_set_character_set@8 referenced in function __catch$?Open@MySQLConnection@@UAEIXZ$6
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_init@4 referenced in function "public: virtual unsigned int __thiscall MySQLConnection::Open(void)" (?Open@MySQLConnection@@UAEIXZ)
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function __catch$?Open@MySQLConnection@@UAEIXZ$0
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_query@8 referenced in function "public: bool __thiscall MySQLConnection::Execute(char const *)" (?Execute@MySQLConnection@@QAE_NPBD@Z)
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_store_result@4 referenced in function __catch$?_Query@MySQLConnection@@QAE_NPBDPAPAUst_mysql_res@@PAPAUst_mysql_field@@PA_KPAI@Z$4
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_ping@4 referenced in function "public: void __thiscall MySQLConnection::Ping(void)" (?Ping@MySQLConnection@@QAEXXZ)
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_get_server_info@4 referenced in function __catch$?Open@MySQLConnection@@UAEIXZ$2
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_options@12 referenced in function __catch$?Open@MySQLConnection@@UAEIXZ$0
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_stmt_init@4 referenced in function "protected: void __thiscall MySQLConnection::PrepareStatement(unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum ConnectionFlags)" (?PrepareStatement@MySQLConnection@@IAEXIABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4ConnectionFlags@@@Z)
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_stmt_prepare@12 referenced in function __catch$?PrepareStatement@MySQLConnection@@IAEXIABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4ConnectionFlags@@@Z$2
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_stmt_execute@4 referenced in function __catch$?Execute@MySQLConnection@@QAE_NPAVPreparedStatement@@@Z$0
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_stmt_bind_param@8 referenced in function "public: bool __thiscall MySQLConnection::Execute(class PreparedStatement *)" (?Execute@MySQLConnection@@QAE_NPAVPreparedStatement@@@Z)
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_stmt_result_metadata@4 referenced in function __catch$?_Query@MySQLConnection@@QAE_NPAVPreparedStatement@@PAPAUst_mysql_res@@PA_KPAI@Z$4
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_stmt_field_count@4 referenced in function __catch$?_Query@MySQLConnection@@QAE_NPAVPreparedStatement@@PAPAUst_mysql_res@@PA_KPAI@Z$4
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_autocommit@8 referenced in function __catch$?Open@MySQLConnection@@UAEIXZ$6
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_more_results@4 referenced in function "public: class PreparedResultSet * __thiscall MySQLConnection::Query(class PreparedStatement *)" (?Query@MySQLConnection@@QAEPAVPreparedResultSet@@PAVPreparedStatement@@@Z)
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_next_result@4 referenced in function "public: class PreparedResultSet * __thiscall MySQLConnection::Query(class PreparedStatement *)" (?Query@MySQLConnection@@QAEPAVPreparedResultSet@@PAVPreparedStatement@@@Z)
21>database.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol _mysql_close@4 referenced in function "public: void __thiscall MySQLConnection::Close(void)" (?Close@MySQLConnection@@QAEXXZ)
21>C:\Program Files\MySQL\MySQL Server 5.6\lib\libmysql.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86'
21>C:\Build\bin\RelWithDebInfo\worldserver.exe : fatal error LNK1120: 42 unresolved externals
21>Done building project "worldserver.vcxproj" -- FAILED.
22>------ Build started: Project: ALL_BUILD, Configuration: RelWithDebInfo Win32 ------
22>Building Custom Rule C:/Trinity/CMakeLists.txt
22>CMake does not need to re-run because C:/Build/CMakeFiles/generate.stamp is up-to-date.
========== Build: 20 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

 

Here's the CMake log, in case there's already something wrong there, but I don't think so

 

 

Selecting Windows SDK version 10.0.17134.0 to target Windows 6.3.9600.

CMake Deprecation Warning at CMakeLists.txt:22 (cmake_policy):
The OLD behavior for policy CMP0005 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

 

CMake Deprecation Warning at CMakeLists.txt:24 (cmake_policy):
The OLD behavior for policy CMP0043 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

 

Detected 32-bit platform

MSVC: Enabled large address awareness

MSVC: Enabled SSE2 support

MSVC: Disabled Safe Exception Handlers for debug builds

MSVC: Enabled increased number of sections in object files

MSVC: Overloaded standard names

MSVC: Disabled NON-SECURE warnings

MSVC: Disabled POSIX warnings

MSVC: Disabled generic compiletime warnings

cotire 1.7.10 loaded.

Found MySQL library: C:/Program Files/MySQL/MySQL Server 5.6/lib/libmysql.lib

Found MySQL headers: C:/Program Files/MySQL/MySQL Server 5.6/include

Found MySQL executable: C:/Program Files/MySQL/MySQL Server 5.6/bin/mysql.exe

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

 

* TrinityCore revision : ca7ee982db4d+ 2018-08-31 21:48:56 -0300 (3.3.5 branch)

 

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

 

* 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)

 

CMake Warning (dev) at dep/boost/CMakeLists.txt:44 (find_package):
Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Environment variable Boost_ROOT is set to:

C:\local\boost_1_66_0

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.

Boost version: 1.66.0

Found the following Boost libraries:

system

filesystem

thread

program_options

iostreams

regex

Found OpenSSL library: optimized;C:/OpenSSL-Win32/lib/VC/libssl32MD.lib;C:/OpenSSL-Win32/lib/VC/libcrypto32MD.lib;debug;C:/OpenSSL-Win32/lib/VC/libssl32MDd.lib;C:/OpenSSL-Win32/lib/VC/libcrypto32MDd.lib

Found OpenSSL headers: C:/OpenSSL-Win32/include

 

* Script configuration (static):
|

+- worldserver

| +- Commands

| +- Custom

| +- EasternKingdoms

| +- Events

| +- Kalimdor

| +- Northrend

| +- OutdoorPvP

| +- Outland

| +- Pet

| +- Spells

| +- World

|

 

Configuring done

Generating done

 

I really have no idea what's going wrong, any help would be very appreciated! :)

Thank you!

Link to comment
Share on other sites

Hi there,

after the last git pull I am no longer able to compile the server.
I went into my TrinityCore folder, then used

git pull origin 3.3.5

there, went to the build folder afterwards and used cmake ../ there.

After trying to compile the server with

make -j 2

I get the following error:

	trinity@mondlichtung:~/TrinityCore/build$ make -j 2
[  0%] Built target Detour
[  4%] Built target g3dlib
[  5%] Built target Recast
[  6%] Built target fmt
[  6%] Built target gsoap
[  7%] Built target mpq
[ 10%] Built target jemalloc
[ 10%] Built target revision_data.h
[ 10%] Building CXX object src/common/CMakeFiles/common.dir/GitRevision.cpp.o
fatal error: file '/usr/include/asm-generic/errno.h' has been modified since the precompiled header '/home/trinity/TrinityCore/build/src/common/cotire/common_CXX_prefix.hxx.pch' was built
note: please rebuild precompiled header '/home/trinity/TrinityCore/build/src/common/cotire/common_CXX_prefix.hxx.pch'
1 error generated.
src/common/CMakeFiles/common.dir/build.make:127: recipe for target 'src/common/CMakeFiles/common.dir/GitRevision.cpp.o' failed
make[2]: *** [src/common/CMakeFiles/common.dir/GitRevision.cpp.o] Error 1
CMakeFiles/Makefile2:897: recipe for target 'src/common/CMakeFiles/common.dir/all' failed
make[1]: *** [src/common/CMakeFiles/common.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Edited by Elygor77
Link to comment
Share on other sites

4 hours ago, Elygor77 said:

Hi there,

after the last git pull I am no longer able to compile the server.
I went into my TrinityCore folder, then used


git pull origin 3.3.5

there, went to the build folder afterwards and used cmake ../ there.

After trying to compile the server with


make -j 2

I get the following error:


	trinity@mondlichtung:~/TrinityCore/build$ make -j 2
[  0%] Built target Detour
[  4%] Built target g3dlib
[  5%] Built target Recast
[  6%] Built target fmt
[  6%] Built target gsoap
[  7%] Built target mpq
[ 10%] Built target jemalloc
[ 10%] Built target revision_data.h
[ 10%] Building CXX object src/common/CMakeFiles/common.dir/GitRevision.cpp.o
fatal error: file '/usr/include/asm-generic/errno.h' has been modified since the precompiled header '/home/trinity/TrinityCore/build/src/common/cotire/common_CXX_prefix.hxx.pch' was built
note: please rebuild precompiled header '/home/trinity/TrinityCore/build/src/common/cotire/common_CXX_prefix.hxx.pch'
1 error generated.
src/common/CMakeFiles/common.dir/build.make:127: recipe for target 'src/common/CMakeFiles/common.dir/GitRevision.cpp.o' failed
make[2]: *** [src/common/CMakeFiles/common.dir/GitRevision.cpp.o] Error 1
CMakeFiles/Makefile2:897: recipe for target 'src/common/CMakeFiles/common.dir/all' failed
make[1]: *** [src/common/CMakeFiles/common.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

make clean or remove build directory and rerun cmake again.

Link to comment
Share on other sites

Please helpme, when compile ashamane project i have this error, what is the reason?

24>Creature.cpp
24>D:\Ashamane\AshamaneCore\src\server\game\Entities\Object\Object.h(218): warning C4018: '>=': signed/unsigned mismatch (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)
24>D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp(163): note: see reference to function template instantiation 'const T *Object::GetDynamicStructuredValue<ConversationDynamicFieldActor>(uint16,uint16) const' being compiled
24>        with
24>        [
24>            T=ConversationDynamicFieldActor
24>        ]
24>C:\local\boost_1_68_0\boost/bind/placeholders.hpp(54): note: see reference to class template instantiation 'boost::arg<9>' being compiled (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)
24>C:\local\boost_1_68_0\boost/bind/placeholders.hpp(53): note: see reference to class template instantiation 'boost::arg<8>' being compiled (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)
24>C:\local\boost_1_68_0\boost/bind/placeholders.hpp(52): note: see reference to class template instantiation 'boost::arg<7>' being compiled (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)
24>C:\local\boost_1_68_0\boost/bind/placeholders.hpp(51): note: see reference to class template instantiation 'boost::arg<6>' being compiled (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)
24>C:\local\boost_1_68_0\boost/bind/placeholders.hpp(50): note: see reference to class template instantiation 'boost::arg<5>' being compiled (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)
24>C:\local\boost_1_68_0\boost/bind/placeholders.hpp(49): note: see reference to class template instantiation 'boost::arg<4>' being compiled (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)
24>C:\local\boost_1_68_0\boost/bind/placeholders.hpp(48): note: see reference to class template instantiation 'boost::arg<3>' being compiled (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)
24>C:\local\boost_1_68_0\boost/bind/placeholders.hpp(47): note: see reference to class template instantiation 'boost::arg<2>' being compiled (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)
24>C:\local\boost_1_68_0\boost/bind/placeholders.hpp(46): note: see reference to class template instantiation 'boost::arg<1>' being compiled (compiling source file D:\Ashamane\AshamaneCore\src\server\game\Entities\Conversation\Conversation.cpp)

Link to comment
Share on other sites

  • Aokromes changed the title to Compile or cmake problems
  • Aokromes pinned this topic
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...