telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.18k stars 5.19k forks source link

Microsoft Visual Studio Professional 2022 (64-bit) - LTSC 17.6 Version 17.6.11 Build failed #27391

Closed kotlin711 closed 9 months ago

kotlin711 commented 9 months ago

Steps to reproduce

I followed the steps here to compile github.com/telegramdesktop/tdesktop/blob/dev/docs/building-win-x64.md

Expected behaviour

no error

Actual behaviour

image

Build started...
1>------ Build started: Project: td_scheme_scheme, Configuration: Debug x64 ------
2>------ Build started: Project: external_cld3_bundled_task_spec.proto, Configuration: Debug x64 ------
3>------ Build started: Project: external_cld3_bundled_sentence.proto, Configuration: Debug x64 ------
4>------ Build started: Project: external_cld3_bundled_feature_extractor.proto, Configuration: Debug x64 ------
5>------ Build started: Project: Telegram_midl, Configuration: Debug x64 ------
6>------ Build started: Project: codegen_style, Configuration: Debug x64 ------
7>------ Build started: Project: codegen_lang, Configuration: Debug x64 ------
8>------ Build started: Project: codegen_emoji, Configuration: Debug x64 ------
7>Qt5Cored.lib(qstring.obj) : error LNK2019: unresolved external symbol __std_find_trivial_4 referenced in function "int const * __cdecl __std_find_trivial(int const *,int const *,int)" (??$__std_find_trivial@$$CBHH@@YAPEBHPEBH0H@Z)
7>Qt5Cored.lib(qregexp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
7>Qt5Cored.lib(qcoreapplication.obj) : error LNK2019: unresolved external symbol __std_find_trivial_8 referenced in function "class QTranslator * const * __cdecl __std_find_trivial(class QTranslator * const *,class QTranslator * const *,unsigned __int64)" (??$__std_find_trivial@QEAVQTranslator@@_K@@YAPEBQEAVQTranslator@@PEBQEAV0@0_K@Z)
7>Qt5Cored.lib(qobject.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
7>Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
7>G:\code\001_TG\BuildPath\tdesktop\out\Telegram\codegen\codegen\lang\Debug\codegen_lang.exe : fatal error LNK1120: 2 unresolved externals
6>Qt5Cored.lib(qobject.obj) : error LNK2019: unresolved external symbol __std_find_trivial_8 referenced in function "void __cdecl std::_Deallocate<16,0>(void *,unsigned __int64)" (??$_Deallocate@$0BA@$0A@@std@@YAXPEAX_K@Z)
6>Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
6>Qt5Guid.lib(qopenglcontext.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
6>Qt5Guid.lib(qaccessible.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
6>Qt5Guid.lib(qopenglshaderprogram.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
6>Qt5Cored.lib(qcoreapplication.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
6>Qt5Guid.lib(qguiapplication.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
6>Qt5Guid.lib(qscreen.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
6>Qt5Guid.lib(qtouchdevice.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
6>Qt5Guid.lib(qwindow.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
6>Qt5Guid.lib(qtextmarkdownimporter.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
6>Qt5Cored.lib(qstring.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
6>Qt5Cored.lib(qregexp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
6>Qt5Guid.lib(qpainterpath.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
6>Qt5Guid.lib(qfontdatabase.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
6>Qt5Guid.lib(qkeysequence.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
6>Qt5Guid.lib(qtexttable.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
6>Qt5Guid.lib(qopenglshaderprogram.obj) : error LNK2019: unresolved external symbol __std_count_trivial_1 referenced in function "unsigned __int64 __cdecl __std_count_trivial(char const *,char const *,char)" (??$__std_count_trivial@$$CBDD@@YA_KPEBD0D@Z)
6>G:\code\001_TG\BuildPath\tdesktop\out\Telegram\codegen\codegen\style\Debug\codegen_style.exe : fatal error LNK1120: 3 unresolved externals
7>Done building project "codegen_lang.vcxproj" -- FAILED.
9>------ Build started: Project: td_lang_lang, Configuration: Debug x64 ------
6>Done building project "codegen_style.vcxproj" -- FAILED.
9>Generating lang (td_lang)
9>'codegen\codegen\lang\Debug\codegen_lang.exe' is not recognized as an internal or external command,
9>operable program or batch file.
9>G:\ide\vs2022\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\7296eece34a809bccf00a2b421481326\lang_auto.timestamp.rule;G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\567d11c085f051bd8a82868144309f80\td_lang_lang.rule' exited with code 9009.
9>Done building project "td_lang_lang.vcxproj" -- FAILED.
10>------ Build started: Project: td_ui_styles, Configuration: Debug x64 ------
11>------ Build started: Project: lib_ui_styles, Configuration: Debug x64 ------
12>------ Build started: Project: lib_ui_palette, Configuration: Debug x64 ------
8>   Creating library G:/code/001_TG/BuildPath/tdesktop/out/Telegram/codegen/codegen/emoji/Debug/codegen_emoji.lib and object G:/code/001_TG/BuildPath/tdesktop/out/Telegram/codegen/codegen/emoji/Debug/codegen_emoji.exp
12>Generating palette (lib_ui)
12>'..\codegen\codegen\style\Debug\codegen_style.exe' is not recognized as an internal or external command,
12>operable program or batch file.
12>G:\ide\vs2022\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\colors.palette;G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\bc672e9cc2c3efb89c958fa124fae730\lib_ui_palette.rule' exited with code 9009.
12>Done building project "lib_ui_palette.vcxproj" -- FAILED.
10>Generating styles (td_ui)
10>'codegen\codegen\style\Debug\codegen_style.exe' is not recognized as an internal or external command,
10>operable program or batch file.
10>G:\ide\vs2022\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\207d58fca7554cf7299904f3009f1467\td_ui_style.timestamp.rule;G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\567d11c085f051bd8a82868144309f80\td_ui_styles.rule' exited with code 9009.
10>Done building project "td_ui_styles.vcxproj" -- FAILED.
11>Generating styles (lib_ui)
11>'..\codegen\codegen\style\Debug\codegen_style.exe' is not recognized as an internal or external command,
11>operable program or batch file.
11>G:\ide\vs2022\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\b29ca5d13f60219a08267c1278f4a2f0\lib_ui_style.timestamp.rule;G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\bc672e9cc2c3efb89c958fa124fae730\lib_ui_styles.rule' exited with code 9009.
11>Done building project "lib_ui_styles.vcxproj" -- FAILED.
8>tg_angle.lib(validationES.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>tg_angle.lib(validationES2.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>tg_angle.lib(Debug.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>tg_angle.lib(ValidateLimitations.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>Qt5Guid.lib(qtextmarkdownimporter.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>Qt5Cored.lib(qstring.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>Qt5Cored.lib(qregexp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>tg_angle.lib(HandleAllocator.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>Qt5Guid.lib(qfontdatabase.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>Qt5Guid.lib(qpainterpath.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>Qt5Guid.lib(qkeysequence.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>Qt5Guid.lib(qtexttable.obj) : error LNK2001: unresolved external symbol __std_find_trivial_4
8>Qt5Cored.lib(qobject.obj) : error LNK2019: unresolved external symbol __std_find_trivial_8 referenced in function "void __cdecl std::_Deallocate<16,0>(void *,unsigned __int64)" (??$_Deallocate@$0BA@$0A@@std@@YAXPEAX_K@Z)
8>Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>tg_angle.lib(StateManager11.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>Qt5Guid.lib(qopenglcontext.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>Qt5Guid.lib(qaccessible.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>Qt5Guid.lib(qopenglshaderprogram.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>Qt5Cored.lib(qcoreapplication.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>Qt5Guid.lib(qguiapplication.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>Qt5Guid.lib(qscreen.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>Qt5Guid.lib(qtouchdevice.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>Qt5Guid.lib(qwindow.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
8>Qt5Guid.lib(qopenglshaderprogram.obj) : error LNK2019: unresolved external symbol __std_count_trivial_1 referenced in function "unsigned __int64 __cdecl __std_count_trivial(char const *,char const *,char)" (??$__std_count_trivial@$$CBDD@@YA_KPEBD0D@Z)
8>tg_angle.lib(Token.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_1
8>tg_angle.lib(Context.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_1
8>tg_angle.lib(string_utils.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_1
8>tg_angle.lib(Shader.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_1
8>tg_angle.lib(util.cpp.obj) : error LNK2001: unresolved external symbol __std_find_trivial_1
8>tg_angle.lib(driver_utils.cpp.obj) : error LNK2019: unresolved external symbol __std_find_trivial_2 referenced in function "unsigned short const * __cdecl __std_find_trivial(unsigned short const *,unsigned short const *,unsigned int)" (??$__std_find_trivial@$$CBGI@@YAPEBGPEBG0I@Z)
8>tg_angle.lib(OverlayWidgets.cpp.obj) : error LNK2019: unresolved external symbol __std_max_element_8 referenced in function "unsigned __int64 const * __cdecl __std_max_element(unsigned __int64 const *,unsigned __int64 const *)" (??$__std_max_element@$$CB_K@@YAPEB_KPEB_K0@Z)
8>G:\code\001_TG\BuildPath\tdesktop\out\Telegram\codegen\codegen\emoji\Debug\codegen_emoji.exe : fatal error LNK1120: 6 unresolved externals
8>Done building project "codegen_emoji.vcxproj" -- FAILED.
13>------ Build started: Project: lib_ui_emoji, Configuration: Debug x64 ------
13>Generating emoji (lib_ui)
13>'..\codegen\codegen\emoji\Debug\codegen_emoji.exe' is not recognized as an internal or external command,
13>operable program or batch file.
13>G:\ide\vs2022\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\deb9c1361cc5de54db283b175915c118\emoji.timestamp.rule;G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\bc672e9cc2c3efb89c958fa124fae730\lib_ui_emoji.rule' exited with code 9009.
13>Done building project "lib_ui_emoji.vcxproj" -- FAILED.
14>------ Build started: Project: lib_ui_autogen, Configuration: Debug x64 ------
14>Automatic MOC for target lib_ui
14>
14>AutoGen error
14>-------------
14>Info error in info file
14>"G:/code/001_TG/BuildPath/tdesktop/out/Telegram/lib_ui/CMakeFiles/lib_ui_autogen.dir/AutogenInfo.json":
14>The header file "SRC:/out/Telegram/lib_ui/gen/emoji.h" does not exist.
14>
14>G:\ide\vs2022\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'G:\code\001_TG\BuildPath\tdesktop\out\CMakeFiles\bc672e9cc2c3efb89c958fa124fae730\lib_ui_autogen.rule' exited with code 1.
14>Done building project "lib_ui_autogen.vcxproj" -- FAILED.
15>------ Build started: Project: lib_ui, Configuration: Debug x64 ------
15>mocs_compilation_Debug.cpp
15>c1xx : fatal error C1083: Cannot open source file: 'G:\code\001_TG\BuildPath\tdesktop\out\Telegram\lib_ui\lib_ui_autogen\mocs_compilation_Debug.cpp': No such file or directory
15>palette.cpp
15>c1xx : fatal error C1083: Cannot open source file: 'G:\code\001_TG\BuildPath\tdesktop\out\Telegram\lib_ui\gen\styles\palette.cpp': No such file or directory
15>style_basic.cpp
15>style_layers.cpp
15>c1xx : fatal error C1083: Cannot open source file: 'G:\code\001_TG\BuildPath\tdesktop\out\Telegram\lib_ui\gen\styles\style_basic.cpp': No such file or directory
15>c1xx : fatal error C1083: Cannot open source file: 'G:\code\001_TG\BuildPath\tdesktop\out\Telegram\lib_ui\gen\styles\style_layers.cpp': No such file or directory
15>style_widgets.cpp
15>emoji.cpp
15>c1xx : fatal error C1083: Cannot open source file: 'G:\code\001_TG\BuildPath\tdesktop\out\Telegram\lib_ui\gen\styles\style_widgets.cpp': No such file or directory
15>c1xx : fatal error C1083: Cannot open source file: 'G:\code\001_TG\BuildPath\tdesktop\out\Telegram\lib_ui\gen\emoji.cpp': No such file or directory
15>emoji_suggestions_data.cpp
15>animation_value.cpp
15>cross_animation.cpp
15>c1xx : fatal error C1083: Cannot open source file: 'G:\code\001_TG\BuildPath\tdesktop\out\Telegram\lib_ui\gen\emoji_suggestions_data.cpp': No such file or directory
15>cross_line.cpp
15>fade_animation.cpp
15>numbers_animation.cpp
15>panel_animation.cpp
15>radial_animation.cpp
15>ripple_animation.cpp
15>round_area_with_shadow.cpp
15>show_animation.cpp
15>spoiler_mess.cpp
15>gl_surface.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/effects/cross_animation.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\cross_animation.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/effects/cross_line.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\cross_line.cpp)
15>image_prepare.cpp
15>box_content.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/effects/panel_animation.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\panel_animation.cpp)
15>box_layer_widget.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\animation_value.cpp)
15>generic_box.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\round_area_with_shadow.cpp)
15>layer_widget.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\radial_animation.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\image\image_prepare.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\spoiler_mess.cpp)
15>arcs.cpp
15>blob.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\ripple_animation.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/paint/arcs.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\paint\arcs.cpp)
15>blobs.cpp
15>blobs_linear.cpp
15>ui_window_shadow_win.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\paint\blob.cpp)
15>ui_window_title_win.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/effects/fade_animation.h(11,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\fade_animation.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\paint\blobs.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\numbers_animation.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\paint\blobs_linear.cpp)
15>ui_window_win.cpp
15>ui_utility_win.cpp
15>ui_platform_window_title.cpp
15>ui_platform_window.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\effects\show_animation.cpp(11,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/popup_menu.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\platform\win\ui_utility_win.cpp)
15>style_core.cpp
15>style_core_color.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/labels.h(16,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\layers\box_content.cpp)
15>style_core_icon.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/style/style_core_palette.h(10,1): fatal error C1083: Cannot open include file: 'styles/palette.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\style\style_core_color.cpp)
15>style_core_palette.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\style\style_core.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/labels.h(16,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\layers\box_layer_widget.cpp)
15>custom_emoji_instance.cpp
15>text.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/style/style_core_palette.h(10,1): fatal error C1083: Cannot open include file: 'styles/palette.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\style\style_core_icon.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/labels.h(16,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\layers\generic_box.cpp)
15>text_block.cpp
15>text_entity.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/style/style_core_palette.h(10,1): fatal error C1083: Cannot open include file: 'styles/palette.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\style\style_core_palette.cpp)
15>text_parser.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/labels.h(16,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\layers\layer_widget.cpp)
15>text_renderer.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\text\text_block.cpp)
15>toast.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\platform\ui_platform_window.cpp)
15>toast_widget.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\text\custom_emoji_instance.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\text\text_parser.cpp)
15>box_content_divider.cpp
15>buttons.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\text\text.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\text\text_entity.cpp)
15>call_button.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\platform\ui_platform_window_title.cpp)
15>checkbox.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\text\text_renderer.cpp)
15>dropdown_menu.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/dropdown_menu.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\dropdown_menu.cpp)
15>icon_button_with_text.cpp
15>inner_dropdown.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/inner_dropdown.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\inner_dropdown.cpp)
15>input_field.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\gl\gl_surface.cpp)
15>masked_input_field.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\fields\input_field.cpp)
15>labels.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\box_content_divider.cpp(9,1): fatal error C1083: Cannot open include file: 'styles/style_layers.h': No such file or directory
15>menu.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\toast\toast.cpp(11,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory
15>menu_action.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\toast\toast_widget.cpp)
15>menu_add_action_callback_factory.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\call_button.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\buttons.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\checkbox.cpp)
15>menu_item_base.cpp
15>menu_multiline_action.cpp
15>menu_separator.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\icon_button_with_text.cpp)
15>menu_toggle.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\fields\masked_input_field.cpp)
15>elastic_scroll.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/labels.h(16,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\labels.cpp)
15>popup_menu.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/popup_menu.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\popup_menu.cpp)
15>separate_panel.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\platform\win\ui_window_shadow_win.cpp(12,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\menu\menu.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\menu\menu_action.cpp)
15>scroll_area.cpp
15>side_bar_button.cpp
15>shadow.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\menu\menu_add_action_callback_factory.cpp)
15>time_input.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\menu\menu_separator.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\menu\menu_item_base.cpp)
15>tooltip.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\menu\menu_multiline_action.cpp)
15>fade_wrap.cpp
15>follow_slide_wrap.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\menu\menu_toggle.cpp)
15>slide_wrap.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/scroll_area.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\elastic_scroll.cpp)
15>table_layout.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\platform\win\ui_window_title_win.cpp)
15>vertical_layout_reorder.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\shadow.cpp(10,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory
15>cached_special_layer_shadow_corners.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/scroll_area.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\scroll_area.cpp)
15>emoji_config.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\separate_panel.cpp)
15>integration.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\cached_special_layer_shadow_corners.cpp(10,1): fatal error C1083: Cannot open include file: 'styles/style_layers.h': No such file or directory
15>emoji_suggestions.cpp
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\emoji_config.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/buttons.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\side_bar_button.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\emoji_suggestions\emoji_suggestions.cpp(10,1): fatal error C1083: Cannot open include file: 'emoji_suggestions_data.h': No such file or directory
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/effects/fade_animation.h(11,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\wrap\fade_wrap.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\wrap\follow_slide_wrap.cpp(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/labels.h(16,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\time_input.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\wrap\table_layout.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/painter.h(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\widgets\tooltip.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\integration.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\wrap\slide_wrap.cpp(9,1): fatal error C1083: Cannot open include file: 'styles/style_basic.h': No such file or directory
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/scroll_area.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\wrap\vertical_layout_reorder.cpp)
15>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/scroll_area.h(13,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui\platform\win\ui_window_win.cpp)
15>Done building project "lib_ui.vcxproj" -- FAILED.
16>------ Build started: Project: td_lang, Configuration: Debug x64 ------
17>------ Build started: Project: lib_webview, Configuration: Debug x64 ------
18>------ Build started: Project: lib_spellcheck, Configuration: Debug x64 ------
17>webview_dialog.cpp
16>lang_auto.cpp
16>c1xx : fatal error C1083: Cannot open source file: 'G:\code\001_TG\BuildPath\tdesktop\out\Telegram\gen\lang_auto.cpp': No such file or directory
16>lang_file_parser.cpp
16>lang_keys.cpp
16>lang_tag.cpp
16>G:\code\001_TG\BuildPath\tdesktop\Telegram\SourceFiles\lang/lang_keys.h(10,1): fatal error C1083: Cannot open include file: 'lang_auto.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\SourceFiles\lang\lang_file_parser.cpp)
16>G:\code\001_TG\BuildPath\tdesktop\Telegram\SourceFiles\lang/lang_keys.h(10,1): fatal error C1083: Cannot open include file: 'lang_auto.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\SourceFiles\lang\lang_keys.cpp)
16>G:\code\001_TG\BuildPath\tdesktop\Telegram\SourceFiles\lang/lang_keys.h(10,1): fatal error C1083: Cannot open include file: 'lang_auto.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\SourceFiles\lang\lang_tag.cpp)
16>Done building project "td_lang.vcxproj" -- FAILED.
18>spelling_highlighter.cpp
18>spelling_highlighter_helper.cpp
18>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_spellcheck\spellcheck\spelling_highlighter.cpp)
18>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory (compiling source file G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_spellcheck\spellcheck\spelling_highlighter_helper.cpp)
18>Done building project "lib_spellcheck.vcxproj" -- FAILED.
17>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/widgets/labels.h(16,1): fatal error C1083: Cannot open include file: 'styles/style_widgets.h': No such file or directory
17>Done building project "lib_webview.vcxproj" -- FAILED.
19>------ Build started: Project: td_ui, Configuration: Debug x64 ------
19>cmake_pch.cxx
19>G:/code/001_TG/BuildPath/tdesktop/Telegram/SourceFiles/ui/ui_pch.h(39,1): fatal error C1083: Cannot open include file: 'styles/palette.h': No such file or directory
19>Done building project "td_ui.vcxproj" -- FAILED.
20>------ Build started: Project: Telegram_autogen, Configuration: Debug x64 ------
20>Automatic MOC for target Telegram
21>------ Build started: Project: Telegram, Configuration: Debug x64 ------
21>cmake_pch.cxx
21>G:\code\001_TG\BuildPath\tdesktop\Telegram\lib_ui\ui/emoji_config.h(12,1): fatal error C1083: Cannot open include file: 'emoji.h': No such file or directory
21>Done building project "Telegram.vcxproj" -- FAILED.
========== Build: 6 succeeded, 15 failed, 29 up-to-date, 0 skipped ==========
========== Build started at 9:04 PM and took 14.160 seconds ==========

Operating system

Windows 10 Pro 22H2

Version of Telegram Desktop

dev version

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

ilya-fedin commented 9 months ago

looks like the dependencies are built with a different msvc version than you're building tdesktop with

kotlin711 commented 9 months ago

What should I do? Help me.

ilya-fedin commented 9 months ago

Do you have multiple visual studio versions?

kotlin711 commented 9 months ago

not have

ilya-fedin commented 9 months ago

Is it possible that you updated visual studio after the prepare step that builds dependencies?

kotlin711 commented 9 months ago

compiling zlib, an error occurs. need to install vs2019 msvc142. I installed it.

ilya-fedin commented 9 months ago

you can't use vs2019 for zlib and vs2022 for everything else

kotlin711 commented 9 months ago

image image image what should i do thank you

ilya-fedin commented 9 months ago

cleanup everything and build everything with only one compiler

kotlin711 commented 9 months ago

Should I delete msvc v142 2019 or msvc 143 2022

ilya-fedin commented 9 months ago

the pre-built one is built using 2022 but not the latest one due to a critical bug in it

kotlin711 commented 9 months ago

Thanks bro, I'll try it now

ilya-fedin commented 9 months ago

https://github.com/telegramdesktop/tdesktop/issues/26012#issuecomment-1879075256

kotlin711 commented 9 months ago

image

CMake Error at CMakeLists.txt:4 (project):
  Failed to run MSBuild command:

    C:/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/Bin/amd64/MSBuild.exe

  to get the value of VCTargetsPath:

    MSBuild version 17.6.3+07e294721 for .NET Framework
    Build started 1/23/2024 3:51:52 AM.

    Project "C:\Users\vboxuser\Desktop\TG\Libraries\win64\zlib\CMakeFiles\3.21.0\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\vboxuser\Desktop\TG\Libraries\win64\zlib\CMakeFiles\3.21.0\VCTargetsPath.vcxproj]
    Done Building Project "C:\Users\vboxuser\Desktop\TG\Libraries\win64\zlib\CMakeFiles\3.21.0\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\Users\vboxuser\Desktop\TG\Libraries\win64\zlib\CMakeFiles\3.21.0\VCTargetsPath.vcxproj" (default target) (1) ->
    (PrepareForBuild target) ->
      C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\vboxuser\Desktop\TG\Libraries\win64\zlib\CMakeFiles\3.21.0\VCTargetsPath.vcxproj]

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.81

  Exit code: 1

-- Configuring incomplete, errors occurred!
See also "C:/Users/vboxuser/Desktop/TG/Libraries/win64/zlib/CMakeFiles/CMakeOutput.log".
[8/28](Libraries/zlib): FAILED
FAILED
ilya-fedin commented 9 months ago

do you build the latest version of tdesktop?

kotlin711 commented 9 months ago

yes latest version

ilya-fedin commented 9 months ago

try to update cmake to latest version then, maybe 3.21 doesn't support generating for vs2022

kotlin711 commented 9 months ago

okay

kotlin711 commented 9 months ago

26012 (comment)

Thank you, brother. I learned the experience from here. I compiled it successfully.

kotlin711 commented 9 months ago

I want to add a custom language. What should I do?

ilya-fedin commented 9 months ago

Just create it on https://translations.telegram.org/?