1. 程式人生 > >VS2013匯入opencv320配置屬性檔案

VS2013匯入opencv320配置屬性檔案

1.

環境變數
D:\Libraries\OpenCV320\msvc2013_64\x64\vc12\bin

登出,生效 
opencv320.props 配置屬性檔案

<?xml version="1.0" encoding="utf-8"?>  
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  
  <ImportGroup Label="PropertySheets" />  
  <PropertyGroup Label="UserMacros"
/> <PropertyGroup> <IncludePath>D:\Libraries\OpenCV320\msvc2013_64\include;$(IncludePath)</IncludePath> <LibraryPath Condition="'$(Platform)'=='X64'">D:\Libraries\OpenCV320\msvc2013_64\x64\vc12\lib;$(LibraryPath)</LibraryPath> </PropertyGroup> <ItemDefinitionGroup> <Link Condition="'$(Configuration)'=='Debug'"
> <AdditionalDependencies>opencv_calib3d320d.lib;opencv_core320d.lib; opencv_cudaarithm320d.lib;opencv_cudabgsegm320d.lib;opencv_cudacodec320d.lib; opencv_cudafeatures2d320d.lib;opencv_cudafilters320d.lib;opencv_cudaimgproc320d.lib; opencv_cudalegacy320d.lib;opencv_cudaobjdetect320d.lib
;opencv_cudaoptflow320d.lib; opencv_cudastereo320d.lib;opencv_cudawarping320d.lib;opencv_cudev320d.lib; opencv_features2d320d.lib;opencv_flann320d.lib;opencv_highgui320d.lib; opencv_imgcodecs320d.lib;opencv_imgproc320d.lib;opencv_ml320d.lib; opencv_objdetect320d.lib;opencv_photo320d.lib;opencv_shape320d.lib; opencv_stitching320d.lib;opencv_superres320d.lib;opencv_video320d.lib; opencv_videoio320d.lib;opencv_videostab320d.lib; opencv_aruco320d.lib;opencv_bgsegm320d.lib;opencv_bioinspired320d.lib; opencv_ccalib320d.lib;opencv_datasets320d.lib;opencv_dnn320d.lib; opencv_dpm320d.lib;opencv_face320d.lib;opencv_fuzzy320d.lib; opencv_line_descriptor320d.lib;opencv_optflow320d.lib;opencv_phase_unwrapping320d.lib; opencv_plot320d.lib;opencv_reg320d.lib;opencv_rgbd320d.lib;opencv_saliency320d.lib; opencv_stereo320d.lib;opencv_structured_light320d.lib;opencv_superres320d.lib; opencv_surface_matching320d.lib;opencv_text320d.lib;opencv_tracking320d.lib; opencv_xfeatures2d320d.lib;opencv_ximgproc320d.lib;opencv_xobjdetect320d.lib; opencv_xphoto320d.lib; %(AdditionalDependencies)</AdditionalDependencies> </Link> <Link Condition="'$(Configuration)'=='Release'"> <AdditionalDependencies>opencv_calib3d320.lib;opencv_core320.lib; opencv_cudaarithm320.lib;opencv_cudabgsegm320.lib;opencv_cudacodec320.lib; opencv_cudafeatures2d320.lib;opencv_cudafilters320.lib;opencv_cudaimgproc320.lib; opencv_cudalegacy320.lib;opencv_cudaobjdetect320.lib;opencv_cudaoptflow320.lib; opencv_cudastereo320.lib;opencv_cudawarping320.lib;opencv_cudev320.lib; opencv_features2d320.lib;opencv_flann320.lib;opencv_highgui320.lib; opencv_imgcodecs320.lib;opencv_imgproc320.lib;opencv_ml320.lib; opencv_objdetect320.lib;opencv_photo320.lib;opencv_shape320.lib; opencv_stitching320.lib;opencv_superres320.lib;opencv_video320.lib; opencv_videoio320.lib;opencv_videostab320.lib; opencv_aruco320.lib;opencv_bgsegm320.lib;opencv_bioinspired320.lib; opencv_ccalib320.lib;opencv_datasets320.lib;opencv_dnn320.lib; opencv_dpm320.lib;opencv_face320.lib;opencv_fuzzy320.lib; opencv_line_descriptor320.lib;opencv_optflow320.lib;opencv_phase_unwrapping320.lib; opencv_plot320.lib;opencv_reg320.lib;opencv_rgbd320.lib;opencv_saliency320.lib; opencv_stereo320.lib;opencv_structured_light320.lib;opencv_superres320.lib; opencv_surface_matching320.lib;opencv_text320.lib;opencv_tracking320.lib; opencv_xfeatures2d320.lib;opencv_ximgproc320.lib;opencv_xobjdetect320.lib; opencv_xphoto320.lib; %(AdditionalDependencies)</AdditionalDependencies> </Link> </ItemDefinitionGroup> <ItemGroup /> </Project>
2.
    vs2012新建專案->visual c++->win32控制檯應用
程式->下一步->選擇空專案完成-->新建.cpp

3.調整編譯位數 
    vs選單欄選擇專案->屬性->右側配置管理器->平臺的下
拉勾選擇新建->選擇x64->確定

4.屬性管理器(64位的是操作Debug|win64,Release|win64)

5.接下來直接匯入配置屬性檔案opencv320.props

具體是:
       Debug|x64右鍵->新增現有屬性表—>選中opencv320.props
       Release|x64右鍵->新增現有屬性表—>選中opencv320.props

http://m.blog.csdn.net/guduruyu/article/details/75371001

CUDA 8.0 + VS2013 + win7 x64開發環境搭建http://blog.csdn.net/lvfeiya/article/details/53325784