You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Unable to compile on windows using the provided walkthrough.
To Reproduce
Follow the windows install guide
Expected behavior
During the Check for working CXX compiler an error occurs when doing a test compile.
1> [CMake] -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - broken
1> [CMake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:73 (message):
1> [CMake] The C++ compiler
1> [CMake]
1> [CMake] "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe"
1> [CMake]
1> [CMake] is not able to compile a simple test program.
1> [CMake]
1> [CMake] It fails with the following output:
1> [CMake]
1> [CMake] Change Dir: 'D:/xstudio/build/CMakeFiles/CMakeScratch/TryCompile-mww823'
1> [CMake]
1> [CMake] Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v cmTC_10ad8
1> [CMake] [1/2] C:\PROGRA1\MICROS1\2022\COMMUN1\VC\Tools\MSVC\14421.344\bin\Hostx64\x64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_10ad8.dir\testCXXCompiler.cxx.obj /FdCMakeFiles\cmTC_10ad8.dir\ /FS -c D:\xstudio\build\CMakeFiles\CMakeScratch\TryCompile-mww823\testCXXCompiler.cxx
1> [CMake] [2/2] C:\windows\system32\cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_10ad8.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA1\MICROS1\2022\COMMUN1\VC\Tools\MSVC\14421.344\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_10ad8.dir\testCXXCompiler.cxx.obj /out:cmTC_10ad8.exe /implib:cmTC_10ad8.lib /pdb:cmTC_10ad8.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 ."
1> [CMake] FAILED: cmTC_10ad8.exe
1> [CMake] C:\windows\system32\cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_10ad8.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA1\MICROS1\2022\COMMUN1\VC\Tools\MSVC\14421.344\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_10ad8.dir\testCXXCompiler.cxx.obj /out:cmTC_10ad8.exe /implib:cmTC_10ad8.lib /pdb:cmTC_10ad8.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 ."
1> [CMake] RC Pass 1: command "rc /fo CMakeFiles\cmTC_10ad8.dir/manifest.res CMakeFiles\cmTC_10ad8.dir/manifest.rc" failed (exit code 0) with the following output:
1> [CMake] no such file or directory
1> [CMake] ninja: build stopped: subcommand failed.
1> [CMake]
1> [CMake]
1> [CMake]
1> [CMake]
1> [CMake]
1> [CMake] CMake will not be able to correctly generate this project.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS:Windows 10 Pro
Additional context
By changing the generator from Ninja to Visual Studio 2022, I was able to go through the cmake cache generation.
But it also required some additionnal visual studio package not mentionned in the install doc.
Here is a screenshot of the additionnal packages needed thanks to Michael Kessler
The text was updated successfully, but these errors were encountered:
Describe the bug
Unable to compile on windows using the provided walkthrough.
To Reproduce
Follow the windows install guide
Expected behavior
During the Check for working CXX compiler an error occurs when doing a test compile.
1> [CMake] -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - broken
1> [CMake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:73 (message):
1> [CMake] The C++ compiler
1> [CMake]
1> [CMake] "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe"
1> [CMake]
1> [CMake] is not able to compile a simple test program.
1> [CMake]
1> [CMake] It fails with the following output:
1> [CMake]
1> [CMake] Change Dir: 'D:/xstudio/build/CMakeFiles/CMakeScratch/TryCompile-mww823'
1> [CMake]
1> [CMake] Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v cmTC_10ad8
1> [CMake] [1/2] C:\PROGRA
1\MICROS1\2022\COMMUN1\VC\Tools\MSVC\14421.344\bin\Hostx64\x64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_10ad8.dir\testCXXCompiler.cxx.obj /FdCMakeFiles\cmTC_10ad8.dir\ /FS -c D:\xstudio\build\CMakeFiles\CMakeScratch\TryCompile-mww823\testCXXCompiler.cxx1> [CMake] [2/2] C:\windows\system32\cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_10ad8.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA
1\MICROS1\2022\COMMUN1\VC\Tools\MSVC\14421.344\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_10ad8.dir\testCXXCompiler.cxx.obj /out:cmTC_10ad8.exe /implib:cmTC_10ad8.lib /pdb:cmTC_10ad8.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 ."1> [CMake] FAILED: cmTC_10ad8.exe
1> [CMake] C:\windows\system32\cmd.exe /C "cd . && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_10ad8.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA
1\MICROS1\2022\COMMUN1\VC\Tools\MSVC\14421.344\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_10ad8.dir\testCXXCompiler.cxx.obj /out:cmTC_10ad8.exe /implib:cmTC_10ad8.lib /pdb:cmTC_10ad8.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 ."1> [CMake] RC Pass 1: command "rc /fo CMakeFiles\cmTC_10ad8.dir/manifest.res CMakeFiles\cmTC_10ad8.dir/manifest.rc" failed (exit code 0) with the following output:
1> [CMake] no such file or directory
1> [CMake] ninja: build stopped: subcommand failed.
1> [CMake]
1> [CMake]
1> [CMake]
1> [CMake]
1> [CMake]
1> [CMake] CMake will not be able to correctly generate this project.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
By changing the generator from Ninja to Visual Studio 2022, I was able to go through the cmake cache generation.
But it also required some additionnal visual studio package not mentionned in the install doc.
Here is a screenshot of the additionnal packages needed thanks to Michael Kessler
The text was updated successfully, but these errors were encountered: