Ошибка при компиляции ядра связанная с MySQL

Backdoor

New member
Новичок
Регистрация
30.09.2019
Сообщения
23
Реакции
5
Баллы
0
Возраст
26
Местоположение
Moskwa
Добрый день, я новичёк в сфере сереров WoW и у меня такой вопрос.
На начальных этапах компиляции ядра у меня возникли проблемы, а именно выскакивает какой-то варнинг со старой политикой CMake и чёртова ошибка с не найденными библиотеками MySQL. На самом деле, если бы я не протолкался с этим симейком около 2-х, а то и трёх дней, чтобы дойти до этапа компиляции (чего у меня не получилось), я бы не оставлял тему на этом форуме :).
Так вот, у меня огромная просьба помочь мне, ибо я уже очень долго копаюсь и всячески "правильно" переустанавливаю программы требуемые для нормальной работы СИмака.

Лог ошибки из CMake:
SQL:
The C compiler identification is MSVC 19.23.28105.4
The CXX compiler identification is MSVC 19.23.28105.4
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/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/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
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 64-bit platform
MSVC: 64-bit platform, enforced -D_WIN64 parameter
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.
CMake Error at cmake/macros/FindMySQL.cmake:237 (message):
  Could not find the MySQL libraries! Please install the development
  libraries and headers
Call Stack (most recent call first):
  CMakeLists.txt:67 (find_package)


Configuring incomplete, errors occurred!
See also "E:/Trinity/tc/CMakeFiles/CMakeOutput.log".
Лог ошибки из файла:
Код:
The system is: Windows - 10.0.18362 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: 
Build flags:
Id flags: 

The output was:
0
Microsoft (R) Build Engine ўҐабЁЁ 16.3.0+0f4c62fea ¤«п .NET Framework
(C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation). ‚ᥠЇа ў  § йЁйҐл.

‘Ў®аЄ   з в  02.10.2019 23:54:35.
Џа®ҐЄв "E:\Trinity\tc\CMakeFiles\3.15.4\CompilerIdC\CompilerIdC.vcxproj" ў 㧫Ґ 1 (楫ҐўлҐ ®ЎкҐЄвл Ї® 㬮«з Ёо).
PrepareForBuild:
  ‘®§¤ ЁҐ Є в «®Ј  "Debug\".
  ‘®§¤ ЁҐ Є в «®Ј  "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
  ‘®§¤ ЁҐ "Debug\CompilerIdC.tlog\unsuccessfulbuild", в Є Є Є Ўл«® § ¤ ® "AlwaysCreate".
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
  CMakeCCompilerId.c
Link:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
  CompilerIdC.vcxproj -> E:\Trinity\tc\CMakeFiles\3.15.4\CompilerIdC\.\CompilerIdC.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
  ” ©« "Debug\CompilerIdC.tlog\unsuccessfulbuild" г¤ «пҐвбп.
  ЋЎа 饨Ґ Є "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
‘Ў®аЄ  Їа®ҐЄв  "E:\Trinity\tc\CMakeFiles\3.15.4\CompilerIdC\CompilerIdC.vcxproj" § ўҐаиҐ  (楫ҐўлҐ ®ЎкҐЄвл Ї® 㬮«з Ёо).

‘Ў®аЄ  гбЇҐи® § ўҐаиҐ .
    ЏаҐ¤гЇаҐ¦¤ҐЁ©: 0
    ЋиЁЎ®Є: 0

Џа®и«® ўаҐ¬ҐЁ 00:00:01.16


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"

The C compiler identification is MSVC, found in "E:/Trinity/tc/CMakeFiles/3.15.4/CompilerIdC/CompilerIdC.exe"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: 
Build flags:
Id flags: 

The output was:
0
Microsoft (R) Build Engine ўҐабЁЁ 16.3.0+0f4c62fea ¤«п .NET Framework
(C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation). ‚ᥠЇа ў  § йЁйҐл.

‘Ў®аЄ   з в  02.10.2019 23:54:36.
Џа®ҐЄв "E:\Trinity\tc\CMakeFiles\3.15.4\CompilerIdCXX\CompilerIdCXX.vcxproj" ў 㧫Ґ 1 (楫ҐўлҐ ®ЎкҐЄвл Ї® 㬮«з Ёо).
PrepareForBuild:
  ‘®§¤ ЁҐ Є в «®Ј  "Debug\".
  ‘®§¤ ЁҐ Є в «®Ј  "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
  ‘®§¤ ЁҐ "Debug\CompilerIdCXX.tlog\unsuccessfulbuild", в Є Є Є Ўл«® § ¤ ® "AlwaysCreate".
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc142.pdb" /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
  CMakeCXXCompilerId.cpp
Link:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
  CompilerIdCXX.vcxproj -> E:\Trinity\tc\CMakeFiles\3.15.4\CompilerIdCXX\.\CompilerIdCXX.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
  ” ©« "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" г¤ «пҐвбп.
  ЋЎа 饨Ґ Є "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
‘Ў®аЄ  Їа®ҐЄв  "E:\Trinity\tc\CMakeFiles\3.15.4\CompilerIdCXX\CompilerIdCXX.vcxproj" § ўҐаиҐ  (楫ҐўлҐ ®ЎкҐЄвл Ї® 㬮«з Ёо).

‘Ў®аЄ  гбЇҐи® § ўҐаиҐ .
    ЏаҐ¤гЇаҐ¦¤ҐЁ©: 0
    ЋиЁЎ®Є: 0

Џа®и«® ўаҐ¬ҐЁ 00:00:00.81


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"

The CXX compiler identification is MSVC, found in "E:/Trinity/tc/CMakeFiles/3.15.4/CompilerIdCXX/CompilerIdCXX.exe"

Determining if the C compiler works passed with the following output:
Change Dir: E:/Trinity/tc/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_37fd3.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine ўҐабЁЁ 16.3.0+0f4c62fea ¤«п .NET Framework

(C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation). ‚ᥠЇа ў  § йЁйҐл.



  ЋЇвЁ¬Ё§ЁагойЁ© Є®¬ЇЁ«пв®а Microsoft (R) C/C++ ўҐабЁЁ 19.23.28105.4 ¤«п x64

  testCCompiler.c

  (C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation).  ‚ᥠЇа ў  § йЁйҐл.

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_37fd3.dir\Debug\\" /Fd"cmTC_37fd3.dir\Debug\vc142.pdb" /Gd /TC /errorReport:queue E:\Trinity\tc\CMakeFiles\CMakeTmp\testCCompiler.c

  cmTC_37fd3.vcxproj -> E:\Trinity\tc\CMakeFiles\CMakeTmp\Debug\cmTC_37fd3.exe




Detecting C compiler ABI info compiled with the following output:
Change Dir: E:/Trinity/tc/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_d4b87.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine ўҐабЁЁ 16.3.0+0f4c62fea ¤«п .NET Framework

(C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation). ‚ᥠЇа ў  § йЁйҐл.



  ЋЇвЁ¬Ё§ЁагойЁ© Є®¬ЇЁ«пв®а Microsoft (R) C/C++ ўҐабЁЁ 19.23.28105.4 ¤«п x64

  CMakeCCompilerABI.c

  (C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation).  ‚ᥠЇа ў  § йЁйҐл.

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_d4b87.dir\Debug\\" /Fd"cmTC_d4b87.dir\Debug\vc142.pdb" /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.15\Modules\CMakeCCompilerABI.c"

  cmTC_d4b87.vcxproj -> E:\Trinity\tc\CMakeFiles\CMakeTmp\Debug\cmTC_d4b87.exe




Determining if the CXX compiler works passed with the following output:
Change Dir: E:/Trinity/tc/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_acad3.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine ўҐабЁЁ 16.3.0+0f4c62fea ¤«п .NET Framework

(C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation). ‚ᥠЇа ў  § йЁйҐл.



  ЋЇвЁ¬Ё§ЁагойЁ© Є®¬ЇЁ«пв®а Microsoft (R) C/C++ ўҐабЁЁ 19.23.28105.4 ¤«п x64

  testCXXCompiler.cxx

  (C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation).  ‚ᥠЇа ў  § йЁйҐл.

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_acad3.dir\Debug\\" /Fd"cmTC_acad3.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue E:\Trinity\tc\CMakeFiles\CMakeTmp\testCXXCompiler.cxx

  cmTC_acad3.vcxproj -> E:\Trinity\tc\CMakeFiles\CMakeTmp\Debug\cmTC_acad3.exe




Detecting CXX compiler ABI info compiled with the following output:
Change Dir: E:/Trinity/tc/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_3875b.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine ўҐабЁЁ 16.3.0+0f4c62fea ¤«п .NET Framework

(C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation). ‚ᥠЇа ў  § йЁйҐл.



  ЋЇвЁ¬Ё§ЁагойЁ© Є®¬ЇЁ«пв®а Microsoft (R) C/C++ ўҐабЁЁ 19.23.28105.4 ¤«п x64

  CMakeCXXCompilerABI.cpp

  (C) Љ®аЇ®а жЁп Њ ©Єа®б®дв (Microsoft Corporation).  ‚ᥠЇа ў  § йЁйҐл.

  cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_3875b.dir\Debug\\" /Fd"cmTC_3875b.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.15\Modules\CMakeCXXCompilerABI.cpp"

  cmTC_3875b.vcxproj -> E:\Trinity\tc\CMakeFiles\CMakeTmp\Debug\cmTC_3875b.exe
 

WinWoolF

New member
Команда форума
Администратор
Регистрация
13.10.2013
Сообщения
5 354
Реакции
452
Баллы
0
Я надеюсь ты очень внимательно читал тему TrinityCore - Компиляция TrinityCore на Windows 10 х64, и эту до кучи TrinityCore - Компиляция автоматически обновляемой сборки 3.3.5 (Trinity Core). Поскольку там подробнейши описан до мелочей процесс установки нужного софта и компиляции. Там даже видео есть в котором так же показано очень многое. Так вот, если ты читал тему через строчку, то сходи почитай еще раз, а именно удели внимание тому, что весь устанавливаемый софт должен устанавливаться по пути который указан по умолчанию
Установка и настройка программ:
Рекомендую установку программ производить по дефолтному пути установки указанному в установщике, в дальнейшем это поможет избежать лишних сложностей.
И второй очень важный пункт, про который так же писалось уже не одну тысячу раз на форуме, и о чем подробно написано в гайде по компиляции в том же самом пункте с установкой и настройкой программ
Очень важно! Не использовать в устанавливаемых программах или папках сервера названия написанные не на латинице! Приводит к ошибкам при компиляции 100%.
По этому проведи вдумчивую работу над ошибками, подсказку я дал уже больше чем конкретную.
Тогда у тебя и библиотеки от mysql найдутся сразу и не будет подобного говна в логах
/D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /
ЋЇвЁ¬Ё§ЁагойЁ© Є®¬ЇЁ«пв®а
 

Backdoor

New member
Новичок
Регистрация
30.09.2019
Сообщения
23
Реакции
5
Баллы
0
Возраст
26
Местоположение
Moskwa
Спасибо большое за совет. Дело было в версии MySQL. Я порылся в файлах макроса сборки (FindMysql.cmake) и там были указаны стандартные пути поиска библиотек, по типу MySQL\MySQL Server 5.6/5.7. Так вот, я либо устанавливал не ту версию, (допустим 5.5, которая была как-раз указана вами по ссылке) либо ненароком изменял стандартный путь, в следствии чего компиляция выдавала ошибку и скорее всего были unknown какашки в логах :)

На данный момент у меня проблемы с Boost-ом, (.exe), который я устанавливал в точонсти по гайду, но CMake сказал, что у меня как-бы устаревшая версия и нужна более новая (1.7+). Вот сейчас скачал этот архив (Boost 1.7zip), просто распаковал его по пути C\local\скинул туда. Подключил в переменные среды BOOST_ROOT с путём, в который скинул буст, но всё равно ничего не получается. CMake кидает мне следующие ошибки.
Код:
CMake Warning (dev) at dep/boost/CMakeLists.txt:48 (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_71_0

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

CMake Error at cmake/macros/FindBoost.cmake:1231 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.71.0

  Boost include path: C:/local/boost_1_71_0

  Could not find the following static Boost libraries:

          boost_system
          boost_filesystem
          boost_thread
          boost_program_options
          boost_iostreams

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.  If you still have problems search on forum for TCE00020.
Call Stack (most recent call first):
  dep/boost/CMakeLists.txt:48 (find_package)
И как дополнение)
Код:
CMake Warning (dev) at cmake/macros/FindOpenSSL.cmake:220 (math):
  Unexpected character in expression at position 2: d

Call Stack (most recent call first):
  dep/openssl/CMakeLists.txt:16 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

P.S: Есть кстати ещё ошибка с политикой, я без понятия что это и как, но кажется оно не сильно влияет на процесс компиляции, поэтому пока всё работает)
 

Backdoor

New member
Новичок
Регистрация
30.09.2019
Сообщения
23
Реакции
5
Баллы
0
Возраст
26
Местоположение
Moskwa
Библиотеки буста кстати у меня уложены в файле libs, а не lib, чего требует макрос.
91d40abff995.png
Из выше упомянутых boost_system, boost_thread и.тд я нашёл здесь все требуемые папки по названию, но я не понимаю почему он не может сам к ним подобраться.
e08157b0e0e3.png
 

Backdoor

New member
Новичок
Регистрация
30.09.2019
Сообщения
23
Реакции
5
Баллы
0
Возраст
26
Местоположение
Moskwa
Вообщем проблемно со всеми этими программами, везде какие-то версии не совпадают и это вечный гемор. Поставил сейчас CMake 3.10 + boost_1_64_0, всё остальное оставил, как работало. Затем устанавливаю Visual Studio 15 2017, буду через неё компилировать. Посмотрим, что выдаст. (До этого стоял CMake 3.15 с Boost 1.71 + Visual Studio 16 2019)
 

Backdoor

New member
Новичок
Регистрация
30.09.2019
Сообщения
23
Реакции
5
Баллы
0
Возраст
26
Местоположение
Moskwa
Вообщем проблемно со всеми этими программами, везде какие-то версии не совпадают и это вечный гемор. Поставил сейчас CMake 3.10 + boost_1_64_0, всё остальное оставил, как работало. Затем устанавливаю Visual Studio 15 2017, буду через неё компилировать. Посмотрим, что выдаст. (До этого стоял CMake 3.15 с Boost 1.71 + Visual Studio 16 2019)
Итак, всё установил, процесс компиляции вовсе не пошёл, что-то с МСбилдом не то. Узнал, что 15 версия Висуал Студио не поддерживает Буст, ставлю 14-ю. Буду пробовать на ней уже.
 

Backdoor

New member
Новичок
Регистрация
30.09.2019
Сообщения
23
Реакции
5
Баллы
0
Возраст
26
Местоположение
Moskwa
Я чудом решил все проблемы с Error-ами, остались лишь Варнинги. Открыл сгенерированный файл в проекте Visual, очистил, начал сборку и мне вконце вылетело 6 ошибок.
Думаю всё из-за те-же варнингов в симейке, буду сейчас опять рыться, по итогу отпишу сюда ещё раз.
Кстати, огромная просьба посмотреть сюда и обьяснить что это за варнинг с Политикой
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 !!!


The C compiler identification is MSVC 19.23.28105.4
The CXX compiler identification is MSVC 19.23.28105.4
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/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/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
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 64-bit platform
MSVC: 64-bit platform, enforced -D_WIN64 parameter
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.7/lib/libmysql.lib
Found MySQL headers: C:/Program Files/MySQL/MySQL Server 5.7/include
Found MySQL executable: C:/Program Files/MySQL/MySQL Server 5.7/bin/mysql.exe
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 (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)


Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
Performing Test STD_HAS_WORKING_WREGEX
Performing Test STD_HAS_WORKING_WREGEX - Success
CMake Warning (dev) at dep/boost/CMakeLists.txt:48 (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_71_0_b1_rc1

For compatibility, CMake is ignoring the variable.
This warning is for project developers. Use -Wno-dev to suppress it.
Boost version: 1.71.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
Looking for open
Looking for open - found
Found OpenSSL library: optimized;C:/OpenSSL-Win64/lib/VC/ssleay32MD.lib;optimized;C:/OpenSSL-Win64/lib/VC/libeay32MD.lib;debug;C:/OpenSSL-Win64/lib/VC/ssleay32MDd.lib;debug;C:/OpenSSL-Win64/lib/VC/libeay32MDd.lib
Found OpenSSL headers: C:/OpenSSL-Win64/include
CMake Warning (dev) at cmake/macros/FindOpenSSL.cmake:220 (math):
Unexpected character in expression at position 2: d

Call Stack (most recent call first):
dep/openssl/CMakeLists.txt:16 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CXX target common cotired without unity build.
CXX target database cotired without unity build.
CXX target proto cotired without unity build.
CXX target shared cotired without unity build.
CXX RC target bnetserver cotired without unity build.
CXX target game cotired without unity build.

* Script configuration (static):
|
+- worldserver
| +- BrokenIsles
| +- Commands
| +- Custom
| +- EasternKingdoms
| +- Events
| +- Kalimdor
| +- Maelstrom
| +- Northrend
| +- OutdoorPvP
| +- Outland
| +- Pet
| +- Spells
| +- World
|

CXX target scripts cotired without unity build.

CXX RC target worldserver cotired without unity build.
Configuring done
 
Верх Низ