close

新版OpenCV 2.4.8發行囉!!!

直接Extract到C:\OpenCV-2.4.8\

image

花了5分多鐘解壓縮

image

安裝步驟請各位先參考之前文章: 安裝Install OpenCV 2.4.7 with Visual Studio 2010

 

==============================分隔線========================================

安裝CMake

Windows (Win32 Installer)
cmake-2.8.12.1-win32-x86.exe

在C:\OpenCV-2.4.8\opencv\build\目錄夾下創建一個vs2012資料夾

image

新增次目錄x64和x86

image

開啟CMake

image

設定source code和編譯結果輸出(binaries)的路徑

image

設定configuration

image

下拉選單選擇 Visual Studio 11 Win64

image

   1: The CXX compiler identification is MSVC 17.0.50727.1
   2: The C compiler identification is MSVC 17.0.50727.1
   3: Check for working CXX compiler using: Visual Studio 11 Win64
   4: Check for working CXX compiler using: Visual Studio 11 Win64 -- works
   5: Detecting CXX compiler ABI info
   6: Detecting CXX compiler ABI info - done
   7: Check for working C compiler using: Visual Studio 11 Win64
   8: Check for working C compiler using: Visual Studio 11 Win64 -- works
   9: Detecting C compiler ABI info
  10: Detecting C compiler ABI info - done
  11: Performing Test HAVE_CXX_FSIGNED_CHAR
  12: Performing Test HAVE_CXX_FSIGNED_CHAR - Failed
  13: Performing Test HAVE_C_FSIGNED_CHAR
  14: Performing Test HAVE_C_FSIGNED_CHAR - Failed
  15: Checking for Windows Platform SDK
  16: Checking for Visual Studio 2012
  17: Looking for fseeko
  18: Looking for fseeko - not found
  19: Looking for unistd.h
  20: Looking for unistd.h - not found
  21: Looking for sys/types.h
  22: Looking for sys/types.h - found
  23: Looking for stdint.h
  24: Looking for stdint.h - found
  25: Looking for stddef.h
  26: Looking for stddef.h - found
  27: Check size of off64_t
  28: Check size of off64_t - failed
  29: Looking for assert.h
  30: Looking for assert.h - found
  31: Looking for fcntl.h
  32: Looking for fcntl.h - found
  33: Looking for io.h
  34: Looking for io.h - found
  35: Looking for jbg_newlen
  36: Looking for jbg_newlen - not found
  37: Looking for mmap
  38: Looking for mmap - not found
  39: Looking for search.h
  40: Looking for search.h - found
  41: Looking for string.h
  42: Looking for string.h - found
  43: Looking for unistd.h
  44: Looking for unistd.h - not found
  45: Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) (Required is at least version "2.0")
  46: Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
  47:  
  48: General configuration for OpenCV 2.4.8 =====================================
  49:   Version control:               unknown
  50:  
  51:   Platform:
  52:     Host:                        Windows 6.1 AMD64
  53:     CMake:                       2.8.12.1
  54:     CMake generator:             Visual Studio 11 Win64
  55:     CMake build tool:            C:/PROGRA~2/MICROS~3.0/Common7/IDE/devenv.com
  56:     MSVC:                        1700
  57:  
  58:   C/C++:
  59:     Built as dynamic libs?:      YES
  60:     C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe  (ver 17.0.50727.1)
  61:     C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /MD /O2 /Ob2 /D NDEBUG  /Zi
  62:     C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
  63:     C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe
  64:     C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /MD /O2 /Ob2 /D NDEBUG  /Zi
  65:     C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
  66:     Linker flags (Release):      /machine:x64   /INCREMENTAL:NO  /debug
  67:     Linker flags (Debug):        /machine:x64   /debug /INCREMENTAL 
  68:     Precompiled headers:         YES
  69:  
  70:   OpenCV modules:
  71:     To be built:                 core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts videostab
  72:     Disabled:                    world
  73:     Disabled by dependency:      -
  74:     Unavailable:                 androidcamera dynamicuda java python
  75:  
  76:   Windows RT support:            NO
  77:  
  78:   GUI: 
  79:     QT:                          NO
  80:     Win32 UI:                    YES
  81:     OpenGL support:              NO
  82:  
  83:   Media I/O: 
  84:     ZLib:                        build (ver 1.2.7)
  85:     JPEG:                        build (ver 62)
  86:     PNG:                         build (ver 1.5.12)
  87:     TIFF:                        build (ver 42 - 4.0.2)
  88:     JPEG 2000:                   build (ver 1.900.1)
  89:     OpenEXR:                     build (ver 1.7.1)
  90:  
  91:   Video I/O:
  92:     Video for Windows:           YES
  93:     DC1394 1.x:                  NO
  94:     DC1394 2.x:                  NO
  95:     FFMPEG:                      YES (prebuilt binaries)
  96:       codec:                     YES (ver 55.18.102)
  97:       format:                    YES (ver 55.12.100)
  98:       util:                      YES (ver 52.38.100)
  99:       swscale:                   YES (ver 2.3.100)
 100:       gentoo-style:              YES
 101:     OpenNI:                      NO
 102:     OpenNI PrimeSensor Modules:  NO
 103:     PvAPI:                       NO
 104:     GigEVisionSDK:               NO
 105:     DirectShow:                  YES
 106:     Media Foundation:            NO
 107:     XIMEA:                       NO
 108:     Intel PerC:                  NO
 109:  
 110:   Other third-party libraries:
 111:     Use IPP:                     NO
 112:     Use Eigen:                   NO
 113:     Use TBB:                     NO
 114:     Use OpenMP:                  NO
 115:     Use GCD                      NO
 116:     Use Concurrency              YES
 117:     Use C=:                      NO
 118:     Use Cuda:                    NO
 119:     Use OpenCL:                  YES
 120:  
 121:   OpenCL:
 122:     Version:                     dynamic
 123:     Include path:                C:/OpenCV-2.4.8/opencv/sources/3rdparty/include/opencl/1.2
 124:     Use AMD FFT:                 NO
 125:     Use AMD BLAS:                NO
 126:  
 127:   Python:
 128:     Interpreter:                 NO
 129:  
 130:   Java:
 131:     ant:                         NO
 132:     JNI:                         NO
 133:     Java tests:                  NO
 134:  
 135:   Documentation:
 136:     Build Documentation:         NO
 137:     Sphinx:                      NO
 138:     PdfLaTeX compiler:           NO
 139:  
 140:   Tests and samples:
 141:     Tests:                       YES
 142:     Performance tests:           YES
 143:     C/C++ Examples:              NO
 144:  
 145:   Install path:                  C:/OpenCV-2.4.8/opencv/build/vs2012/x64/install
 146:  
 147:   cvconfig.h is in:              C:/OpenCV-2.4.8/opencv/build/vs2012/x64
 148: -----------------------------------------------------------------
 149:  
 150: Configuring done

BUILD目錄

BUILD->BUILD_EXAMPLES打勾

BUILD->BUILD_TBB不打勾

image

WITH目錄

WITH->WITH_IPP打勾

WITH->WITH_OPENGL打勾

WITH->WITH_TBB打勾

image

按下configure按鈕

image

設定TBB路徑C:/tbb42_20131118oss/include

下載: Threading Building Blocks(Intel® TBB) 4.2 update 2

再次按下configure按鈕

image

再次按下configure按鈕

   1: Checking for Windows Platform SDK
   2: Checking for Visual Studio 2012
   3: found IPP: 6.0.167 [6.0]
   4: at: C:/Program Files/Intel/IPP/6.0.0.062/em64t
   5: IPP libs: ippvmmergedem64t.lib;ippvmemergedem64t.lib;ippccmergedem64t.lib;ippccemergedem64t.lib;ippcvmergedem64t.lib;ippcvemergedem64t.lib;ippimergedem64t.lib;ippiemergedem64t.lib;ippsmergedem64t.lib;ippsemergedem64t.lib;ippcoreem64tl.lib
   6: IPP libs: ippvmmergedem64t.lib;ippvmemergedem64t.lib;ippccmergedem64t.lib;ippccemergedem64t.lib;ippcvmergedem64t.lib;ippcvemergedem64t.lib;ippimergedem64t.lib;ippiemergedem64t.lib;ippsmergedem64t.lib;ippsemergedem64t.lib;ippcoreem64tl.lib
   7: Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) (Required is at least version "2.0")
   8: Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
   9:  
  10: General configuration for OpenCV 2.4.8 =====================================
  11:   Version control:               unknown
  12:  
  13:   Platform:
  14:     Host:                        Windows 6.1 AMD64
  15:     CMake:                       2.8.12.1
  16:     CMake generator:             Visual Studio 11 Win64
  17:     CMake build tool:            C:/PROGRA~2/MICROS~3.0/Common7/IDE/devenv.com
  18:     MSVC:                        1700
  19:  
  20:   C/C++:
  21:     Built as dynamic libs?:      YES
  22:     C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe  (ver 17.0.50727.1)
  23:     C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /MD /O2 /Ob2 /D NDEBUG  /Zi
  24:     C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
  25:     C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe
  26:     C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /MD /O2 /Ob2 /D NDEBUG  /Zi
  27:     C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
  28:     Linker flags (Release):      /machine:x64   /INCREMENTAL:NO  /debug
  29:     Linker flags (Debug):        /machine:x64   /debug /INCREMENTAL 
  30:     Precompiled headers:         YES
  31:  
  32:   OpenCV modules:
  33:     To be built:                 core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts videostab
  34:     Disabled:                    world
  35:     Disabled by dependency:      -
  36:     Unavailable:                 androidcamera dynamicuda java python
  37:  
  38:   Windows RT support:            NO
  39:  
  40:   GUI: 
  41:     QT:                          NO
  42:     Win32 UI:                    YES
  43:     OpenGL support:              YES (glu32 opengl32)
  44:  
  45:   Media I/O: 
  46:     ZLib:                        build (ver 1.2.7)
  47:     JPEG:                        build (ver 62)
  48:     PNG:                         build (ver 1.5.12)
  49:     TIFF:                        build (ver 42 - 4.0.2)
  50:     JPEG 2000:                   build (ver 1.900.1)
  51:     OpenEXR:                     build (ver 1.7.1)
  52:  
  53:   Video I/O:
  54:     Video for Windows:           YES
  55:     DC1394 1.x:                  NO
  56:     DC1394 2.x:                  NO
  57:     FFMPEG:                      YES (prebuilt binaries)
  58:       codec:                     YES (ver 55.18.102)
  59:       format:                    YES (ver 55.12.100)
  60:       util:                      YES (ver 52.38.100)
  61:       swscale:                   YES (ver 2.3.100)
  62:       gentoo-style:              YES
  63:     OpenNI:                      NO
  64:     OpenNI PrimeSensor Modules:  NO
  65:     PvAPI:                       NO
  66:     GigEVisionSDK:               NO
  67:     DirectShow:                  YES
  68:     Media Foundation:            NO
  69:     XIMEA:                       NO
  70:     Intel PerC:                  NO
  71:  
  72:   Other third-party libraries:
  73:     Use IPP:                     6.0 [6.0.167]
  74:          at:                     C:/Program Files/Intel/IPP/6.0.0.062/em64t
  75:     Use Eigen:                   NO
  76:     Use TBB:                     YES (ver 4.2 interface 7002)
  77:     Use OpenMP:                  NO
  78:     Use GCD                      NO
  79:     Use Concurrency              NO
  80:     Use C=:                      NO
  81:     Use Cuda:                    NO
  82:     Use OpenCL:                  YES
  83:  
  84:   OpenCL:
  85:     Version:                     dynamic
  86:     Include path:                C:/OpenCV-2.4.8/opencv/sources/3rdparty/include/opencl/1.2
  87:     Use AMD FFT:                 NO
  88:     Use AMD BLAS:                NO
  89:  
  90:   Python:
  91:     Interpreter:                 NO
  92:  
  93:   Java:
  94:     ant:                         NO
  95:     JNI:                         NO
  96:     Java tests:                  NO
  97:  
  98:   Documentation:
  99:     Build Documentation:         NO
 100:     Sphinx:                      NO
 101:     PdfLaTeX compiler:           NO
 102:  
 103:   Tests and samples:
 104:     Tests:                       YES
 105:     Performance tests:           YES
 106:     C/C++ Examples:              YES
 107:  
 108:   Install path:                  C:/OpenCV-2.4.8/opencv/build/vs2012/x64/install
 109:  
 110:   cvconfig.h is in:              C:/OpenCV-2.4.8/opencv/build/vs2012/x64
 111: -----------------------------------------------------------------
 112:  
 113: Configuring done

按下Generate按鈕

==============================分隔線========================================

開啟Visual Studio 2012

image

FILE –> Open –> Project/Solution

image

開啟專案OpenCV

image

設定專案屬性

image

按下Local Windows Debugger, 按下Yes按鈕開始編譯….

image

編譯完成

image

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 me1237guy 的頭像
    me1237guy

    天天向上

    me1237guy 發表在 痞客邦 留言(0) 人氣()