Spire
-
Posts
4 -
Joined
-
Last visited
Posts posted by Spire
-
-
@dragos14: One of the DLLs you are using was compiled with VS 2013 instead of the VS 2015. You can use Dependency Walker to find the culprit binary and replace it.
@Spire: _BUILD_DIRECTIVE should not be missing, find why that happens. Your change in the files is simply hiding the problem.:D That is why I am asking you...
I tried to compile TrinityCore 3.3.5 on 2 different computers. And the same problem. Firstly, it give me error with _BUILD_DIRECTIVE and after what I am add the definition into CMakeLists.txt, It get me another error... This one:
1>g3dlib.lib(System.obj) : error LNK2019: unresolved external symbol imp__OleInitialize@4 referenced in function "private: void thiscall G3D::System::init(void)" (?init@System@G3D@@AAEXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__OpenClipboard@4 referenced in function "void cdecl G3D::_internal::postToClipboard(char const *)" (?postToClipboard@_internal@G3D@@YAXPBD@Z)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__CloseClipboard@0 referenced in function "void cdecl G3D::_internal::postToClipboard(char const *)" (?postToClipboard@_internal@G3D@@YAXPBD@Z)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__SetClipboardData@8 referenced in function "void cdecl G3D::_internal::postToClipboard(char const *)" (?postToClipboard@_internal@G3D@@YAXPBD@Z)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__EmptyClipboard@0 referenced in function "void cdecl G3D::_internal::postToClipboard(char const *)" (?postToClipboard@_internal@G3D@@YAXPBD@Z)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__ShowCursor@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__SetCursorPos@8 referenced in function "void cdecl G3D::_internal::_restoreInputGrab_(void)" (?_restoreInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__SetCursor@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__GetCursorPos@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__ClipCursor@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__GetClipCursor@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__GetCursor@0 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__LoadCursorA@8 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(RegistryUtil.obj) : error LNK2019: unresolved external symbol imp__RegCloseKey@4 referenced in function "public: static bool cdecl G3D::RegistryUtil::keyExists(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?keyExists@RegistryUtil@G3D@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>g3dlib.lib(RegistryUtil.obj) : error LNK2019: unresolved external symbol imp__RegOpenKeyExA@20 referenced in function "public: static bool cdecl G3D::RegistryUtil::keyExists(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?keyExists@RegistryUtil@G3D@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>g3dlib.lib(RegistryUtil.obj) : error LNK2019: unresolved external symbol imp__RegQueryValueExA@24 referenced in function "public: static bool cdecl G3D::RegistryUtil::readBytes(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char *,unsigned int &)" (?readBytes@RegistryUtil@G3D@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PAEAAI@Z)
1>g3dlib.lib(RegistryUtil.obj) : error LNK2019: unresolved external symbol imp__RegSetValueExA@24 referenced in function "public: static bool cdecl G3D::RegistryUtil::writeBytes(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char const *,unsigned int)" (?writeBytes@RegistryUtil@G3D@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PBEI@Z)
1>D:\WOW PServer\[OpenSource]TrinityCore\src\tools\vmap4_assembler\Release\vmap4assembler.exe : fatal error LNK1120: 17 unresolved externalsAnd that kind of errors with LINK appears firstly only when I am trying to use some code from g3dlib.lib
-
@Nay: I didn't do any changes except:
Firstly, I got error that says that _BUILD_DIRECTIVE is not defined. But after i add:
- add_definitions(-D_BUILD_DIRECTIVE=\\"$(CONFIGURATION)\\")
into TrinityCore-3.3.5\src\common\CMakeLists.txt and the broblem has gone.
The contents of the cmake output is:
Detected 32-bit platform
Found OpenSSL library: C:/OpenSSL-Win32/lib/VC/libeay32MDd.lib;C:/OpenSSL-Win32/lib/libeay32.lib
Found OpenSSL headers: C:/OpenSSL-Win32/include
Boost version: 1.58.0
Found the following Boost libraries:
system
filesystem
thread
program_options
iostreams
Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Failed
Found git binary : C:/Program Files/Git/cmd/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 "unknown 1970-01-01 00:00:00 (Archived)"
* TrinityCore revision : unknown 1970-01-01 00:00:00 +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 : Yes
* Build core w/PCH : Yes (default)
* Build scripts w/PCH : Yes (default)
* Show compile-warnings : No (default)
* Use coreside debug : Yes
* Show source tree : Yes - hierarchical
* Use GIT revision hash : Yes
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 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
SCRIPT PREPARATIONS
-> Prepared: Spells
-> Prepared: Commands
-> 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
Generating done
-
Hello guys. I am trying to compile Trinitycore 3.3.5 but I get the folowing errors:
1>g3dlib.lib(System.obj) : error LNK2019: unresolved external symbol imp__OleInitialize@4 referenced in function "private: void thiscall G3D::System::init(void)" (?init@System@G3D@@AAEXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__OpenClipboard@4 referenced in function "void cdecl G3D::_internal::postToClipboard(char const *)" (?postToClipboard@_internal@G3D@@YAXPBD@Z)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__CloseClipboard@0 referenced in function "void cdecl G3D::_internal::postToClipboard(char const *)" (?postToClipboard@_internal@G3D@@YAXPBD@Z)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__SetClipboardData@8 referenced in function "void cdecl G3D::_internal::postToClipboard(char const *)" (?postToClipboard@_internal@G3D@@YAXPBD@Z)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__EmptyClipboard@0 referenced in function "void cdecl G3D::_internal::postToClipboard(char const *)" (?postToClipboard@_internal@G3D@@YAXPBD@Z)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__ShowCursor@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__SetCursorPos@8 referenced in function "void cdecl G3D::_internal::_restoreInputGrab_(void)" (?_restoreInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__SetCursor@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__GetCursorPos@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__ClipCursor@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__GetClipCursor@4 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__GetCursor@0 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(debugAssert.obj) : error LNK2019: unresolved external symbol imp__LoadCursorA@8 referenced in function "void cdecl G3D::_internal::_releaseInputGrab_(void)" (?_releaseInputGrab_@_internal@G3D@@YAXXZ)
1>g3dlib.lib(RegistryUtil.obj) : error LNK2019: unresolved external symbol imp__RegCloseKey@4 referenced in function "public: static bool cdecl G3D::RegistryUtil::keyExists(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?keyExists@RegistryUtil@G3D@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>g3dlib.lib(RegistryUtil.obj) : error LNK2019: unresolved external symbol imp__RegOpenKeyExA@20 referenced in function "public: static bool cdecl G3D::RegistryUtil::keyExists(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?keyExists@RegistryUtil@G3D@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>g3dlib.lib(RegistryUtil.obj) : error LNK2019: unresolved external symbol imp__RegQueryValueExA@24 referenced in function "public: static bool cdecl G3D::RegistryUtil::readBytes(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char *,unsigned int &)" (?readBytes@RegistryUtil@G3D@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PAEAAI@Z)
1>g3dlib.lib(RegistryUtil.obj) : error LNK2019: unresolved external symbol imp__RegSetValueExA@24 referenced in function "public: static bool cdecl G3D::RegistryUtil::writeBytes(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned char const *,unsigned int)" (?writeBytes@RegistryUtil@G3D@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PBEI@Z)
1>D:\WOW PServer\[OpenSource]TrinityCore\src\tools\vmap4_assembler\Release\vmap4assembler.exe : fatal error LNK1120: 17 unresolved externalsI use:
- Windows 8.1 x64
- Visual Studio Ultimate x32 2013
- CMake 3.3.1
- OpenSSL-Win32
- boost_1_58_0 x32
- mysql
Firstly, I got error that says that _BUILD_DIRECTIVE is not defined. But after i add:
- add_definitions(-D_BUILD_DIRECTIVE=\\"$(CONFIGURATION)\\")
into TrinityCore-3.3.5\src\common\CMakeLists.txt and the broblem has gone. But after that, came this one...
If anybody knows, pelese help me.
Thanks a lot.
Compile or cmake problems
in Help and Support
Posted · Edited by Spire
Nobody can help me ? (