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

Failed to compile for windows #132

Open
nosmose opened this issue Jan 13, 2025 · 2 comments
Open

Failed to compile for windows #132

nosmose opened this issue Jan 13, 2025 · 2 comments

Comments

@nosmose
Copy link

nosmose commented Jan 13, 2025

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
image
image

@pbhat99
Copy link

pbhat99 commented Jan 19, 2025

@nosmose
Copy link
Author

nosmose commented Jan 20, 2025

Thanks I will give you executable a try.
I finally managed to compile locally but it crashes right after launch without any error messages.

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

2 participants