telegramdesktop / tdesktop

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

configure.bat 执行此步骤出错 #26014

Closed newngapi closed 1 year ago

newngapi commented 1 year ago

Steps to reproduce

E:\TBuild\BuildPath\tdesktop\Telegram>configure.bat x64 -D TDESKTOP_API_ID=1xxxxxxx -D TDESKTOP_API_HASH=57xxxxxxxxxxxxxxxxxxxxxxxxxx Warn about uninitialized values. Version: 4.6.7.beta -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044. Resolved NuGet executable: E:/TBuild/BuildPath/ThirdParty/NuGet/nuget.exe Feeds used:

Argument cannot be null or empty 参数名: primarySources CMake Error at cmake/nuget.cmake:86 (execute_process): execute_process error getting child return code: 系统找不到指定的文件。 Call Stack (most recent call first): Telegram/lib_base/CMakeLists.txt:280 (nuget_add_winrt)

-- Configuring incomplete, errors occurred! See also "E:/TBuild/BuildPath/tdesktop/out/CMakeFiles/CMakeOutput.log".

Expected behaviour

configure.bat x64 -D TDESKTOP_API_ID=1xxxxxxx -D TDESKTOP_API_HASH=57xxxxxxxxxxxxxxxxxxxxxxxxxx

Actual behaviour

E:\TBuild\BuildPath\tdesktop\Telegram>configure.bat x64 -D TDESKTOP_API_ID=1xxxxxxx -D TDESKTOP_API_HASH=57xxxxxxxxxxxxxxxxxxxxxxxxxx Warn about uninitialized values. Version: 4.6.7.beta -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044. Resolved NuGet executable: E:/TBuild/BuildPath/ThirdParty/NuGet/nuget.exe Feeds used:

Argument cannot be null or empty 参数名: primarySources CMake Error at cmake/nuget.cmake:86 (execute_process): execute_process error getting child return code: 系统找不到指定的文件。 Call Stack (most recent call first): Telegram/lib_base/CMakeLists.txt:280 (nuget_add_winrt)

-- Configuring incomplete, errors occurred! See also "E:/TBuild/BuildPath/tdesktop/out/CMakeFiles/CMakeOutput.log".

Operating system

Microsoft Windows [版本 10.0.19044.2604]

Version of Telegram Desktop

new

Installation source

Static binary from official website

Logs

The system is: Windows - 10.0.19044 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:  
Build flags: 
Id flags:  

The output was:
0
MSBuild version 17.5.0+6f08c67f3 for .NET Framework
生成启动时间为 2023/3/9 17:44:26。
Included response file: e:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\MSBuild.rsp

节点 1 上的项目“E:\TBuild\BuildPath\tdesktop\out\CMakeFiles\3.25.1-msvc1\CompilerIdC\CompilerIdC.vcxproj”(默认目标)。
PrepareForBuild:
  正在创建目录“Debug\”。
  正在创建目录“Debug\CompilerIdC.tlog\”。
InitializeBuildStatus:
  正在创建“Debug\CompilerIdC.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
ClCompile:
  e:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\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\vc143.pdb" /external:W0 /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
  CMakeCCompilerId.c
Link:
  e:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\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:\TBuild\BuildPath\tdesktop\out\CMakeFiles\3.25.1-msvc1\CompilerIdC\CompilerIdC.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_C_COMPILER=e:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
  正在删除文件“Debug\CompilerIdC.tlog\unsuccessfulbuild”。
  正在对“Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate”执行 Touch 任务。
已完成生成项目“E:\TBuild\BuildPath\tdesktop\out\CMakeFiles\3.25.1-msvc1\CompilerIdC\CompilerIdC.vcxproj”(默认目标)的操作。

已成功生成。
    0 个警告
    0 个错误

已用时间 00:00:01.57

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:/TBuild/BuildPath/tdesktop/out/CMakeFiles/3.25.1-msvc1/CompilerIdC/CompilerIdC.exe"

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

The output was:
0
MSBuild version 17.5.0+6f08c67f3 for .NET Framework
生成启动时间为 2023/3/9 17:44:28。
Included response file: e:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\MSBuild.rsp

节点 1 上的项目“E:\TBuild\BuildPath\tdesktop\out\CMakeFiles\3.25.1-msvc1\CompilerIdCXX\CompilerIdCXX.vcxproj”(默认目标)。
PrepareForBuild:
  正在创建目录“Debug\”。
  正在创建目录“Debug\CompilerIdCXX.tlog\”。
InitializeBuildStatus:
  正在创建“Debug\CompilerIdCXX.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
ClCompile:
  e:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\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\vc143.pdb" /external:W0 /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
  CMakeCXXCompilerId.cpp
Link:
  e:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\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:\TBuild\BuildPath\tdesktop\out\CMakeFiles\3.25.1-msvc1\CompilerIdCXX\CompilerIdCXX.exe
PostBuildEvent:
  for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
  :VCEnd
  CMAKE_CXX_COMPILER=e:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\bin\Hostx64\x64\cl.exe
FinalizeBuildStatus:
  正在删除文件“Debug\CompilerIdCXX.tlog\unsuccessfulbuild”。
  正在对“Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate”执行 Touch 任务。
已完成生成项目“E:\TBuild\BuildPath\tdesktop\out\CMakeFiles\3.25.1-msvc1\CompilerIdCXX\CompilerIdCXX.vcxproj”(默认目标)的操作。

已成功生成。
    0 个警告
    0 个错误

已用时间 00:00:01.32

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:/TBuild/BuildPath/tdesktop/out/CMakeFiles/3.25.1-msvc1/CompilerIdCXX/CompilerIdCXX.exe"

Detecting C compiler ABI info compiled with the following output:
Change Dir: E:/TBuild/BuildPath/tdesktop/out/CMakeFiles/CMakeScratch/TryCompile-lwhjpz

Run Build Command(s):e:/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_f8683.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.5.0+6f08c67f3 for .NET Framework

  用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.35.32215 版

  版权所有(C) Microsoft Corporation。保留所有权利。

  CMakeCCompilerABI.c

  cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_f8683.dir\Debug\\" /Fd"cmTC_f8683.dir\Debug\vc143.pdb" /external:W1 /Gd /TC /errorReport:queue "E:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\share\cmake-3.25\Modules\CMakeCCompilerABI.c"

  cmTC_f8683.vcxproj -> E:\TBuild\BuildPath\tdesktop\out\CMakeFiles\CMakeScratch\TryCompile-lwhjpz\Debug\cmTC_f8683.exe

Detecting CXX compiler ABI info compiled with the following output:
Change Dir: E:/TBuild/BuildPath/tdesktop/out/CMakeFiles/CMakeScratch/TryCompile-j3j342

Run Build Command(s):e:/Program Files/Microsoft Visual Studio/2022/Professional/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_6933e.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && MSBuild version 17.5.0+6f08c67f3 for .NET Framework

  用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.35.32215 版

  版权所有(C) Microsoft Corporation。保留所有权利。

  CMakeCXXCompilerABI.cpp

  cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_6933e.dir\Debug\\" /Fd"cmTC_6933e.dir\Debug\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "E:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\share\cmake-3.25\Modules\CMakeCXXCompilerABI.cpp"

  cmTC_6933e.vcxproj -> E:\TBuild\BuildPath\tdesktop\out\CMakeFiles\CMakeScratch\TryCompile-j3j342\Debug\cmTC_6933e.exe
github-actions[bot] commented 1 year ago

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!