问题描述
我是按照网上的教程弄的用其他的电脑是成功的,但是用我自己的电脑总是会出现错误。而且不是很明白错误的原因,求解啊。
解决方案
解决方案二:
这是cmake控制台的输出内容TheCcompileridentificationisMSVC16.0.30319.1TheCXXcompileridentificationisMSVC16.0.30319.1CheckforworkingCcompilerusing:VisualStudio102010CheckforworkingCcompilerusing:VisualStudio102010--brokenCMakeErroratC:/ProgramFiles(x86)/CMake/share/cmake-3.2/Modules/CMakeTestCCompiler.cmake:61(message):TheCcompiler"C:/ProgramFiles(x86)/MicrosoftVisualStudio10.0/VC/bin/cl.exe"isnotabletocompileasimpletestprogram.Itfailswiththefollowingoutput:ChangeDir:D:/OSG/OpenSceneGraph/CMakeFiles/CMakeTmpRunBuildCommand:"C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe""cmTryCompileExec321932735.vcxproj""/p:Configuration=Debug""/p:VisualStudioVersion=10.0"Microsoft(R)���������汾4.0.30319.36264[Microsoft.NETFramework�汾4.0.30319.36264]��Ȩ����(C)MicrosoftCorporation2007����������Ȩ������������ʱ��Ϊ2015/3/1614:06:30���ڵ�1�ϵ���Ŀ��D:OSGOpenSceneGraphCMakeFilesCMakeTmpcmTryCompileExec321932735.vcxproj��(Ĭ��Ŀ��)��PrepareForBuild:���ڴ���Ŀ¼��cmTryCompileExec321932735.dirDebug�������ڴ���Ŀ¼��D:OSGOpenSceneGraphCMakeFilesCMakeTmpDebug����InitializeBuildStatus:���ڴ�����cmTryCompileExec321932735.dirDebugcmTryCompileExec321932735.unsuccessfulbuild������Ϊ��ָ����AlwaysCreate����ClCompile:C:ProgramFiles(x86)MicrosoftVisualStudio10.0VCbinCL.exe/c/Zi/W1/WX-/Od/Ob0/Oy-/D_DEBUG/D"CMAKE_INTDIR="Debug""/D_MBCS/Gm-/RTC1/MDd/GS/fp:precise/Zc:wchar_t/Zc:forScope/Fo"cmTryCompileExec321932735.dirDebug\"/Fd"cmTryCompileExec321932735.dirDebugvc100.pdb"/Gd/TC/analyze-/errorReport:queuetestCCompiler.c����80x86��Microsoft(R)32λC/C++�Ż�������16.00.30319.01����Ȩ����(C)MicrosoftCorporation����������Ȩ����cl/c/Zi/W1/WX-/Od/Ob0/Oy-/D_DEBUG/D"CMAKE_INTDIR="Debug""/D_MBCS/Gm-/RTC1/MDd/GS/fp:precise/Zc:wchar_t/Zc:forScope/Fo"cmTryCompileExec321932735.dirDebug\"/Fd"cmTryCompileExec321932735.dirDebugvc100.pdb"/Gd/TC/analyze-/errorReport:queuetestCCompiler.ctestCCompiler.cManifestResourceCompile:C:ProgramFiles(x86)MicrosoftSDKsWindowsv7.0Abinrc.exe/nologo/fo"cmTryCompileExec321932735.dirDebugcmTryCompileExec321932735.exe.embed.manifest.res"cmTryCompileExec321932735.dirDebugcmTryCompileExec321932735_manifest.rcLink:C:ProgramFiles(x86)MicrosoftVisualStudio10.0VCbinlink.exe/ERRORREPORT:QUEUE/OUT:"D:OSGOpenSceneGraphCMakeFilesCMakeTmpDebugcmTryCompileExec321932735.exe"/INCREMENTAL/NOLOGOkernel32.libuser32.libgdi32.libwinspool.libshell32.libole32.liboleaut32.libuuid.libcomdlg32.libadvapi32.lib/MANIFEST/ManifestFile:"cmTryCompileExec321932735.dirDebugcmTryCompileExec321932735.exe.intermediate.manifest"/MANIFESTUAC:"level='asInvoker'uiAccess='false'"/DEBUG/PDB:"D:/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec321932735.pdb"/SUBSYSTEM:CONSOLE/TLBID:1/DYNAMICBASE/NXCOMPAT/IMPLIB:"D:/OSG/OpenSceneGraph/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec321932735.lib"/MACHINE:X86cmTryCompileExec321932735.dirDebugcmTryCompileExec321932735.exe.embed.manifest.rescmTryCompileExec321932735.dirDebugtestCCompiler.obj/machine:X86/debugLINK:fatalerrorLNK1123:ת����COFF�ڼ�ʧ��:�ļ���Ч������[D:OSGOpenSceneGraphCMakeFilesCMakeTmpcmTryCompileExec321932735.vcxproj]������������Ŀ��D:OSGOpenSceneGraphCMakeFilesCMakeTmpcmTryCompileExec321932735.vcxproj��(Ĭ��Ŀ��)�IJ���-ʧ�ܡ�����ʧ�ܡ���D:OSGOpenSceneGraphCMakeFilesCMakeTmpcmTryCompileExec321932735.vcxproj��(Ĭ��Ŀ��)(1)->(LinkĿ��)->LINK:fatalerrorLNK1123:ת����COFF�ڼ�ʧ��:�ļ���Ч������[D:OSGOpenSceneGraphCMakeFilesCMakeTmpcmTryCompileExec321932735.vcxproj]0���1����������ʱ��00:00:00.43CMakewillnotbeabletocorrectlygeneratethisproject.CallStack(mostrecentcallfirst):CMakeLists.txt:52(PROJECT)Configuringincomplete,errorsoccurred!Seealso"D:/OSG/OpenSceneGraph/CMakeFiles/CMakeOutput.log".Seealso"D:/OSG/OpenSceneGraph/CMakeFiles/CMakeError.log".
解决方案三:
楼主,您是怎么解决的,我也遇到同样的问题,在别的机器上配置编译都没有问题,在我的电脑上就不可以。
解决方案四:
你解决了这个问题没有?
解决方案五:
cmake在64位下的兼容性问题