1,前言
笔者之前曾写过使用CMake《
OpenCV 2.4.6在VS2010的重编译》一文,本次因项目需要,更新使用OpenCV2.4.8版本,发现重编译出错。
2,软件
opencv-2.4.8.exe
cmake-3.3.0-rc2-win32-x86.exe
Visual Studio 10 2010 Win64
3,重编译过程
3.1解压OpenCV,假设解压目录为D:/,则解压后保存在D:/opencv下面;
3.2打开CMake,
Where is the source code: 选择OpenCV路径下的sources文件夹路径(即D:/opencv/sources),否则出错;
Where is build the binaries: 设置CMake输出路径;
点击按钮"Configure",弹出对话框,选择"Specify the generator for this project": Visual Studio 10 2010 Win64,勾选"Use default native compilers",点击按钮"Finish",开始进行配置。