查看: 776|回复: 4

cmake和vs安装失败总是显示出错怎么办

[复制链接]

该用户从未签到

发表于 2016-3-4 20:42:51 | 显示全部楼层 |阅读模式
The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10 2010
Check for working C compiler using: Visual Studio 10 2010 -- broken
CMake Error at F:/Program Files/CMake/share/cmake-3.4/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "F:/vs2010/VC/bin/cl.exe" is not able to compile a simple
  test program.

  It fails with the following output:

   Change Dir: I:/OSG1/OpenSceneGraph-3.2.0/build/CMakeFiles/CMakeTmp

  

  Run Build
  Command:"C:/windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe"
  "cmTC_c2e9f.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=10.0"

  Microsoft(R) ���������汾 4.0.30319.18408


  [Microsoft .NET Framework �汾 4.0.30319.18408]


  ��Ȩ����(C) Microsoft Corporation 2007����������Ȩ����


  


  ��������ʱ��Ϊ 04/03/2016 20:38:25��


  �ڵ� 1
  �ϵ���Ŀ��I:\OSG1\OpenSceneGraph-3.2.0\build\CMakeFiles\CMakeTmp\cmTC_c2e9f.vcxproj��(Ĭ��Ŀ��)��



  PrepareForBuild:


    ���ڴ���Ŀ¼��cmTC_c2e9f.dir\Debug\����

    ���ڴ���Ŀ¼��I:\OSG1\OpenSceneGraph-3.2.0\build\CMakeFiles\CMakeTmp\Debug\����


  InitializeBuildStatus:


    ���ڴ�����cmTC_c2e9f.dir\Debug\cmTC_c2e9f.unsuccessfulbuild������Ϊ��ָ����AlwaysCreate����


  ClCompile:


    F:\vs2010\VC\bin\CL.exe /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"cmTC_c2e9f.dir\Debug\\" /Fd"cmTC_c2e9f.dir\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c

    ���� 80x86 �� Microsoft (R) 32 λ C/C++ �Ż������� 16.00.30319.01 ��

    ��Ȩ����(C) Microsoft Corporation����������Ȩ����

   

    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"cmTC_c2e9f.dir\Debug\\" /Fd"cmTC_c2e9f.dir\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c

   

    testCCompiler.c


  ManifestResourceCompile:


    C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTC_c2e9f.dir\Debug\cmTC_c2e9f.exe.embed.manifest.res" cmTC_c2e9f.dir\Debug\cmTC_c2e9f_manifest.rc


  Link:


    F:\vs2010\VC\bin\link.exe /ERRORREPORTUEUE /OUT:"I:\OSG1\OpenSceneGraph-3.2.0\build\CMakeFiles\CMakeTmp\Debug\cmTC_c2e9f.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTC_c2e9f.dir\Debug\cmTC_c2e9f.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"I:/OSG1/OpenSceneGraph-3.2.0/build/CMakeFiles/CMakeTmp/Debug/cmTC_c2e9f.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"I:/OSG1/OpenSceneGraph-3.2.0/build/CMakeFiles/CMakeTmp/Debug/cmTC_c2e9f.lib" /MACHINE:X86 cmTC_c2e9f.dir\Debug\cmTC_c2e9f.exe.embed.manifest.res

    cmTC_c2e9f.dir\Debug\testCCompiler.obj  /machine:X86 /debug


  LINK : fatal error LNK1123:
  [I:\OSG1\OpenSceneGraph-3.2.0\build\CMakeFiles\CMakeTmp\cmTC_c2e9f.vcxproj]



  
  ������������Ŀ��I:\OSG1\OpenSceneGraph-3.2.0\build\CMakeFiles\CMakeTmp\cmTC_c2e9f.vcxproj��(Ĭ��Ŀ��)�IJ���
  - ʧ�ܡ�


  


  ����ʧ�ܡ�


  


  
  ��I:\OSG1\OpenSceneGraph-3.2.0\build\CMakeFiles\CMakeTmp\cmTC_c2e9f.vcxproj��(Ĭ��Ŀ��)
  (1) ->


  (Link Ŀ��) ->


    LINK : fatal error LNK1123:  [I:\OSG1\OpenSceneGraph-3.2.0\build\CMakeFiles\CMakeTmp\cmTC_c2e9f.vcxproj]


  


      0 ���

      1 ������


  


  ����ʱ�� 00:00:06.26


  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:47 (PROJECT)


Configuring incomplete, errors occurred!
See also "I:/OSG1/OpenSceneGraph-3.2.0/build/CMakeFiles/CMakeOutput.log".
See also "I:/OSG1/OpenSceneGraph-3.2.0/build/CMakeFiles/CMakeError.log".

该用户从未签到

发表于 2016-3-8 21:50:28 | 显示全部楼层
看楼主问题和我的有些类似,我也是fatal error 1123.我出错是因为新装了vs2012后对vs2010的影响,因为一个文件更新了,详细的方案可以看这里,http://www.cnblogs.com/newpanderking/articles/3372969.html
http://blog.csdn.net/kevin_mqj/article/details/22981873

该用户从未签到

 楼主| 发表于 2016-3-17 19:49:44 | 显示全部楼层
rookiel 发表于 2016-3-8 21:50
看楼主问题和我的有些类似,我也是fatal error 1123.我出错是因为新装了vs2012后对vs2010的影响,因为一个 ...

该用户从未签到

发表于 2016-3-17 19:59:40 | 显示全部楼层

该用户从未签到

 楼主| 发表于 2016-3-18 10:33:56 | 显示全部楼层

已经解决
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表