Jump to content
TrinityCore

Glathberif

Plebs
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Glathberif

  1. 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!

×
×
  • Create New...