Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake 错误,大佬帮忙看看 #142

Open
brokensword2018 opened this issue Sep 18, 2024 · 0 comments
Open

cmake 错误,大佬帮忙看看 #142

brokensword2018 opened this issue Sep 18, 2024 · 0 comments

Comments

@brokensword2018
Copy link

$ cmake -B build -S . -G "Ninja Multi-Config"
-- The CXX compiler identification is MSVC 19.29.30154.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - broken
CMake Error at E:/cmake/share/cmake-3.30/Modules/CMakeTestCXXCompiler.cmake:73 (message):
The C++ compiler

"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: 'F:/desktop/qwindowkit/build/CMakeFiles/CMakeScratch/TryCompile-ntypmt'

Run Build Command(s): E:/ninja/ninja.exe -v cmTC_9b5e4
[1/2] C:\PROGRA~2\MICROS~3\2019\BUILDT~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe  /nologo /TP -DCMAKE_INTDIR=\"Debug\"  /DWIN32 /D_WINDOWS /GR /EHsc  /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /FoCMakeFiles\cmTC_9b5e4.dir\Debug\testCXXCompiler.cxx.obj /FdCMakeFiles\cmTC_9b5e4.dir\Debug\ /FS -c F:\desktop\qwindowkit\build\CMakeFiles\CMakeScratch\TryCompile-ntypmt\testCXXCompiler.cxx
[2/2] C:\Windows\system32\cmd.exe /C "cd . && E:\cmake\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_9b5e4.dir\Debug --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~2\MICROS~3\2019\BUILDT~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_9b5e4.dir\Debug\testCXXCompiler.cxx.obj  /out:Debug\cmTC_9b5e4.exe /implib:Debug\cmTC_9b5e4.lib /pdb:Debug\cmTC_9b5e4.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 ."
FAILED: Debug/cmTC_9b5e4.exe
C:\Windows\system32\cmd.exe /C "cd . && E:\cmake\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_9b5e4.dir\Debug --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~2\MICROS~3\2019\BUILDT~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_9b5e4.dir\Debug\testCXXCompiler.cxx.obj  /out:Debug\cmTC_9b5e4.exe /implib:Debug\cmTC_9b5e4.lib /pdb:Debug\cmTC_9b5e4.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_9b5e4.dir\Debug/manifest.res CMakeFiles\cmTC_9b5e4.dir\Debug/manifest.rc" failed (exit code 0) with the following output:
no such file or directory
ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)

-- Configuring incomplete, errors occurred!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant