DCMTK3.6.0(MD支持库)安装过程中通过CMake编译时出现的问题

错误如下:

DCMTK3.6.0(MD支持库)安装过程中通过CMake编译时出现的问题

点击Configure出现错误弹窗

DCMTK3.6.0(MD支持库)安装过程中通过CMake编译时出现的问题

Check for working C compiler using: Visual Studio 10 Win64

Check for working C compiler using: Visual Studio 10 Win64 -- broken

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):

The C compiler "cl" is not able to compile a simple test program.

 

It fails with the following output:

 

Change Dir: C:/DCMTK/dcmtk-bin/CMakeFiles/CMakeTmp

 

 

 

Run Build Command:C:\Program Files (x86)\MICROS~3.0\Common7\IDE\devenv.com

CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec1469790464

 

 

 

Microsoft(R) Visual Studio 10.0.30319.1 °æ¡£

 

°æÈ¨ËùÓÐ(C) Microsoft Corp¡£±£ÁôËùÓÐȨÀû¡£

 

1>------ ÒÑÆô¶¯Éú³É: ÏîÄ¿: cmTryCompileExec1469790464, ÅäÖÃ: Debug x64

------

 

1>Éú³ÉÆô¶¯Ê±¼äΪ 2016/11/22 9:05:38¡£

 

1>InitializeBuildStatus:

 

1>

ÕýÔÚ´´½¨¡°cmTryCompileExec1469790464.dir\Debug\cmTryCompileExec1469790464.unsuccessfulbuild¡±£¬ÒòΪÒÑÖ¸¶¨¡°AlwaysCreate¡±¡£

 

 

1>ClCompile:

 

1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64

 

1> Copyright (C) Microsoft Corporation. All rights reserved.

 

1>

 

1> cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D

"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise

/Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec1469790464.dir\Debug\\"

/Fd"C:/DCMTK/dcmtk-bin/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec1469790464.pdb"

/Gd /TC /errorReport:prompt

"C:\DCMTK\dcmtk-bin\CMakeFiles\CMakeTmp\testCCompiler.c" /Zm1000

 

1>

 

1> testCCompiler.c

 

1>LINK : fatal error LNK1123: ת»»µ½ COFF ÆÚ¼äʧ°Ü: ÎļþÎÞЧ»òËð»µ

 

1>

 

1>Éú³Éʧ°Ü¡£

 

1>

 

1>ÒÑÓÃʱ¼ä 00:00:00.49

 

========== Éú³É: ³É¹¦ 0 ¸ö£¬Ê§°Ü 1 ¸ö£¬×îР0 ¸ö£¬Ìø¹ý 0 ¸ö ==========

 

 

 

 

 

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt:2 (PROJECT)

 

 

Configuring incomplete, errors occurred!

转载于:https://my.oschina.net/qtplus/blog/791808