VS2013+OPENCV3.0.0配置纪要

环境变量配置

新建环境变量

OPENCV300
D:\DevelopmentSoftWare\OPENCV_3_0\opencv\build

添加至Path

;%OPENCV300%\x86\vc12\bin

1)选x86还是x64是看你需要编译的应用程序是32位还是64位的,并不是看你的计算机是不是32位系统,这里一般都是编译32位应用,一般选x86;

2)vc12对应vs 2013

项目属性配置

新建txt文件,重命名为“opencv300debug.props”,内容如下(按需替换包含目录、库目录等):


<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ImportGroup Label="PropertySheets" />
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup>
    <IncludePath>D:\DevelopmentSoftWare\OPENCV_3_0\opencv\build\include;D:\DevelopmentSoftWare\OPENCV_3_0\opencv\build\include\opencv;D:\DevelopmentSoftWare\OPENCV_3_0\opencv\build\include\opencv2;$(IncludePath)IncludePath>
    <LibraryPath>D:\DevelopmentSoftWare\OPENCV_3_0\opencv\build\x86\vc12\lib;$(LibraryPath)LibraryPath>
  PropertyGroup>
  <ItemDefinitionGroup>
    <Link>
      <AdditionalDependencies>opencv_ts300.lib;opencv_ts300d.lib;opencv_world300.lib;opencv_world300d.lib;%(AdditionalDependencies)AdditionalDependencies>
    Link>
  ItemDefinitionGroup>
  <ItemGroup />
Project>

新建txt文件,命名为“opencv300debug.props”,内容如下(按需替换包含目录、库目录等):

你可能感兴趣的:(【,C,+,+,】,【开发环境】)