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
原文地址:http://blog.csdn.net/lonelyrains/article/details/46407705