VS2019源码编译工程代码OpenCV2.4.13.6

  1. CMake官网下载最新版cmake
  2. Opencv官网下载2.4.13.6版本的sources源码压缩包
  3. 按照 OpenCV3.4 源码编译
  4. 打开工程代码,选择工程文件夹,以及编译后新建文件夹,Configure+Generate+Open Project
    VS2019源码编译工程代码OpenCV2.4.13.6_第1张图片
  5. 配置项目属性表

PS:工程代码编译过程中出现一个问题

CMake Warning at .../.../.../OpenCVConfig.cmake:166 (message):
Found OpenCV Windows Pack but it has no binaries compatible with your
configuration.

You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.

注释掉cMakeLists.txt文件中#FIND_PACKAGE(OpenCV 2.4.13.6 REQUIRED)一行即可、

参考:

OpenCV安装流程及从源码编译方法 + 配置VS
OpenCV学习:OpenCV源码编译(vc9)

你可能感兴趣的:(基础配置操作)