Jump to content
TrinityCore

Recommended Posts

Maybe I'm just dense but I'm pretty sure I'm doing what those instructions said. CMake finds the libraries fine and doesn't spit any error codes at me but when I try and build authserver and worldserver in Visual, it throws up those error messages. Everything else builds fine up until those two. 

 

Make sure that MYSQL_LIBRARY in CMake points to the right library for your version: 32 or 64 bits.

Share this post


Link to post
Share on other sites

Greetings

 

I have been struggling with this boost thing for many many hours already. I can't seem to figure out what's wrong. I have Windows 7 x64 home prem.

 

I have downloaded both 32-bit and 64x archs of Boost 1.55 and placed them into C:/local. I set user and system environments to point to right directions (BOOST_ROOT => C:localboost_1_55_0) (BOOST_INCLUDEDIR => C:localboost_1_55_0boost). But when I try to configure cmake (I have deleted cmake's  build directory hundreds of times) it throws an error:

The C compiler identification is MSVC 18.0.21005.1
The CXX compiler identification is MSVC 18.0.21005.1
Check for working C compiler using: Visual Studio 12 2013 Win64
Check for working C compiler using: Visual Studio 12 2013 Win64 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 12 2013 Win64
Check for working CXX compiler using: Visual Studio 12 2013 Win64 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detected 64-bit platform
Using supplied MySQL sources
MSVC: 64-bit platform, enforced -D_WIN64 parameter
MSVC: Enabled extended object-support for debug-compiles
MSVC: Overloaded standard names
MSVC: Disabled NON-SECURE warnings
MSVC: Disabled POSIX warnings
MSVC: Disabled generic compiletime warnings
Found OpenSSL library: optimized;C:/Program Files (x86)/CMake/OpenSSL-Win64/lib/VC/ssleay32MD.lib;C:/Program Files (x86)/CMake/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;C:/Program Files (x86)/CMake/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;C:/Program Files (x86)/CMake/OpenSSL-Win64/lib/VC/libeay32MDd.lib
Found OpenSSL headers: C:/Program Files (x86)/CMake/OpenSSL-Win64/include
Looking for include file pthread.h
Looking for include file pthread.h - not found
Found Threads: TRUE  
CMake Error at cmake/macros/FindBoost.cmake:1113 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  cmake/macros/ConfigureBoost.cmake:28 (find_package)
  CMakeLists.txt:60 (include)

Cmake's error log says:

Determining if files pthread.h exist failed with the following output:
Change Dir: D:/trinitycore/cmaked/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe" "cmTryCompileExec648381242.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=12.0"
Microsoft (R) Build Engine version 12.0.21005.1

[Microsoft .NET Framework, version 4.0.30319.18444]

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 28.8.2014 1:24:01.

Project "D:trinitycorecmakedCMakeFilesCMakeTmpcmTryCompileExec648381242.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTryCompileExec648381242.dirDebug".

  Creating directory "D:trinitycorecmakedCMakeFilesCMakeTmpDebug".

  Creating directory "cmTryCompileExec648381242.dirDebugcmTryCom.53273A62.tlog".

InitializeBuildStatus:

  Creating "cmTryCompileExec648381242.dirDebugcmTryCom.53273A62.tlogunsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:Program Files (x86)Microsoft Visual Studio 12.0VCbinx86_amd64CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec648381242.dirDebug" /Fd"cmTryCompileExec648381242.dirDebugvc120.pdb" /Gd /TC /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619 /wd4512 /errorReport:queue CheckIncludeFiles.c

  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x64

  Copyright (C) Microsoft Corporation.  All rights reserved.

  

  cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec648381242.dirDebug" /Fd"cmTryCompileExec648381242.dirDebugvc120.pdb" /Gd /TC /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619 /wd4512 /errorReport:queue CheckIncludeFiles.c

  CheckIncludeFiles.c

  

CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [D:trinitycorecmakedCMakeFilesCMakeTmpcmTryCompileExec648381242.vcxproj]

Done Building Project "D:trinitycorecmakedCMakeFilesCMakeTmpcmTryCompileExec648381242.vcxproj" (default targets) -- FAILED.



Build FAILED.



"D:trinitycorecmakedCMakeFilesCMakeTmpcmTryCompileExec648381242.vcxproj" (default target) (1) ->

(ClCompile target) -> 

  CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [D:trinitycorecmakedCMakeFilesCMakeTmpcmTryCompileExec648381242.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.28


Source:
/* */
#include <pthread.h>


int main(){return 0;}


I have seriously struggled with this many hours and I can't figure out what the hell is wrong with it.

 

Regards,

Apple

 

Share this post


Link to post
Share on other sites

Missing pthread.h is not an error on Windows (not even a warning). The 2nd log fails because cmake didn't configure properly because of Boost issues.

 

If BOOST_ROOT is set to the correct path and the path has the 1.55 Boost files then it has to work.

You do not need to (and probably shouldn't) set BOOST_INCLUDEDIR.

Share this post


Link to post
Share on other sites

The only difference I see to my configuration is that you are using 64bit compilation. May there must be an additional setting somewhere. Don't know how much people compiles in 64bit.

Share this post


Link to post
Share on other sites

I gotta try to reinstall everything and make sure everything is 120% x64.

 

EDIT: can it be that I have Visual Studio 2013 professional? Installation guide talks about express version

 

DOUBLE EDIT: I deleted CMake 3.0, rebooted, installed CMake 2.8.12 and it found Boost this time. Might be that CMake 3.0 did not find my Visual Studio 2013 pro.

Share this post


Link to post
Share on other sites

Hi, after you change the mysql finding in core i can't compile without errors.. here is my Cmake and Visual Studio logs

 

 

Detected 32-bit platform
MSVC: Enabled large address awareness
MSVC: Enabled SSE2 support
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
Boost version: 1.56.0
Found the following Boost libraries:
system
thread
program_options
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 git binary : C:/Program Files (x86)/Git/bin/git.exe

Could not find a proper repository signature (hash) - you may need to pull tags with git fetch -t
Continuing anyway - note that the versionstring will be set to "Echelon Alpha 2014-28-08 00:00:00 (Archived)"

* TrinityCore revision : Echelon Alpha 2014-29-08 00:00:000 +0000 (Archived 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)
* Use MySQL sourcetree : No
* Use GIT revision hash : Yes

SCRIPT PREPARATIONS
-> Prepared: Spells
-> Prepared: Commands
-> Prepared: Examples
-> Prepared: Custom
-> Prepared: World
-> Prepared: Outdoor PVP Zones
-> Prepared: Eastern Kingdoms
-> Prepared: Kalimdor
-> Prepared: Outland
-> Prepared: Northrend
-> Prepared: Events
-> Prepared: Pet
SCRIPT PREPARATION COMPLETE

Configuring done
1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------
2>------ Build started: Project: revision.h, Configuration: Release Win32 ------
2>  -- 
2>      Could not find a proper repository signature (hash) - you may need to pull tags with git fetch -t
2>      Continuing anyway - note that the versionstring will be set to "Echelon Alpha 2014-28-08 00:00:00 (Archived)"
3>------ Build started: Project: authserver, Configuration: Release Win32 ------
4>------ Build started: Project: worldserver, Configuration: Release Win32 ------
3>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static void __cdecl MySQL::Library_Init(void)" ([email protected]@@SAXXZ)
3>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static void __cdecl MySQL::Library_End(void)" ([email protected]@@SAXXZ)
3>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "private: virtual bool __thiscall PingOperation::Execute(void)" ([email protected]@@EAE_NXZ)
3>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall DatabaseWorkerPool<class LoginDatabaseConnection>::DatabaseWorkerPool<class LoginDatabaseConnection>(void)" ([email protected]@@@@[email protected])
3>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall DatabaseWorkerPool<class LoginDatabaseConnection>::OpenConnections(enum DatabaseWorkerPool<class LoginDatabaseConnection>::InternalIndex,unsigned char)" ([email protected][email protected]@@@@[email protected]@[email protected])
3>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall DatabaseWorkerPool<class LoginDatabaseConnection>::DatabaseWorkerPool<class LoginDatabaseConnection>(void)" ([email protected]@@@@[email protected])
3>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall ResultSet::~ResultSet(void)" ([email protected]@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol [email protected]
3>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ResultSet::NextRow(void)" ([email protected]@@QAE_NXZ)
3>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
3>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
3>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
3>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
3>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: void __thiscall PreparedResultSet::CleanUp(void)" ([email protected]@@AAEXXZ)
3>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol [email protected]
3>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol [email protected]
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(class PreparedStatement *)" ([email protected]@@[email protected]@@Z)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(char const *)" ([email protected]@@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall MySQLConnection::_HandleMySQLErrno(unsigned int)" ([email protected]@@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(char const *)" ([email protected]@@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: void __thiscall MySQLConnection::PrepareStatement(unsigned int,char const *,enum ConnectionFlags)" ([email protected]@@[email protected]@@Z)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: void __thiscall MySQLConnection::PrepareStatement(unsigned int,char const *,enum ConnectionFlags)" ([email protected]@@[email protected]@@Z)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(class PreparedStatement *)" ([email protected]@@[email protected]@@Z)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(class PreparedStatement *)" ([email protected]@@[email protected]@@Z)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: void __thiscall MySQLConnection::PrepareStatement(unsigned int,char const *,enum ConnectionFlags)" ([email protected]@@[email protected]@@Z)
3>shared.lib(PreparedStatement.obj) : error LNK2001: unresolved external symbol [email protected]
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(class PreparedStatement *,struct st_mysql_res * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(class PreparedStatement *,struct st_mysql_res * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: class PreparedResultSet * __thiscall MySQLConnection::Query(class PreparedStatement *)" ([email protected]@@[email protected]@[email protected]@@Z)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: class PreparedResultSet * __thiscall MySQLConnection::Query(class PreparedStatement *)" ([email protected]@@[email protected]@[email protected]@@Z)
3>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual __thiscall MySQLConnection::~MySQLConnection(void)" ([email protected]@[email protected])
3>shared.lib(PreparedStatement.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall MySQLPreparedStatement::MySQLPreparedStatement(struct st_mysql_stmt *)" ([email protected]@[email protected][email protected]@@Z)
3>shared.lib(PreparedStatement.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall MySQLPreparedStatement::MySQLPreparedStatement(struct st_mysql_stmt *)" ([email protected]@[email protected][email protected]@@Z)
3>D:ServerEchelonbuildbinReleaseauthserver.exe : fatal error LNK1120: 42 unresolved externals
4>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static void __cdecl MySQL::Library_Init(void)" ([email protected]@@SAXXZ)
4>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static void __cdecl MySQL::Library_End(void)" ([email protected]@@SAXXZ)
4>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall DatabaseWorkerPool<class CharacterDatabaseConnection>::DatabaseWorkerPool<class CharacterDatabaseConnection>(void)" ([email protected]@@@@[email protected])
4>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall DatabaseWorkerPool<class CharacterDatabaseConnection>::OpenConnections(enum DatabaseWorkerPool<class CharacterDatabaseConnection>::InternalIndex,unsigned char)" ([email protected][email protected]@@@@[email protected]@[email protected])
4>Main.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall DatabaseWorkerPool<class CharacterDatabaseConnection>::DatabaseWorkerPool<class CharacterDatabaseConnection>(void)" ([email protected]@@@@[email protected])
4>game.lib(World.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: virtual bool __thiscall PingOperation::Execute(void)" ([email protected]@@EAE_NXZ)
4>scripts.lib(cs_misc.obj) : error LNK2001: unresolved external symbol [email protected]
4>scripts.lib(cs_wp.obj) : error LNK2001: unresolved external symbol [email protected]
4>game.lib(PlayerDump.obj) : error LNK2001: unresolved external symbol [email protected]
4>scripts.lib(cs_ban.obj) : error LNK2001: unresolved external symbol [email protected]
4>scripts.lib(cs_go.obj) : error LNK2001: unresolved external symbol [email protected]
4>scripts.lib(cs_gobject.obj) : error LNK2001: unresolved external symbol [email protected]
4>game.lib(CharacterHandler.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: unsigned long __thiscall DatabaseWorkerPool<class CharacterDatabaseConnection>::EscapeString(char *,char const *,unsigned long)" ([email protected][email protected]@@@@[email protected])
4>game.lib(Pet.obj) : error LNK2001: unresolved external symbol [email protected]
4>game.lib(PetitionsHandler.obj) : error LNK2001: unresolved external symbol [email protected]
4>game.lib(GroupHandler.obj) : error LNK2001: unresolved external symbol [email protected]
4>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall ResultSet::~ResultSet(void)" ([email protected]@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol [email protected]
4>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ResultSet::NextRow(void)" ([email protected]@@QAE_NXZ)
4>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
4>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
4>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
4>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
4>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: void __thiscall PreparedResultSet::CleanUp(void)" ([email protected]@@AAEXXZ)
4>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol [email protected]
4>shared.lib(QueryResult.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2001: unresolved external symbol [email protected]
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(class PreparedStatement *)" ([email protected]@@[email protected]@@Z)
4>shared.lib(Transaction.obj) : error LNK2001: unresolved external symbol [email protected]
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(char const *)" ([email protected]@@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall MySQLConnection::_HandleMySQLErrno(unsigned int)" ([email protected]@@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(char const *)" ([email protected]@@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(char const *,struct st_mysql_res * *,struct st_mysql_field * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: void __thiscall MySQLConnection::PrepareStatement(unsigned int,char const *,enum ConnectionFlags)" ([email protected]@@[email protected]@@Z)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: void __thiscall MySQLConnection::PrepareStatement(unsigned int,char const *,enum ConnectionFlags)" ([email protected]@@[email protected]@@Z)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(class PreparedStatement *)" ([email protected]@@[email protected]@@Z)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::Execute(class PreparedStatement *)" ([email protected]@@[email protected]@@Z)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: void __thiscall MySQLConnection::PrepareStatement(unsigned int,char const *,enum ConnectionFlags)" ([email protected]@@[email protected]@@Z)
4>shared.lib(PreparedStatement.obj) : error LNK2001: unresolved external symbol [email protected]
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(class PreparedStatement *,struct st_mysql_res * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MySQLConnection::_Query(class PreparedStatement *,struct st_mysql_res * *,unsigned __int64 *,unsigned int *)" ([email protected]@@[email protected]@[email protected]@[email protected])
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall MySQLConnection::Open(void)" ([email protected]@@UAE_NXZ)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: class PreparedResultSet * __thiscall MySQLConnection::Query(class PreparedStatement *)" ([email protected]@@[email protected]@[email protected]@@Z)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: class PreparedResultSet * __thiscall MySQLConnection::Query(class PreparedStatement *)" ([email protected]@@[email protected]@[email protected]@@Z)
4>shared.lib(MySQLConnection.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual __thiscall MySQLConnection::~MySQLConnection(void)" ([email protected]@[email protected])
4>shared.lib(PreparedStatement.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall MySQLPreparedStatement::MySQLPreparedStatement(struct st_mysql_stmt *)" ([email protected]@[email protected][email protected]@@Z)
4>shared.lib(PreparedStatement.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall MySQLPreparedStatement::MySQLPreparedStatement(struct st_mysql_stmt *)" ([email protected]@[email protected][email protected]@@Z)
4>D:ServerEchelonbuildbinReleaseworldserver.exe : fatal error LNK1120: 43 unresolved externals
5>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------
5>  Build all projects
========== Build: 3 succeeded, 2 failed, 9 up-to-date, 0 skipped =======

Thanks for helping.  and sorry for Big Code.

Share this post


Link to post
Share on other sites

--- Canned message start ---

If this is your 1st time with TrinityCore read http://collab.kpsn.org/display/tc/TrinityCore+Home

Also read http://www.trinitycore.org/f/topic/1518-trouble-with-your-trinity-install-readme-1st-faqs/

Also please Look in upper right hand corner of the forum, there is a button labeled search field, feel free to search for your issues first before posting, most questions like this one have already been answered.

If you still cannot find the answers you seek feel free to make a post and tell us the steps you took to resolve this issue and we will do our best to help you.

--- Canned message end ---

Share this post


Link to post
Share on other sites

Hy help me i got error on 2014 trinitycore

 

Error 1 error LNK2019: unresolved external symbol [email protected] referenced in function "public: static void __cdecl MySQL::Library_Init(void)" ([email protected]@@SAXXZ) C:UsersMarekDesktopPCCBUILDsrcserverauthserverMain.obj authserver

Error 2 error LNK2019: unresolved external symbol [email protected] referenced in function "public: static void __cdecl MySQL::Library_End(void)" ([email protected]@@SAXXZ) C:UsersMarekDesktopPCCBUILDsrcserverauthserverMain.obj authserver
Error 3 error LNK2019: unresolved external symbol [email protected] referenced in function "private: virtual bool __thiscall PingOperation::Execute(void)" ([email protected]@@EAE_NXZ) C:UsersMarekDesktopPCCBUILDsrcserverauthserverMain.obj authserver
Error 4 error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall DatabaseWorkerPool<class LoginDatabaseConnection>::DatabaseWorkerPool<class LoginDatabaseConnection>(void)" ([email protected]@@@@[email protected]) C:UsersMarekDesktopPCCBUILDsrcserverauthserverMain.obj authserver
Error 5 error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall DatabaseWorkerPool<class LoginDatabaseConnection>::OpenConnections(enum DatabaseWorkerPool<class LoginDatabaseConnection>::InternalIndex,unsigned char)" ([email protected][email protected]@@@@[email protected]@[email protected]) C:UsersMarekDesktopPCCBUILDsrcserverauthserverMain.obj authserver
Error 6 error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall DatabaseWorkerPool<class LoginDatabaseConnection>::DatabaseWorkerPool<class LoginDatabaseConnection>(void)" ([email protected]@@@@[email protected]) C:UsersMarekDesktopPCCBUILDsrcserverauthserverMain.obj authserver
Error 7 error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall ResultSet::~ResultSet(void)" ([email protected]@[email protected]) C:UsersMarekDesktopPCCBUILDsrcserverauthservershared.lib(QueryResult.obj) authserver
Error 8 error LNK2001: unresolved external symbol [email protected] C:UsersMarekDesktopPCCBUILDsrcserverauthservershared.lib(MySQLConnection.obj) authserver
Error 9 error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ResultSet::NextRow(void)" ([email protected]@@QAE_NXZ) C:UsersMarekDesktopPCCBUILDsrcserverauthservershared.lib(QueryResult.obj) authserver
Error 10 error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected]) C:UsersMarekDesktopPCCBUILDsrcserverauthservershared.lib(QueryResult.obj) authserver
Error 11 error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected]) C:UsersMarekDesktopPCCBUILDsrcserverauthservershared.lib(QueryResult.obj) authserver
Error 12 error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected]) C:UsersMarekDesktopPCCBUILDsrcserverauthservershared.lib(QueryResult.obj) authserver
Error 13 error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected]) C:UsersMarekDesktopPCCBUILDsrcserverauthservershared.lib(QueryResult.obj) authserver
Error 14 error LNK2019: unresolved external symbol [email protected] referenced in function "private: void __thiscall PreparedResultSet::CleanUp(void)" ([email protected]@@AAEXXZ) C:UsersMarekDesktopPCCBUILDsrcserverauthservershared.lib(QueryResult.obj) authserver
Error 15 error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall PreparedResultSet::PreparedResultSet(struct st_mysql_stmt *,struct st_mysql_res *,unsigned __int64,unsigned int)" ([email protected]@[email protected][email protected]@[email protected]@[email protected]) C:UsersMarekDesktopPCCBUILDsrcserverauthservershared.lib(QueryResult.obj) authserver

 

Share this post


Link to post
Share on other sites

--- Begin canned message ---
This topic belongs in the Help and Support forum. Moved.
--- End canned message ---

 

 

Install the correct MySQL library: 32 bits or 64 bits depending on your machine and build.

Share this post


Link to post
Share on other sites

--- Begin canned message ---

This topic belongs in the Help and Support forum. Moved.

--- End canned message ---

sorry :D

But realy i cant build it....

Old one i can but not new one...

--- Begin canned message ---

This topic belongs in the Help and Support forum. Moved.

--- End canned message ---

 

 

Install the correct MySQL library: 32 bits or 64 bits depending on your machine and build.

can you give me link to right one?

Edited by mareeks963

Share this post


Link to post
Share on other sites

Version: 9070d433c25a+ 2014-08-31 12:39:15 +0100 (master branch)

OS: Windows 7

Compiler VS2013 express

Target: Relase Win32

MySql version: 5.5

 

When trying to compile this version I get 47 link errors all relating to MySql.  Here is an example of the errors I am getting:

 

Error    1    error LNK2019: unresolved external symbol [email protected] referenced in function "public: static void __cdecl MySQL::Library_Init(void)" ([email protected]@@SAXXZ)    C:TrinityPackagesrcBuildsrcserverauthserverMain.obj    authserver
 

CMake had no problem finding the includes and library files during configuration.  No errors are occuring during the actual compile until linking occurs.

 

The last version I had successfully compiled was on 8/11 (With same OS/Compiler/Cmake). 

 

  Has something changed in the requirements between then and now?

 

  Any other ideas that might get this to compile and link properly?

 

  Thanks,

     Mike

 

Share this post


Link to post
Share on other sites

You linked with the wrong mysql lib.

An easy way to fix that is to download https://github.com/T...5/mysql_lib.zip and change MYSQL_LIBRARY in CMake (enable Advanced if you don't see it) and point it to the 32 or 64 bit libmysql.lib, depending in what mode you are compiling.

Share this post


Link to post
Share on other sites
Hello, Im following a tutorial about trinitycore.
 
I downloaded the full version of OPENSSL.
 
- I downloaded the last version of CMAKE.
 
- I downloaded Microsoft Visual Studio 2013 Express.
 
- I downloaded the last datapack available (TrinityCore-TrinityCore-e85f73c)
 
- I'm not using git
 
I started receiving some errors, but I managed with all.
 
Yes, I received the error "No BOOST_ROOT environment variable could be found!" and fixed with: 
 
0rEPQZy.jpg?1
 
--
 
QFWdCJ1.jpg?1
 
After selecting "i'm not using git", the work was finished and generated.
 
After this, I opened the file "TrinityCore.sln", selected release, and started the compiling solution.
 
The errors:
 
Error 1 error C1083: Cannot open include file: 'boost/asio/io_service.hpp': No such file or directory C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedLoggingLog.h 26 1 shared
 
Error 2 error C1083: Cannot open include file: 'boost/asio/io_service.hpp': No such file or directory (........srcservercollisionManagementMMapManager.cpp) C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedLoggingLog.h 26 1 collision
 
Error 3 error C1083: Cannot open include file: 'boost/asio/io_service.hpp': No such file or directory (........srcservercollisionManagementMMapFactory.cpp) C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedLoggingLog.h 26 1 collision
 
Error 4 error C1083: Cannot open include file: 'boost/asio/io_service.hpp': No such file or directory (........srcservercollisionManagementVMapManager2.cpp) C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedLoggingLog.h 26 1 collision
 
Error 5 error C1083: Cannot open include file: 'boost/asio/io_service.hpp': No such file or directory (........srcservercollisionMapsMapTree.cpp) C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedLoggingLog.h 26 1 collision
 
Error 6 error C1083: Cannot open include file: 'boost/asio/io_service.hpp': No such file or directory (........srcservercollisionModelsGameObjectModel.cpp) C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedLoggingLog.h 26 1 collision
 
Error 7 error C1083: Cannot open include file: 'boost/asio/io_service.hpp': No such file or directory (........srcservercollisionDynamicTree.cpp) C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedLoggingLog.h 26 1 collision
 
Error 8 error C1083: Cannot open include file: 'boost/asio/buffer.hpp': No such file or directory C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedPacketsByteBuffer.h 35 1 game
 
Error 9 error C1083: Cannot open include file: 'boost/asio/io_service.hpp': No such file or directory C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedLoggingLog.h 26 1 scripts
 
Error 10 error C1083: Cannot open include file: 'boost/property_tree/ptree.hpp': No such file or directory C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedConfigurationConfig.h 25 1 authserver
 
Error 11 error C1083: Cannot open include file: 'boost/asio/io_service.hpp': No such file or directory C:UsersburiDocumentswowtrinity coredatasourceTrinityCore-TrinityCore-e85f73csrcserversharedLoggingLog.h 26 1 worldserver
 
---------------
 
The only thing I could find is to rename the "CMakeLists.txt" for this:
set (ENV{BOOST_ROOT} "C:/Boost")
 
but I have already done that as you can see in the pic.
 
Hope I explained well, any help is good.
 
Thanks!!
Edited by bury

Share this post


Link to post
Share on other sites

 

The only thing I could find is to rename the "CMakeLists.txt" for this:
set (ENV{BOOST_ROOT} "C:/Boost")
 
but I have already done that as you can see in the pic.
 
Hope I explained well, any help is good.
 
Thanks!!

 

 

First things first, there's absolutely no reason not to use Git so start by fixing that.

You should not change any CMakeLists.txt file, you do not have to.

All you have to do is create a new Environment Variable named BOOST_ROOT with the path to the Boost installation, as seen in http://collab.kpsn.org/download/attachments/10682398/boost_envs.PNG?version=1&modificationDate=1406047952000&api=v2

 

If that still won't make CMake find Boost, install both version of CMake for 64 bits (http://sourceforge.net/projects/boost/files/boost-binaries/1.55.0-build2/boost_1_55_0-msvc-12.0-64.exe/download) and 32 bits (http://sourceforge.net/projects/boost/files/boost-binaries/1.55.0-build2/boost_1_55_0-msvc-12.0-32.exe/download).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By 939h
      Hi,

      The chat channel Lookup for group is not available when a player isn't in a city. I tried to modify the worldserver.conf file with:
      #
      #    Channel.RestrictedLfg
      #        Description: Restrict LookupForGroup channel to characters registered in the LFG tool.
      #        Default:     1 - (Enabled, Allow join to channel only if registered in LFG)
      #                     0 - (Disabled, Allow join to channel in any time)
      Channel.RestrictedLfg = 0

      I restarted the server but it didn't help.

      Thanks
    • By meeek
      Hey, I've been trying to compile from github the core from 6.2.3/6.2.4, I'm well aware its stopped developing. I cannot get it to configure properly in CMake, nor can I obviously build it.
       
      I'd be willing to pay for help and get this working and running. I want to develop my own server on my freetime as a learning project and for entertainment. I can't find any core for WoD, sadly.. Very hard, would appreciate any quick help
       
    • By Probie_Wan_Kenobi
      I believe everything I have done up to this point has been correct. When I go to launch worldserver.exe a console window opens up for a second and closes right away and nothing else seems to have happened. I skipped a head a little in the instructions to see what is left and step 5 seems skippable since I am running this only for this computer and step 6 has me launch to a log in screen which I can not get to. I tried going to the faq but the page was not loading properly so I am forced to post here.
    • By Wark
      I'd just like to get a little insight to why so much of the current Trinitycore code doesn't match up to a few years ago.
      Now I know I'm not a pro at coding on Trinitycore and I understand that the core is open sourced but these just seem so significant and doesn't seem right to remove this stuff.
       
      Let me give an example. Lets say I'm watching this tutorial to get a little information about classes and methods that I can use when making a script. (I've also been using the Trinitycore Code Documentation as reference as well but it also seems to show the same issues)
      Although the tutorial is a little out of date, I don't see why OnGossipSelect doesn't exist anywhere in CreatureScript and that when I try to link the script to the core code it spits out this error.
      object of abstract class type "GossipTeleporter" is not allowed:
      pure virtual function "CreatureScript::GetAI" has no overrider
      The DEFINES of "ADD_GOSSIP_ITEM" and many more don't exist either.
       
      Am I missing something? All I want to know is if the core is mean't to be this way and if not should I download an older version of the core before I put to much working into my current core.
      (I downloaded my core right from the Trinitycore website tutorial)
       
      I'm currently trying to write a simple gossipteleporter that will let you talk to an npc and teleport to the given location. It's very hard to do this when so many things just don't exist within my core.
       
      EXTRA: I pasted this into a new custom script just to see if I would get errors and I got a lot of different errors: http://pastebin.com/raw/G62e0t49
      This was obtained from here: http://www.ac-web.org/forums/showthread.php?129885-Request-Teleporter-NPC-for-TrinityCore
      By no means am I looking to copy the code from the two links above, I was using them as a test to see if my core accepted them.
       
      Thanks,
      Wark
    • By Cantte
      Well ... today I was about to compile the trinity core version for WoW 4.3.4 of this repository "https://gitlab.com/trinitycore/TrinityCore_434". Download them and when you use the cmake, I generate the solution correctly. When I began to compile this went well until I got to the last step, when I was 90% practically.
      This was the error:
      Main.obj: error LNK2019: external symbol SSLeay_version unresolved referred to in the function "public: void __cdecl <lambda_4a2d53ce610f18dba0b4b4d6532c13a7> :: operator () (void) const" (?? R <lambda_4a2d53ce610f18dba0b4b4d6532c13a7> @@ QEBAXXZ)
      25> scripts.lib (cs_server.obj): error LNK2001: external symbol SSLeay_version unresolved
      25> gsoap.lib (stdsoap2.obj): error LNK2019: unresolved sk_num external symbol referenced in the tcp_connect function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: unresolved sk_value external symbol referenced in the tcp_connect function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: unresolved sk_pop_free external symbol referenced in the tcp_connect function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: outer symbol OPENSSL_add_all_algorithms_noconf unresolved referenced in the soap_ssl_init function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: external symbol SSL_load_error_strings unresolved referenced in the soap_ssl_init function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: unresolved external SSLv23_method symbol referenced in the ssl_auth_init function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: external symbol SSL_library_init unresolved referenced in the soap_ssl_init function
      25> gsoap.lib (stdsoap2.obj): error LNK2019: external symbol SSL_state unresolved referenced in the tcp_connect function
      25> common.lib (OpenSSLCrypto.obj): error LNK2019: external symbol CRYPTO_num_locks unresolved referred to in the function "void __cdecl OpenSSLCrypto :: threadsCleanup (void)" (? ThreadsCleanup @ OpenSSLCrypto @@ YAXXZ)
      25> common.lib (OpenSSLCrypto.obj): error LNK2019: external symbol CRYPTO_set_locking_callback unresolved referred to in the function "void __cdecl OpenSSLCrypto :: threadsCleanup (void)" (? ThreadsCleanup @ OpenSSLCrypto @@ YAXXZ)
      25> common.lib (OpenSSLCrypto.obj): error LNK2019: external symbol CRYPTO_THREADID_set_numeric unresolved referred to in the function "void __cdecl threadIdCallback (struct crypto_threadid_st *)" (? ThreadIdCallback @@ YAXPEAUcrypto_threadid_st @@@ Z)
      25> common.lib (OpenSSLCrypto.obj): error LNK2019: external symbol CRYPTO_THREADID_set_callback unresolved referenced in the function "void __cdecl OpenSSLCrypto :: threadsCleanup (void)" (? ThreadsCleanup @ OpenSSLCrypto @@ YAXXZ)
      25> common.lib (ARC4.obj): error LNK2019: external symbol EVP_CIPHER_CTX_init unresolved referred to in the function "public: __cdecl ARC4 :: ARC4 (unsigned int)" (?? 0ARC4 @@ QEAA @ I @ Z)
      25> common.lib (HmacHash.obj): error LNK2019: unresolved HMAC_CTX_init external symbol referenced in the "struct hmac_ctx_st * __cdecl HMAC_CTX_new (void)" function (? HMAC_CTX_new @@ YAPEAUhmac_ctx_st @@ XZ)
      25> common.lib (HmacHash.obj): error LNK2019: unresolved HMAC_CTX_cleanup external symbol referenced in the "void __cdecl HMAC_CTX_free (struct hmac_ctx_st *)" function (? HMAC_CTX_free @@ YAXPEAUhmac_ctx_st @@@ Z)
      25> E: \ Server-Wow \ TrinityCore_434-4.3.4 \ Build \ bin \ RelWithDebInfo \ worldserver.exe: fatal error LNK1120: 16 external unresolved
      25> Compilation of the "worldserver.vcxproj" project completed - ERROR.
      26> ------ Compile operation started: project: ALL_BUILD, configuration: RelWithDebInfo x64 ------
      26> Building Custom Rule E: /Server-Wow/TrinityCore_434-4.3.4/CMakeLists.txt
      26> CMake does not need to re-run because E: /Server-Wow/TrinityCore_434-4.3.4/Build/CMakeFiles/generate.stamp is up-to-date.
      ========== Compile: 23 correct, 3 incorrect, 0 updated, 0 omitted ==========
       
      And this is the original error in Spanish (since I use the compiler in Spanish)
       
      Main.obj : error LNK2019: símbolo externo SSLeay_version sin resolver al que se hace referencia en la función "public: void __cdecl <lambda_4a2d53ce610f18dba0b4b4d6532c13a7>::operator()(void)const " (??R<lambda_4a2d53ce610f18dba0b4b4d6532c13a7>@@QEBAXXZ)
      25>scripts.lib(cs_server.obj) : error LNK2001: símbolo externo SSLeay_version sin resolver
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo sk_num sin resolver al que se hace referencia en la función tcp_connect
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo sk_value sin resolver al que se hace referencia en la función tcp_connect
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo sk_pop_free sin resolver al que se hace referencia en la función tcp_connect
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo OPENSSL_add_all_algorithms_noconf sin resolver al que se hace referencia en la función soap_ssl_init
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo SSL_load_error_strings sin resolver al que se hace referencia en la función soap_ssl_init
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo SSLv23_method sin resolver al que se hace referencia en la función ssl_auth_init
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo SSL_library_init sin resolver al que se hace referencia en la función soap_ssl_init
      25>gsoap.lib(stdsoap2.obj) : error LNK2019: símbolo externo SSL_state sin resolver al que se hace referencia en la función tcp_connect
      25>common.lib(OpenSSLCrypto.obj) : error LNK2019: símbolo externo CRYPTO_num_locks sin resolver al que se hace referencia en la función "void __cdecl OpenSSLCrypto::threadsCleanup(void)" ([email protected]@@YAXXZ)
      25>common.lib(OpenSSLCrypto.obj) : error LNK2019: símbolo externo CRYPTO_set_locking_callback sin resolver al que se hace referencia en la función "void __cdecl OpenSSLCrypto::threadsCleanup(void)" ([email protected]@@YAXXZ)
      25>common.lib(OpenSSLCrypto.obj) : error LNK2019: símbolo externo CRYPTO_THREADID_set_numeric sin resolver al que se hace referencia en la función "void __cdecl threadIdCallback(struct crypto_threadid_st *)" ([email protected]@[email protected]@@Z)
      25>common.lib(OpenSSLCrypto.obj) : error LNK2019: símbolo externo CRYPTO_THREADID_set_callback sin resolver al que se hace referencia en la función "void __cdecl OpenSSLCrypto::threadsCleanup(void)" ([email protected]@@YAXXZ)
      25>common.lib(ARC4.obj) : error LNK2019: símbolo externo EVP_CIPHER_CTX_init sin resolver al que se hace referencia en la función "public: __cdecl ARC4::ARC4(unsigned int)" ([email protected]@[email protected]@Z)
      25>common.lib(HmacHash.obj) : error LNK2019: símbolo externo HMAC_CTX_init sin resolver al que se hace referencia en la función "struct hmac_ctx_st * __cdecl HMAC_CTX_new(void)" ([email protected]@[email protected]@XZ)
      25>common.lib(HmacHash.obj) : error LNK2019: símbolo externo HMAC_CTX_cleanup sin resolver al que se hace referencia en la función "void __cdecl HMAC_CTX_free(struct hmac_ctx_st *)" ([email protected]@[email protected]@@Z)
      25>E:\Server-Wow\TrinityCore_434-4.3.4\Build\bin\RelWithDebInfo\worldserver.exe : fatal error LNK1120: 16 externos sin resolver
      25>Compilación del proyecto "worldserver.vcxproj" terminada -- ERROR.
      26>------ Operación Compilar iniciada: proyecto: ALL_BUILD, configuración: RelWithDebInfo x64 ------
      26>Building Custom Rule E:/Server-Wow/TrinityCore_434-4.3.4/CMakeLists.txt
      26>CMake does not need to re-run because E:/Server-Wow/TrinityCore_434-4.3.4/Build/CMakeFiles/generate.stamp is up-to-date.
      ========== Compilar: 23 correctos, 3 incorrectos, 0 actualizados, 0 omitidos ==========
       
       
      Thanks.
×
×
  • Create New...