VS 2010 und CMake: 'rc' ist nicht als ein interner oder externer Befehl
Ich versuche ein Projekt bauen, um auf Windows-10 - Home mit VS 2010 und CMake.
Ich bin immer der folgende Fehler:
zutil.c
lib -nologo -out:zlib.lib adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj gzwrite.obj infback.obj inflate.obj inftrees.obj inffast.obj trees.obj uncompr.obj zutil.obj
rc /dWIN32 /r /fozlib1.res ./win32/zlib1.rc
'rc' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'rc' : return code '0x1'
Stop.
*.dll
The system cannot find the file specified.
0 file(s) copied.
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
The system cannot find the file specified.
-- The C compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- broken
CMake Error at C:/Program Files (x86)/CMake/share/cmake3.6/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Project/build/libpng-1.6.7-build/CMakeFiles/CMakeTmp
Weiß jemand, was die Ursache:
'rc' is not recognized as an internal or external command,
operable program or batch file."
wäre?
Ich gehe davon aus, dass die verursachen auch die cl.exe gebrochen ist der Fehler?
Du musst angemeldet sein, um einen Kommentar abzugeben.
Das Letzte mal hatte ich dieses problem war bei meinem Visual Studio 2012 Professional standard-installation nicht installieren Sie alle Windows-SDK (das Fehlerprotokoll zeigte eine fehlende SDK-header).
Zur überprüfung Ihrer SDK-installation z.B. überprüfen, dass Sie eine Ressource-Compiler installiert. Es sollte in einem ähnlichen Pfad wie:
Da war ich fehlt diese - oder genauer, alle SDK - I installiert Windows-8.1-SDK (seit Visual Studio 2012 ist es Ziel Windows-8.x) und voila mein CMake in der Lage war, wieder zu kompilieren, die (test -) Programme. Ich denke, für Visual Studio 2010 standardmäßig wäre das Windows 7.0 a SDK und für die Visual Studio 2015, es wäre Windows 10 SDK mit Universal C-Runtime.
Referenz