To begin with, I added the PROJECT(OSK) statement on CMakeLists.txt file with the name indicating that the solution is related to On-Screen Keyboard. When I opened the VS Developer command prompt and typed configure.cmd VSSolution CMake couldn't find GCC and C++ compiler for some reason.
Here's the output:
Code: Select all
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.9
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>E:
E:\>cd ReactOS\Fork\reactos
E:\ReactOS\Fork\reactos>configure.cmd VSSolution
Detected Visual Studio Environment VS15-i386
Creating directories in output-VS-i386-sln
Preparing reactos...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:25 (project):
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
CMake Error at CMakeLists.txt:25 (project):
The CMAKE_CXX_COMPILER:
cl
is not a full path and was not found in the PATH.
-- Configuring incomplete, errors occurred!
See also "E:/ReactOS/Fork/reactos/output-VS-i386-sln/CMakeFiles/CMakeOutput.log"
.
See also "E:/ReactOS/Fork/reactos/output-VS-i386-sln/CMakeFiles/CMakeError.log".
E:\ReactOS\Fork\reactos>
Code: Select all
E:\ReactOS\Fork\reactos>cmake --version
cmake version 3.2.1-ReactOS
CMake suite maintained and supported by Kitware (kitware.com/cmake).
E:\ReactOS\Fork\reactos>
Code: Select all
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: cl
Build flags:
Id flags:
The output was:
1
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 25/03/2019 09:36:34.
Project "E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(402,5): warning MSB8038: Spectre mitigation is enabled but Spectre mitigated libraries are not found. Verify that the Visual Studio Workload includes the Spectre mitigated libraries. See https://aka.ms/Ofhn4c for more information. [E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj]
Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\CL.exe /c /nologo /W0 /WX- /diagnostics:classic /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Qspectre /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc141.pdb" /Gd /TC /analyze- /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\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:X86 /SAFESEH Debug\CMakeCCompilerId.obj
LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib' [E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj]
Done Building Project "E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED.
Build FAILED.
"E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(PrepareForBuild target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(402,5): warning MSB8038: Spectre mitigation is enabled but Spectre mitigated libraries are not found. Verify that the Visual Studio Workload includes the Spectre mitigated libraries. See https://aka.ms/Ofhn4c for more information. [E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj]
"E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(Link target) ->
LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib' [E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj]
1 Warning(s)
1 Error(s)
Time Elapsed 00:00:02.74
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: cl
Build flags:
Id flags:
The output was:
1
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 25/03/2019 09:36:37.
Project "E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(402,5): warning MSB8038: Spectre mitigation is enabled but Spectre mitigated libraries are not found. Verify that the Visual Studio Workload includes the Spectre mitigated libraries. See https://aka.ms/Ofhn4c for more information. [E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj]
Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\CL.exe /c /nologo /W0 /WX- /diagnostics:classic /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Qspectre /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc141.pdb" /Gd /TP /analyze- /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\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:X86 /SAFESEH Debug\CMakeCXXCompilerId.obj
LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib' [E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj]
Done Building Project "E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.
Build FAILED.
"E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(PrepareForBuild target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(402,5): warning MSB8038: Spectre mitigation is enabled but Spectre mitigated libraries are not found. Verify that the Visual Studio Workload includes the Spectre mitigated libraries. See https://aka.ms/Ofhn4c for more information. [E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj]
"E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(Link target) ->
LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib' [E:\ReactOS\Fork\reactos\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj]
1 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.16
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27027.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]