首页 > 代码库 > VS2010 Cmake OpenCVC2.4.8

VS2010 Cmake OpenCVC2.4.8

本文由 @lonelyrains 出品。转载请注明出处。

 
文章链接: http://blog.csdn.net/lonelyrains/article/details/46407705


1、Cmake用法:

http://blog.163.com/jacky_ling0/blog/static/1373925712011072375418/


2、报错:

1)Could not copy from  路径中含有中文 http://blog.csdn.net/godenlove007/article/details/8241009

2)The C compiler  is not able to compile a  simple test program

LINK : fatal error LNK1123: failure during conversion to COFF: file  invalid or corrupt

把Microsoft Visual Studio 10.0\VC\bin里的cvtres.exe删除就好了。


3、设置OpenCV支持OpenGL

打开CMake的GUI界面,勾选WITH_OPENGL,再Configure、Generate一遍


4、终于OpenCV编译、Sample调试调用:http://www.07net01.com/2014/09/66490.html

VS2010 Cmake OpenCVC2.4.8