Closed kotlin711 closed 9 months ago
looks like the dependencies are built with a different msvc version than you're building tdesktop with
What should I do? Help me.
Do you have multiple visual studio versions?
not have
Is it possible that you updated visual studio after the prepare step that builds dependencies?
compiling zlib, an error occurs. need to install vs2019 msvc142. I installed it.
you can't use vs2019 for zlib and vs2022 for everything else
what should i do thank you
cleanup everything and build everything with only one compiler
Should I delete msvc v142 2019 or msvc 143 2022
the pre-built one is built using 2022 but not the latest one due to a critical bug in it
Thanks bro, I'll try it now
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
do you build the latest version of tdesktop?
yes latest version
try to update cmake to latest version then, maybe 3.21 doesn't support generating for vs2022
okay
26012 (comment)
Thank you, brother. I learned the experience from here. I compiled it successfully.
I want to add a custom language. What should I do?
Just create it on https://translations.telegram.org/?
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
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