OpenCV 3.1 VS 2010 Cuda 7.5 TBB Configuration 配置

Download OpenCV 3.1

Download OpenCV Extra Modules

Download VS2010

Download CMake 3.2.0

Download Cuda 7.5

Download GPU Computing SDK 4.0

Download Intel TBB

I assume you've already installed all above correctly.

Compile the OpenCV:

Start CMake 3.2.0, fill the source and destination:

source: C:/opencv3.1/sources

destination: C:/opencv3.1/VS2010

Click Configure and use Visual Studio 10 2010 Win64 to complie.

Note: If you want to use Cuda, you must use x64 complier

When first configure is done, select Grouped and Advanced.

CMAKE_INSTALL_PREFIX        [C:/opencv3.1/VS2010_install]  
OPENCV_EXTRA_MODULES_PATH    [C:/opencv3.1/opencv_contrib/modules]  

Check WITH_CUDA, WITH_CUBLAS, WITH_TBB or any other you think necessary.

click Configure again.

After configure is done (No errors show), click Generate.

Go back to your build folder, open OpenCV.sln, right click ALL_BUILD, choose Rebuild.

Wait a long time for make process, have a cup of coffee :)

After rebuild is done, right click INSTALL, choose Build.

Now, the configuration is done, enjoy it :)

Add in the system Path:

C:\opencv3.1\VS2010_install\x86\vc10\bin

Create a new empty project,

Project->Project Property->Configuration Properties->VC++Directories ->Include Directories:

C:\opencv3.1\VS2010_install\include
C:\opencv3.1\VS2010_install\include\opencv
C:\opencv3.1\VS2010_install\include\opencv2

Project->Project Property->Configuration Properties->VC++Directories ->Library Directories:

C:\opencv3.1\VS2010_install\x86\vc10\lib

Project->Project Property->Configuration Properties->Linker->Input: (Release Mode)

opencv_calib3d310.lib
opencv_core310.lib
opencv_features2d310.lib
opencv_flann310.lib
opencv_highgui310.lib
opencv_imgcodecs310.lib
opencv_imgproc310.lib
opencv_ml310.lib
opencv_objdetect310.lib
opencv_photo310.lib
opencv_shape310.lib
opencv_stitching310.lib
opencv_superres310.lib
opencv_ts310.lib
opencv_video310.lib
opencv_videoio310.lib
opencv_videostab310.lib
opencv_viz310.lib

If build with extra module, add the following items:

opencv_aruco310.lib
opencv_bgsegm310.lib
opencv_bioinspired310.lib
opencv_calib3d310.lib
opencv_ccalib310.lib
opencv_core310.lib
opencv_datasets310.lib
opencv_dpm310.lib
opencv_face310.lib
opencv_features2d310.lib
opencv_flann310.lib
opencv_fuzzy310.lib
opencv_highgui310.lib
opencv_imgcodecs310.lib
opencv_imgproc310.lib
opencv_line_descriptor310.lib
opencv_ml310.lib
opencv_objdetect310.lib
opencv_photo310.lib
opencv_plot310.lib
opencv_reg310.lib
opencv_rgbd310.lib
opencv_saliency310.lib
opencv_shape310.lib
opencv_stereo310.lib
opencv_stitching310.lib
opencv_structured_light310.lib
opencv_superres310.lib
opencv_surface_matching310.lib
opencv_text310.lib
opencv_tracking310.lib
opencv_ts310.lib
opencv_video310.lib
opencv_videoio310.lib
opencv_videostab310.lib
opencv_xfeatures2d310.lib
opencv_ximgproc310.lib
opencv_xobjdetect310.lib

上一篇:Mybatis学习(七)————— mybatis的逆向工程的配置详解


下一篇:Spring和Hibernate集成的HibernateTemplate的一些常用方法总结