BoomingTech / Piccolo

Piccolo (formerly Pilot) – mini game engine for games104
MIT License
5.86k stars 1.82k forks source link

Bug Report #317

Closed oyxB-52 closed 2 years ago

oyxB-52 commented 2 years ago

Describe the bug | Bug描述 A clear and concise description of what the bug is. Windows 10 用Cmake编译不通过,找不到kernel.lib文件

Steps to reproduce | 如何复现 Steps to reproduce the behavior: 运行build_windows.bat Expected behavior | 预期行为 A clear and concise description of what you expected to happen. 成功编译 Actual behavior | 实际行为 A clear and concise description of what actually happened. 编译失败

Screenshots/Logs | 截图/日志 If applicable, add screenshots and/or a video to help explain your problem. Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_570ca && [1/2] Building C object CMakeFiles\cmTC_570ca.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_570ca.exe

FAILED: cmTC_570ca.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_570ca.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_570ca.dir\CMakeCCompilerABI.c.obj /out:cmTC_570ca.exe /implib:cmTC_570ca.lib /pdb:cmTC_570ca.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_570ca.dir/manifest.res CMakeFiles\cmTC_570ca.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_76d97 && [1/2] Building C object CMakeFiles\cmTC_76d97.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_76d97.exe

FAILED: cmTC_76d97.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_76d97.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_76d97.dir\testCCompiler.c.obj /out:cmTC_76d97.exe /implib:cmTC_76d97.lib /pdb:cmTC_76d97.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_76d97.dir/manifest.res CMakeFiles\cmTC_76d97.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_23180 && [1/2] Building C object CMakeFiles\cmTC_23180.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_23180.exe

FAILED: cmTC_23180.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_23180.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_23180.dir\CMakeCCompilerABI.c.obj /out:cmTC_23180.exe /implib:cmTC_23180.lib /pdb:cmTC_23180.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_23180.dir/manifest.res CMakeFiles\cmTC_23180.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_efd31 && [1/2] Building C object CMakeFiles\cmTC_efd31.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_efd31.exe

FAILED: cmTC_efd31.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_efd31.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_efd31.dir\testCCompiler.c.obj /out:cmTC_efd31.exe /implib:cmTC_efd31.lib /pdb:cmTC_efd31.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_efd31.dir/manifest.res CMakeFiles\cmTC_efd31.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_0036d && [1/2] Building C object CMakeFiles\cmTC_0036d.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_0036d.exe

FAILED: cmTC_0036d.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_0036d.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_0036d.dir\CMakeCCompilerABI.c.obj /out:cmTC_0036d.exe /implib:cmTC_0036d.lib /pdb:cmTC_0036d.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_0036d.dir/manifest.res CMakeFiles\cmTC_0036d.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_754ff && [1/2] Building C object CMakeFiles\cmTC_754ff.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_754ff.exe

FAILED: cmTC_754ff.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_754ff.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_754ff.dir\testCCompiler.c.obj /out:cmTC_754ff.exe /implib:cmTC_754ff.lib /pdb:cmTC_754ff.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_754ff.dir/manifest.res CMakeFiles\cmTC_754ff.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_45c8a && [1/2] Building C object CMakeFiles\cmTC_45c8a.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_45c8a.exe

FAILED: cmTC_45c8a.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_45c8a.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_45c8a.dir\CMakeCCompilerABI.c.obj /out:cmTC_45c8a.exe /implib:cmTC_45c8a.lib /pdb:cmTC_45c8a.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_45c8a.dir/manifest.res CMakeFiles\cmTC_45c8a.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_d1aee && [1/2] Building C object CMakeFiles\cmTC_d1aee.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_d1aee.exe

FAILED: cmTC_d1aee.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_d1aee.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_d1aee.dir\testCCompiler.c.obj /out:cmTC_d1aee.exe /implib:cmTC_d1aee.lib /pdb:cmTC_d1aee.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_d1aee.dir/manifest.res CMakeFiles\cmTC_d1aee.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_9372d && [1/2] Building C object CMakeFiles\cmTC_9372d.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_9372d.exe

FAILED: cmTC_9372d.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_9372d.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_9372d.dir\CMakeCCompilerABI.c.obj /out:cmTC_9372d.exe /implib:cmTC_9372d.lib /pdb:cmTC_9372d.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_9372d.dir/manifest.res CMakeFiles\cmTC_9372d.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_1dd3c && [1/2] Building C object CMakeFiles\cmTC_1dd3c.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_1dd3c.exe

FAILED: cmTC_1dd3c.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_1dd3c.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_1dd3c.dir\testCCompiler.c.obj /out:cmTC_1dd3c.exe /implib:cmTC_1dd3c.lib /pdb:cmTC_1dd3c.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_1dd3c.dir/manifest.res CMakeFiles\cmTC_1dd3c.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_66952 && [1/2] Building C object CMakeFiles\cmTC_66952.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_66952.exe

FAILED: cmTC_66952.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_66952.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_66952.dir\CMakeCCompilerABI.c.obj /out:cmTC_66952.exe /implib:cmTC_66952.lib /pdb:cmTC_66952.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_66952.dir/manifest.res CMakeFiles\cmTC_66952.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_60987 && [1/2] Building C object CMakeFiles\cmTC_60987.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_60987.exe

FAILED: cmTC_60987.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_60987.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_60987.dir\testCCompiler.c.obj /out:cmTC_60987.exe /implib:cmTC_60987.lib /pdb:cmTC_60987.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_60987.dir/manifest.res CMakeFiles\cmTC_60987.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_de213 && [1/2] Building C object CMakeFiles\cmTC_de213.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_de213.exe

FAILED: cmTC_de213.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_de213.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_de213.dir\CMakeCCompilerABI.c.obj /out:cmTC_de213.exe /implib:cmTC_de213.lib /pdb:cmTC_de213.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_de213.dir/manifest.res CMakeFiles\cmTC_de213.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_6a53c && [1/2] Building C object CMakeFiles\cmTC_6a53c.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_6a53c.exe

FAILED: cmTC_6a53c.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_6a53c.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_6a53c.dir\testCCompiler.c.obj /out:cmTC_6a53c.exe /implib:cmTC_6a53c.lib /pdb:cmTC_6a53c.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_6a53c.dir/manifest.res CMakeFiles\cmTC_6a53c.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_0d407 && [1/2] Building C object CMakeFiles\cmTC_0d407.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_0d407.exe

FAILED: cmTC_0d407.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_0d407.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_0d407.dir\CMakeCCompilerABI.c.obj /out:cmTC_0d407.exe /implib:cmTC_0d407.lib /pdb:cmTC_0d407.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_0d407.dir/manifest.res CMakeFiles\cmTC_0d407.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_06545 && [1/2] Building C object CMakeFiles\cmTC_06545.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_06545.exe

FAILED: cmTC_06545.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_06545.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_06545.dir\testCCompiler.c.obj /out:cmTC_06545.exe /implib:cmTC_06545.lib /pdb:cmTC_06545.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_06545.dir/manifest.res CMakeFiles\cmTC_06545.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_92960 && [1/2] Building C object CMakeFiles\cmTC_92960.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_92960.exe

FAILED: cmTC_92960.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_92960.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_92960.dir\CMakeCCompilerABI.c.obj /out:cmTC_92960.exe /implib:cmTC_92960.lib /pdb:cmTC_92960.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_92960.dir/manifest.res CMakeFiles\cmTC_92960.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_72136 && [1/2] Building C object CMakeFiles\cmTC_72136.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_72136.exe

FAILED: cmTC_72136.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_72136.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_72136.dir\testCCompiler.c.obj /out:cmTC_72136.exe /implib:cmTC_72136.lib /pdb:cmTC_72136.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_72136.dir/manifest.res CMakeFiles\cmTC_72136.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_9cf9b && [1/2] Building C object CMakeFiles\cmTC_9cf9b.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_9cf9b.exe

FAILED: cmTC_9cf9b.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_9cf9b.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_9cf9b.dir\CMakeCCompilerABI.c.obj /out:cmTC_9cf9b.exe /implib:cmTC_9cf9b.lib /pdb:cmTC_9cf9b.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_9cf9b.dir/manifest.res CMakeFiles\cmTC_9cf9b.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_8ac43 && [1/2] Building C object CMakeFiles\cmTC_8ac43.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_8ac43.exe

FAILED: cmTC_8ac43.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_8ac43.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_8ac43.dir\testCCompiler.c.obj /out:cmTC_8ac43.exe /implib:cmTC_8ac43.lib /pdb:cmTC_8ac43.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_8ac43.dir/manifest.res CMakeFiles\cmTC_8ac43.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_be57c && [1/2] Building C object CMakeFiles\cmTC_be57c.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_be57c.exe

FAILED: cmTC_be57c.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_be57c.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_be57c.dir\CMakeCCompilerABI.c.obj /out:cmTC_be57c.exe /implib:cmTC_be57c.lib /pdb:cmTC_be57c.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_be57c.dir/manifest.res CMakeFiles\cmTC_be57c.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_b5c59 && [1/2] Building C object CMakeFiles\cmTC_b5c59.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_b5c59.exe

FAILED: cmTC_b5c59.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_b5c59.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_b5c59.dir\testCCompiler.c.obj /out:cmTC_b5c59.exe /implib:cmTC_b5c59.lib /pdb:cmTC_b5c59.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_b5c59.dir/manifest.res CMakeFiles\cmTC_b5c59.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_651df && [1/2] Building C object CMakeFiles\cmTC_651df.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_651df.exe

FAILED: cmTC_651df.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_651df.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_651df.dir\CMakeCCompilerABI.c.obj /out:cmTC_651df.exe /implib:cmTC_651df.lib /pdb:cmTC_651df.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_651df.dir/manifest.res CMakeFiles\cmTC_651df.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_3f5a5 && [1/2] Building C object CMakeFiles\cmTC_3f5a5.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_3f5a5.exe

FAILED: cmTC_3f5a5.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_3f5a5.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_3f5a5.dir\testCCompiler.c.obj /out:cmTC_3f5a5.exe /implib:cmTC_3f5a5.lib /pdb:cmTC_3f5a5.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_3f5a5.dir/manifest.res CMakeFiles\cmTC_3f5a5.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: /DWIN32;/D_WINDOWS Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCCompilerId.c Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCCompilerId.exe CMakeCCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: D:/visual studio/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe Build flags: Id flags:

The output was: 2 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.32.31332 版 版权所有(C) Microsoft Corporation。保留所有权利。

CMakeCXXCompilerId.cpp Microsoft (R) Incremental Linker Version 14.32.31332.0 Copyright (C) Microsoft Corporation. All rights reserved.

/out:CMakeCXXCompilerId.exe CMakeCXXCompilerId.obj LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

Detecting C compiler ABI info failed to compile with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_57c9b && [1/2] Building C object CMakeFiles\cmTC_57c9b.dir\CMakeCCompilerABI.c.obj

[2/2] Linking C executable cmTC_57c9b.exe

FAILED: cmTC_57c9b.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_57c9b.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_57c9b.dir\CMakeCCompilerABI.c.obj /out:cmTC_57c9b.exe /implib:cmTC_57c9b.lib /pdb:cmTC_57c9b.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_57c9b.dir/manifest.res CMakeFiles\cmTC_57c9b.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Determining if the C compiler works failed with the following output: Change Dir: C:/Users/DELL/OneDrive/桌面/Piccolo/out/build/x64-Debug/CMakeFiles/CMakeTmp

Run Build Command(s):D:/visual studio/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe cmTC_f837b && [1/2] Building C object CMakeFiles\cmTC_f837b.dir\testCCompiler.c.obj

[2/2] Linking C executable cmTC_f837b.exe

FAILED: cmTC_f837b.exe

cmd.exe /C "cd . && "D:\visual studio\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_f837b.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "D:\visual studio\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_f837b.dir\testCCompiler.c.obj /out:cmTC_f837b.exe /implib:cmTC_f837b.lib /pdb:cmTC_f837b.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."

RC Pass 1: command "rc /fo CMakeFiles\cmTC_f837b.dir/manifest.res CMakeFiles\cmTC_f837b.dir/manifest.rc" failed (exit code 0) with the following output: 系统找不到指定的文件。

ninja: build stopped: subcommand failed.

Desktop | 桌面环境

Additional context | 补充信息 Add any other context about the problem here.

hyv1001 commented 2 years ago

好像是ninja build导致的,用正常的msbuild会有问题吗? 另外,最好对问题简要描述一下

ccqil commented 2 years ago

看起来环境变量有点问题,你可以检查一下。还有你可以先试着在x64 Native Tools Command Prompt for VS 2022里编译一下看看有没有问题。不过在编译之前建议你把build_windows.bat里的https://github.com/BoomingTech/Piccolo/blob/214542257eeda28b09495fe38910d42fa2ba48b4/build_windows.bat#L3 改成 cmake -S . -B build -A x64 如果你有多个Visual Studio版本的话,最好再给cmake指定一下generator,就在后面再加上-G "Visual Studio 17 2022"

oyxB-52 commented 2 years ago

现在好了。git clone 拉下来的代码编译不过去,下载源码压缩包编译没问题,不知道有什么差异