CMake 2.8.10.2 Windows 용 Visual Studio 2012 (Windows 7)에서 Visual Studio 2012를 사용하여 프로젝트 구성을 거부했습니다. CMake는 Microsoft 컴파일러에서 더 이상 지원하지 않는 설정을 일부 추가합니다. 옵션 구문 오류 LINK : 치명적인 오류 LNK1117 :Visual Studio 2012/2013에 CMake가 깨졌습니다.
는 내가 해결 방법이 있습니까 시도하고 아주 기본적인 cmake 파일
cmake_minimum_required (VERSION 2.6)
add_executable(test test.cpp)
과 같은 결과를 얻었다 '매니페스트 포함'?
출력 창 쇼 :
The C compiler identification is MSVC 17.0.51106.1
The CXX compiler identification is MSVC 17.0.51106.1
Check for working C compiler using: Visual Studio 11
Check for working C compiler using: Visual Studio 11 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
11.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/tmp/testCmake/build/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~2.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec3122367237
Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.51106.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec3122367237, Configuration:
Debug Win32 ------
1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01
for 80x86
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
/Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec3122367237.dir\Debug\\"
/Fd"C:/tmp/testCmake/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3122367237.pdb"
/Gd /TC /analyze- /errorReport:prompt /Zm1000 testCCompiler.c
1>
1> testCCompiler.c
1>LINK : fatal error LNK1117: syntax error in option 'manifest:embed'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
Configuring incomplete, errors occurred!
저는 여러 프로젝트에서 VS2012를 1 개월 이상 사용했습니다. VTK, ITK, DCMTK, GDCM 모두 내 코드뿐만 아니라 잘 빌드됩니다. 나는 CMake 2.8.10.2를 사용하고있다. 비록 내가 거의 32 비트를 더 이상 만들지는 않지만. – drescherjm
저는 CMake를 Visual Studio 2012와 함께 사용해도 문제없이 꽤 오랫동안 사용했습니다. 며칠 전 Visual Studio를 다시 설치하고 최신 업데이트를 설치 한 다음 문제가 발생했습니다. – jgaa
오류 메시지에서 : cl.exe (VS C++ 컴파일러)를 찾을 수 없습니다 - cl.exe는 어디에 설치되어 있습니까? 컴파일러가 작동하는지 알아 보려면 cl (http://stackoverflow.com/questions/7865432/command-line-compile-using-cl-exe)에서 설명한대로 명령 줄을 사용하여 컴파일 해보십시오. 어쩌면 VS 설치가 엉망이 될 수도 있습니다. – Vertexwahn