在Windows 10上的azerothcore中编译错误

问题描述

我是azerothcore的新手,在那里的网站中遵循了传统的指示。我的cmake配置/生成正确,但是在vs.我发布了cmake日志并在下面编译了错误。 PLS可以帮助我,我已经在网上搜索以获得更多答案,我尝试了3个版本的openssl。不工作。我使用的开发环境在cmake日志中也有描述。 PLS帮忙,有点筋疲力尽:(

CMAKE日志:

The C compiler identification is MSVC 19.16.27041.0
The CXX compiler identification is MSVC 19.16.27041.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Running cmake hook: AFTER_LOAD_CONF
No hooks registered for AFTER_LOAD_CONF
Enabled С++17 support
Detected 64-bit platform
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 INTMAX_MAX warnings
MSVC: disabled generic compiletime warnings
Using installation path for configuration files
Running cmake hook: AFTER_LOAD_CMAKE_MODULES
No hooks registered for AFTER_LOAD_CMAKE_MODULES
cotire 1.8.0 loaded.
Found MysqL library: E:/sw/MysqL-5.7.31-winx64/lib/libMysqL.lib
Found MysqL headers: E:/sw/MysqL-5.7.31-winx64/include
Found git binary : C:/Program Files/Git/cmd/git.exe

AzerothCore revision : 8c14445+ 2020-08-28 14:10:15 +0000 (master branch)

Install core to : C:/Program Files (x86)/AzerothCore

Install configs to : C:/Program Files (x86)/AzerothCore

Build world/auth : Yes (default)

Build with scripts : Yes (default)

Build map/vmap tools : No (default)

Build unit tests : 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 (default)

Enable extra features : Yes (default)

Enable vmap disableMgr checks : Yes (default)

Enable extra logging functions : No (default)

Show source tree : Yes - "hierarchical"

Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
C CXX target ace cotired without unity build excluding Atomic_Op_Sparc.c,Rtems_init.c.
Looking for open
Looking for open - found
Looking for _strtod_l
Looking for _strtod_l - found
begin detect openssl
Found OpenSSL: optimized;E:/sw/OpenSSL-Win64-1_0_2q/lib/VC/ssleay32MD.lib;E:/sw/OpenSSL-Win64-1_0_2q/lib/VC/libeay32MD.lib;debug;E:/sw/OpenSSL-Win64-1_0_2q/lib/VC/ssleay32MDd.lib;E:/sw/OpenSSL-Win64-1_0_2q/lib/VC/libeay32MDd.lib
CXX target common cotired without unity build.
Running cmake hook: BEFORE_SRC_LOAD
No hooks registered for BEFORE_SRC_LOAD
Running cmake hook: BEFORE_GAME_LIBRARY
No hooks registered for BEFORE_GAME_LIBRARY
CXX target game cotired without unity build.
Running cmake hook: AFTER_GAME_LIBRARY
No hooks registered for AFTER_GAME_LIBRARY
CXX RC target authserver cotired without unity build.
Running cmake hook: AFTER_AUTHSERVER_CMAKE
No hooks registered for AFTER_AUTHSERVER_CMAKE
Running cmake hook: BEFORE_SCRIPTS_LIBRARY
No hooks registered for BEFORE_SCRIPTS_LIBRARY
SCRIPT PREParaTIONS
-> Prepared: Spells
-> Prepared: Commands
-> Prepared: World
-> Prepared: Outdoor PVP Zones
-> Prepared: Eastern Kingdoms
-> Prepared: Kalimdor
-> Prepared: Outland
-> Prepared: northrend
-> Prepared: Events
-> Prepared: Pet
SCRIPT PREParaTION COMPLETE

CXX target scripts cotired without unity build.
CXX RC target worldserver cotired without unity build.
Running cmake hook: AFTER_WORLDSERVER_CMAKE
No hooks registered for AFTER_WORLDSERVER_CMAKE
Running cmake hook: AFTER_SRC_LOAD
No hooks registered for AFTER_SRC_LOAD
Configuring done

以下是vs中的编译错误

Severity Code Description Project File Line Suppression State
Warning C4819 The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 1
Error (active) E1866 attribute does not apply to any entity fmt E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\deps\fmt\fmt\core.h 477
Error (active) E1866 attribute does not apply to any entity fmt E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\deps\fmt\fmt\core.h 478
Error (active) E1866 attribute does not apply to any entity fmt E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\deps\fmt\fmt\format.h 2592
Error (active) E1866 attribute does not apply to any entity fmt E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\deps\fmt\fmt\format.h 2593
Error C2001 newline in constant authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 103
Error C2143 Syntax error: missing ')' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 104
Error C2143 Syntax error: missing ';' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 104
Error C2001 newline in constant authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 104
Error C2143 Syntax error: missing ')' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 105
Error C2143 Syntax error: missing ';' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 105
Error C2001 newline in constant authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 107
Error C2143 Syntax error: missing ')' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 108
Error C2143 Syntax error: missing ';' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 108
Error C2001 newline in constant authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 108
Error C2143 Syntax error: missing ')' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 109
Error C2143 Syntax error: missing ';' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 109
Error C2001 newline in constant authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 111
Error C2143 Syntax error: missing ')' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 112
Error C2143 Syntax error: missing ';' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 112
Error C2001 newline in constant authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 112
Error C2143 Syntax error: missing ')' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 113
Error C2143 Syntax error: missing ';' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 113
Error C2001 newline in constant authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 113
Error C2143 Syntax error: missing ')' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 114
Error C2143 Syntax error: missing ';' before 'Log::instance' authserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\authserver\Main.cpp 114
Warning C4819 The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss game E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\game\Entities\Creature\CreatureGroups.cpp 1
Warning LNK4221 This object file does not define any prevIoUsly undefined public symbols,so it will not be used by any link operation that consumes this library scripts E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-build\src\server\scripts\zone_alterac_mountains.obj 1
Warning LNK4221 This object file does not define any prevIoUsly undefined public symbols,so it will not be used by any link operation that consumes this library scripts E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-build\src\server\scripts\zone_burning_steppes.obj 1
Warning C4819 The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 1
Error C2001 newline in constant worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 124
Error C2143 Syntax error: missing ')' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 125
Error C2143 Syntax error: missing ';' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 125
Error C2001 newline in constant worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 125
Error C2143 Syntax error: missing ')' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 126
Error C2143 Syntax error: missing ';' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 126
Error C2001 newline in constant worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 128
Error C2143 Syntax error: missing ')' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 129
Error C2143 Syntax error: missing ';' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 129
Error C2001 newline in constant worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 129
Error C2143 Syntax error: missing ')' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 130
Error C2143 Syntax error: missing ';' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 130
Error C2001 newline in constant worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 132
Error C2143 Syntax error: missing ')' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 133
Error C2143 Syntax error: missing ';' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 133
Error C2001 newline in constant worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 133
Error C2143 Syntax error: missing ')' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 134
Error C2143 Syntax error: missing ';' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 134
Error C2001 newline in constant worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 134
Error C2143 Syntax error: missing ')' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 135
Error C2143 Syntax error: missing ';' before 'Log::instance' worldserver E:\iw7.private.svn\worlds\wow\AzerothCore\azerothcore-wotlk-git.working\src\server\worldserver\Master.cpp 135

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)