telegramdesktop / tdesktop

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

The assembly has begun with error #28244

Closed atrdev-rgb closed 1 month ago

atrdev-rgb commented 1 month ago

Steps to reproduce

1.git clone --recursive https://github.com/telegramdesktop/tdesktop.git 2.tdesktop\Telegram\build\prepare\win.bat 3.configure.bat x64 -D TDESKTOP_API_ID=YOUR_API_ID -D TDESKTOP_API_HASH=YOUR_API_HASH 4.start build on VS 2022 17.7.7 64bit

Expected behaviour

build

Actual behaviour

not build, but version 5.2.6 build normaly

Operating system

Windows 10

Version of Telegram Desktop

5.3.2

Installation source

Other (unofficial) source

Crash ID

No response

Logs

The assembly has begun…
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>------ Assembly started: project: Telegram_midl, Configuration: Debug x64 ------
6>------ Build started: project: lib_ui_emoji, Configuration: Debug x64 ------
7>------ Build started: project: td_lang_lang, Configuration: Debug x64 ------
8>------ Build started: project: td_ui_styles, Configuration: Debug x64 ------
9>------ The assembly has begun: project: lib_ui_styles, Configuration: Debug x64 ------
10>------ Build started: project: lib_ui_palette, Configuration: Debug x64 ------
11>------ Build started: project: lib_ui_autogen, Configuration: Debug x64 ------
11 >1>Automatic MOC for target lib_ui
12>------ Build started: project: Telegram_autogen, Configuration: Debug x64 ------
12>1> Automatic MOC for target Telegram
13>------ Assembly started: project: Telegram, Configuration: Debug x64 ------
13 >settings_credits_graphics.cpp
13>D:\TBuild\tdesktop\Telegram\lib_lottie\lottie/lottie_common.h (40.9): error C2760: syntax error: unexpected element "member initializer". Expected ")"
13>D:\TBuild\tdesktop\Telegram\lib_lottie\lottie/lottie_common.h (40.9): error C2760: syntax error: unexpected element "member initializer". Expected "}"
13>D:\TBuild\tdesktop\Telegram\lib_lottie\lottie/lottie_common.h (40.9): error C2059: syntax error: member initializer
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (512.29): error C2059: syntax error: )
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (513.5): error C2065: p: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (513.23): error C2065: frame: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (514.9): error C2065: lottie: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (514.32): error C2065: lottie: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (515,6): error C2065: lottie: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (518.4): error C2059: syntax error: ,
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (518,22): error C2059: syntax error: )
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (521.4): error C2065: icon: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (522.21): error C2065: icon: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (524,6): error C2065: icon: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (520.5): warning C4834: canceling the return value of a function with the "nodiscard" attribute
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (525.4): error C2059: syntax error: else
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (525,9): error C2143: syntax error: missing ";" before "{"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (525.9): error C2447: {: missing function header (possibly using a formal list of the old type)
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (541.21): error C4430: missing type specifier - int is assumed. Note. C++ does not support int by default
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (541,6): error C2365: Ui::AddSkip: redefinition; the previous definition was "function"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (541,14): error C2065: content: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (542.21): error C4430: missing type specifier - int is assumed. Note. C++ does not support int by default
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (542,6): error C2365: Ui::AddSkip: redefinition; the previous definition was "function"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (542,14): error C2065: content: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (544.2): error C3927: "->": The final return type is invalid after a non-function declaration statement.
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (544.7): error C3613: missing return value type after "->" (int is assumed)
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (544,13): error C4430: The type specifier is missing - int is assumed. Note. C++ does not support int by default
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (544.7): error C2146: syntax error: missing ";" before the identifier "addRow"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (551.7): error C3927: "->": The final return type is invalid after a non-function declaration statement.
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (551,8): error C3484: syntax error: requires "->" before the return type
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (551,9): error C3613: missing return value type after "->" (int is assumed)
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (552.5): error C4430: missing type specifier - int is assumed. Note. C++ does not support int by default
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (551,9): error C2146: syntax error: missing ";" before the identifier "gift"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (554.5): error C2143: syntax error: missing ";" before "?"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (554.5): error C4430: missing type specifier - int is assumed. Note. C++ does not support int by default
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (555.30): error C4430: missing type specifier - int is assumed. Note. C++ does not support int by default
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (555.11): error C2365: Ui::GenerateEntryName: redefinition; the previous definition was "function"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\ui/effects/credits_graphics.h (73.32): message : see the declaration "Ui::GenerateEntryName"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (555.31): error C2059: syntax error: .
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (555.36): error C2059: syntax error: )
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (556.28): error C2059: syntax error: )
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (556,29): error C2059: syntax error: )
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (556.30): error C2059: syntax error: )
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (558.21): error C4430: missing type specifier - int is assumed. Note. C++ does not support int by default
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (558.6): error C2365: Ui::AddSkip: redefinition; the previous definition was "function"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (558,14): error C2065: content: undeclared identifier
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (560.2): error C2447: {: missing function header (possibly using a formal list of the old type)
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (653.2): error C2059: syntax error: if
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (653.32): error C2143: syntax error: missing ";" before "{"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (653.32): error C2447: {: missing function header (possibly using a formal list of the old type)
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (662.2): error C2059: syntax error: if
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (662,14): error C2143: syntax error: missing ";" before "{"
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (662,14): error C2447: {: missing function header (possibly using a formal list of the old type)
13>D:\TBuild\tdesktop\Telegram\SourceFiles\settings\settings_credits_graphics.cpp (697.21): error C4430: missing type specifier - int is assumed. Note. C++ does not support int by default
atrdev-rgb commented 1 month ago

what version of vs is recommended to use?

ilya-fedin commented 1 month ago

You can try the one github actions use

atrdev-rgb commented 1 month ago

Reinstall OS Windows on windows 11

SyperAlexKomp commented 1 month ago

Same error on latest windows 11

Grishanenko commented 1 month ago

I have the same error while building v5.3.0 and v5.3.1. How can I fix it?