Здравствуйте. Решил собрать сервер 3.3.5а версии. Никак не могу разобраться с сервером для базы данных. Скачиваю MySQL workbench с оф. сайта, х86 - 32 бит, но ставится как архитектура х64, а не х32, в связи с этим летят ошибки при компиляции в MVS, но в cmake все без ошибок происходит.
Сообщение #
1 написано 07.11.2017 в 01:33
MySQL Workbench - всего лишь клиентский инструментарий для работы с БД под управлением MySQL. При сборке же сервера требуются библиотеки, предоставляющие API для работы с соответствующей архитектурой. Учитывая, что на этапе конфигурирования проектов в CMake проблем не возникло, рискну предположить, что беда действительно в разрядности используемой Вами библиотеки, но для пущей уверенности все-таки попрошу Вас предоставить журнал процесса сборки с задокументированной соответствующей ошибкой.
Сообщение #
2 написано 07.11.2017 в 07:00
p620 , спасибо за ответ. Да, Вы все правильно поняли, проблема скорее всего именно в этом, логи скину к середине дня (бегу на учебу), спасибо.Добавлено (07.11.2017, 20:56) ---------------------------------------------
Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'native_ecat''(void)" (??__Enative_ecat@system@boost@@YAXXZ) vmap4assembler D:\Build\src\tools\vmap4_assembler\common.lib(TileAssembler.obj) 1 Error LNK2019 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'errno_ecat''(void)" (??__Eerrno_ecat@system@boost@@YAXXZ) vmap4assembler D:\Build\src\tools\vmap4_assembler\common.lib(TileAssembler.obj) 1 Error LNK2019 unresolved external symbol "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,struct _Mbstatet> const &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$codecvt@_WDU_Mbstatet@@@5@@Z) referenced in function "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z) vmap4assembler D:\Build\src\tools\vmap4_assembler\common.lib(TileAssembler.obj) 1 Error LNK2019 unresolved external symbol "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) referenced in function "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z) vmap4assembler D:\Build\src\tools\vmap4_assembler\common.lib(TileAssembler.obj) 1 Error LNK2019 unresolved external symbol "bool __cdecl boost::filesystem::detail::create_directory(class boost::filesystem::path const &,class boost::system::error_code *)" (?create_directory@detail@filesystem@boost@@YA_NAEBVpath@23@PEAVerror_code@system@3@@Z) referenced in function "bool __cdecl boost::filesystem::create_directory(class boost::filesystem::path const &)" (?create_directory@filesystem@boost@@YA_NAEBVpath@12@@Z) vmap4assembler D:\Build\src\tools\vmap4_assembler\common.lib(TileAssembler.obj) 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' vmap4assembler D:\local\boost_1_64_0\stage\lib\libboost_system-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' vmap4assembler D:\local\boost_1_64_0\stage\lib\libboost_filesystem-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' vmap4assembler D:\local\boost_1_64_0\stage\lib\libboost_thread-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' vmap4assembler D:\local\boost_1_64_0\stage\lib\libboost_program_options-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' vmap4assembler D:\local\boost_1_64_0\stage\lib\libboost_iostreams-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' vmap4assembler D:\local\boost_1_64_0\stage\lib\libboost_regex-vc140-mt-gd-1_64.lib 1 Error LNK1120 5 unresolved externals vmap4assembler D:\Build\bin\Debug\vmap4assembler.exe 1 Error LNK2019 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'native_ecat''(void)" (??__Enative_ecat@system@boost@@YAXXZ) mapextractor D:\Build\src\tools\map_extractor\System.obj 1 Error LNK2019 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'errno_ecat''(void)" (??__Eerrno_ecat@system@boost@@YAXXZ) mapextractor D:\Build\src\tools\map_extractor\System.obj 1 Error LNK2019 unresolved external symbol "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,struct _Mbstatet> const &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$codecvt@_WDU_Mbstatet@@@5@@Z) referenced in function "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z) mapextractor D:\Build\src\tools\map_extractor\System.obj 1 Error LNK2019 unresolved external symbol "void __cdecl boost::filesystem::path_traits::convert(wchar_t const *,wchar_t const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::codecvt<wchar_t,char,struct _Mbstatet> const &)" (?convert@path_traits@filesystem@boost@@YAXPEB_W0AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$codecvt@_WDU_Mbstatet@@@5@@Z) referenced in function "void __cdecl boost::filesystem::path_traits::convert(wchar_t const *,wchar_t const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?convert@path_traits@filesystem@boost@@YAXPEB_W0AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) mapextractor D:\Build\src\tools\map_extractor\System.obj 1 Error LNK2019 unresolved external symbol "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) referenced in function "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z) mapextractor D:\Build\src\tools\map_extractor\System.obj 1 Error LNK2019 unresolved external symbol "class boost::filesystem::file_status __cdecl boost::filesystem::detail::status(class boost::filesystem::path const &,class boost::system::error_code *)" (?status@detail@filesystem@boost@@YA?AVfile_status@23@AEBVpath@23@PEAVerror_code@system@3@@Z) referenced in function "bool __cdecl boost::filesystem::exists(class boost::filesystem::path const &)" (?exists@filesystem@boost@@YA_NAEBVpath@12@@Z) mapextractor D:\Build\src\tools\map_extractor\System.obj 1 Error LNK2019 unresolved external symbol "bool __cdecl boost::filesystem::detail::create_directory(class boost::filesystem::path const &,class boost::system::error_code *)" (?create_directory@detail@filesystem@boost@@YA_NAEBVpath@23@PEAVerror_code@system@3@@Z) referenced in function "bool __cdecl boost::filesystem::create_directory(class boost::filesystem::path const &)" (?create_directory@filesystem@boost@@YA_NAEBVpath@12@@Z) mapextractor D:\Build\src\tools\map_extractor\System.obj 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mapextractor D:\local\boost_1_64_0\stage\lib\libboost_system-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mapextractor D:\local\boost_1_64_0\stage\lib\libboost_filesystem-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mapextractor D:\local\boost_1_64_0\stage\lib\libboost_thread-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mapextractor D:\local\boost_1_64_0\stage\lib\libboost_program_options-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mapextractor D:\local\boost_1_64_0\stage\lib\libboost_iostreams-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mapextractor D:\local\boost_1_64_0\stage\lib\libboost_regex-vc140-mt-gd-1_64.lib 1 Error LNK1120 7 unresolved externals mapextractor D:\Build\bin\Debug\mapextractor.exe 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(Util.obj) 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\PathGenerator.obj 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(TileAssembler.obj) 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(Metric.obj) 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(Log.obj) 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(Util.obj) 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\PathGenerator.obj 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(TileAssembler.obj) 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(Metric.obj) 1 Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(Log.obj) 1 Error LNK2019 unresolved external symbol "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,struct _Mbstatet> const &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$codecvt@_WDU_Mbstatet@@@5@@Z) referenced in function "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z) mmaps_generator D:\Build\src\tools\mmaps_generator\PathGenerator.obj 1 Error LNK2001 unresolved external symbol "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,struct _Mbstatet> const &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$codecvt@_WDU_Mbstatet@@@5@@Z) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(TileAssembler.obj) 1 Error LNK2019 unresolved external symbol "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) referenced in function "void __cdecl boost::filesystem::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)" (?convert@path_traits@filesystem@boost@@YAXPEBD0AEAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@Z) mmaps_generator D:\Build\src\tools\mmaps_generator\PathGenerator.obj 1 Error LNK2001 unresolved external symbol "public: static class std::codecvt<wchar_t,char,struct _Mbstatet> const & __cdecl boost::filesystem::path::codecvt(void)" (?codecvt@path@filesystem@boost@@SAAEBV?$codecvt@_WDU_Mbstatet@@@std@@XZ) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(TileAssembler.obj) 1 Error LNK2019 unresolved external symbol "bool __cdecl boost::filesystem::detail::create_directory(class boost::filesystem::path const &,class boost::system::error_code *)" (?create_directory@detail@filesystem@boost@@YA_NAEBVpath@23@PEAVerror_code@system@3@@Z) referenced in function "bool __cdecl boost::filesystem::create_directory(class boost::filesystem::path const &)" (?create_directory@filesystem@boost@@YA_NAEBVpath@12@@Z) mmaps_generator D:\Build\src\tools\mmaps_generator\PathGenerator.obj 1 Error LNK2001 unresolved external symbol "bool __cdecl boost::filesystem::detail::create_directory(class boost::filesystem::path const &,class boost::system::error_code *)" (?create_directory@detail@filesystem@boost@@YA_NAEBVpath@23@PEAVerror_code@system@3@@Z) mmaps_generator D:\Build\src\tools\mmaps_generator\common.lib(TileAssembler.obj) 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mmaps_generator D:\local\boost_1_64_0\stage\lib\libboost_system-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mmaps_generator D:\local\boost_1_64_0\stage\lib\libboost_filesystem-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mmaps_generator D:\local\boost_1_64_0\stage\lib\libboost_thread-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mmaps_generator D:\local\boost_1_64_0\stage\lib\libboost_program_options-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mmaps_generator D:\local\boost_1_64_0\stage\lib\libboost_iostreams-vc140-mt-gd-1_64.lib 1 Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' mmaps_generator D:\local\boost_1_64_0\stage\lib\libboost_regex-vc140-mt-gd-1_64.lib 1 Error LNK1120 5 unresolved externals mmaps_generator D:\Build\bin\Debug\mmaps_generator.exe 1 Error LNK1112 module machine type 'X86' conflicts with target machine type 'x64' authserver D:\Build\src\server\authserver\libboost_program_options-vc140-mt-gd-1_64.lib(value_semantic.obj) 1 Error LNK1112 module machine type 'X86' conflicts with target machine type 'x64' worldserver D:\Build\src\server\worldserver\libboost_program_options-vc140-mt-gd-1_64.lib(value_semantic.obj) 1
Boost что ли не той разрядности поставил... Странно.Добавлено (07.11.2017, 22:03) --------------------------------------------- ========== Build: 22 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== Спасибо
Сообщение #
3 отредактировано
SereGa9HaSst9 -
Вторник, 07.11.2017, 22:04
Скачать MySQL Которую нужно(в ZIP соответственно) в командной сроке от администратора прописать следующее (путь mysql\mysqld -install) для того чтобы она установилась как служба + добавить в переменные среды Path Путь mysql\bin\Добавлено (20.12.2017, 18:27) --------------------------------------------- Download the prebuilt Windows Binary for Visual Studio 2017 64bit: https://sourceforge.net/projects/boost/files/boost-binaries/1.63.0/boost_1_63_0-msvc-14.0-64.exe/download 32bit: https://sourceforge.net/projects/boost/files/boost-binaries/1.63.0/boost_1_63_0-msvc-14.0-32.exe/download 1.63.0 is the minimum version required if Visual Studio 2017, but version 1.65.1 is recommended (if you have really updated VS 2017 you can see the next warning, ignore it: Unknown compiler version - please run the configure tests and report the results" 64bit: https://dl.bintray.com/boostorg/release/1.65.1/binaries/boost_1_65_1-msvc-14.1-64.exe 32bit: https://dl.bintray.com/boostorg/release/1.65.1/binaries/boost_1_65_1-msvc-14.1-32.exe
Сообщение #
4 отредактировано
Virus32BioScan -
Среда, 20.12.2017, 19:37