visual studio2010问题导致CMake执行例子时出错Error in configuration process,project files may be invalid
来源:互联网 发布:留学生回国 知乎 编辑:程序博客网 时间:2024/05/20 03:07
详细错误:
弹出框“Error in configuration process,project files may be invalid”
The CXX compiler identification is unknown
The C compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- broken
CMakeErrorat D:/OpenCV/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "D:/vs2010 setup/VC/bin/cl.exe" is not able to compile a
simple test program.
It fails with the following output:
Change Dir: D:/OpenCV/binaries/CMakeFiles/CMakeTmp
Run Build Command:D:\VS2010~1\Common7\IDE\devenv.com CMAKE_TRY_COMPILE.sln
/build Debug /project cmTryCompileExec3397238485
Microsoft (R) Visual Studio Version 10.0.30319.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec3397238485, Configuration:
Debug Win32 ------
1>Build started 2013/3/11 14:15:57.
1>PrepareForBuild:
1> Creating directory "D:\OpenCV\binaries\CMakeFiles\CMakeTmp\Debug\".
1>InitializeBuildStatus:
1> Creating
"cmTryCompileExec3397238485.dir\Debug\cmTryCompileExec3397238485.unsuccessfulbuild"
because "AlwaysCreate" was specified.
1>ClCompile:
1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.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"cmTryCompileExec3397238485.dir\Debug\\"
/Fd"D:/OpenCV/binaries/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3397238485.pdb"
/Gd /TC /analyze- /errorReport:prompt testCCompiler.c /Zm1000
1>
1> testCCompiler.c
1>LINK : fatal error LNK1123: failure during conversion to COFF: file
invalid or corrupt
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.16
========== 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):
CMakeLists.txt:61 (project)
Configuring incomplete, errors occurred!
其实主要就是看这条(fatal error)
>LINK : fatal error LNK1123: failure during conversion to COFF: file
invalid or corrupt
即LINK:fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
解决办法:
查看计算机是否为64bit操作系统,如是,继续如下操作。
查找是否有两个cvtres.exe。
C:\Program Files(x86)\Microsoft Visual Studio 10.0\vc\bin\cvtres.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe
右键属性—详细信息, 查看两者版本号,删除/重命名较旧的版本,或者重新设置Path变量。
治本的办法是第二步,删除旧版本的cvtres.exe后,就不需要每次都设置配置了。
http://blog.csdn.net/kevin_mqj/article/details/22981873
https://zhidao.baidu.com/question/531299164.html
- visual studio2010问题导致CMake执行例子时出错Error in configuration process,project files may be invalid
- CMake编译时出现“error in configuration process project files may be invalid”
- 解决办法:CMake编译时出现“error in configuration process project files may be invalid”
- CMake error: error in configuration process, project files may be invalid
- CMake error: error in configuration process, project files may be invalid
- CMake error: error in configuration process, project files may be invalid
- cmake编译出现error in configuration process,project files may be invalid
- Cmake--Error in configuration process, project files maybe invalid
- 解决windows安装opencv中,出现问题:error configuration process, project files may be invalid
- Cmake编译opencv3.1出现project files may be invalid,编译后的opencv3.1的debug附加依赖项在最后
- web项目部署时总是提示May be locked by another process. Error copying file
- The GitHub credentials in the macOS keychain may be invalid.
- maven + Mybatis 运行时The error may exist in SQL Mapper Configuration
- 关于C++中报Error:new types may not be defined in a return type问题
- 在Visual Studio2010用Cmake配置PCL1.5遇到的问题和解决方法
- Compilation Error:function 'NAME_IN' may not be used in SQL
- Visual Studio2010 Reporting开发问题
- java.lang.RuntimeException: Errors accessing files. There may be spaces in your image's filename.
- 对自己的反省和总结
- 多种方法获取json中的键(key)与值(value)
- python3 [爬虫入门实战]scrapy爬取盘多多五百万数据并存mongoDB
- CSS 伪类的效果
- [HDU4366]Successor 线段树
- visual studio2010问题导致CMake执行例子时出错Error in configuration process,project files may be invalid
- POJ1651 Multiplication Puzzle
- python 读写CSV 文件
- PHP连接mysql后pcntl_fork产生的错误
- 函数指针小结
- dubbo配置详解
- 段落中字体围绕第一个字 或者字体围绕图片
- mysql的C API函数简介
- 上传excel文件存到服务器并且读取sheet