一、选项介绍
1、介绍表
BUILD_EXAMPLES | ON | Governs whether the C/C++ examples are built | |
BUILD_JASPER | OFF | Governs whether the Jasper library (libjasper ) is built from source in the 3rdparty directory | |
BUILD_JPEG | OFF | As above, for libjpeg | |
BUILD_PNG | OFF | As above, for libpng | |
BUILD_TBB | OFF | As above, for tbb | |
BUILD_TIFF | OFF | As above, for libtiff | |
BUILD_ZLIB | OFF | As above, for zlib | |
BUILD_opencv_java | OFF | Controls the building of the Java bindings for OpenCV | Building the Java bindings requires OpenCV libraries be built for static linking only |
BUILD_opencv_nonfree | OFF | Controls the building of non-free (non-open-source) elements | Used only for building 2.4.X |
BUILD_opencv_python | ON | Controls the building of the Python 2 bindings in OpenCV 2.4.X | Used only for building 2.4.X |
BUILD_opencv_python2 | ON | Controls the building of the Python 2 bindings in OpenCV 3.1.0 | Not used in 2.4.X |
BUILD_opencv_python3 | OFF | Controls the building of the Python 3 bindings in OpenCV 3.1.0 | Not used in 2.4.X |
CMAKE_BUILD_TYPE | Release | Selects the type of build (release vs. development) | Is generally either Release or Debug |
CMAKE_INSTALL_PREFIX | /usr | Sets the root for installation of the libraries and header files | |
CUDA_ARCH_BIN | varies | Sets the CUDA architecture(s) for which code is compiled | Usually only passed for platforms with known specific cards. OpenCV includes a small program that determines the architectures of the system's installed card if you do not pass this parameter. Here, for Ubuntu desktop, the value is a list to maximize card support. |
CUDA_ARCH_PTX | "" | Builds PTX intermediate code for the specified virtual PTX architectures | |
CUDA_TOOLKIT_ROOT_DIR | /usr/local/cuda-8.0 (for Linux) | Specifies the location of the CUDA include files and libraries | |
ENABLE_NEON | ON | Enables the use of NEON SIMD extensions for ARM chips | Only passed for builds on ARM platforms |
ENABLE_PRECOMPILED_HEADERS | OFF | Enables/disables support for pre-compiled headers | Only specified on some of the ARM platforms |
INSTALL_C_EXAMPLES | ON | Enables the installation of the C example files as part of make install | |
INSTALL_TESTS | ON | Enables the installation of the tests as part of make install | |
OPENCV_TEST_DATA_PATH | ../opencv_extra/testdata | Path to the testdata directory in the opencv_extra repository | |
WITH_1394 | OFF | Specifies whether to include IEEE-1394 support | |
WITH_CUDA | ON | Specifies whether to include CUDA support | |
WITH_FFMPEG | ON | Specifies whether to include FFMPEG support | |
WITH_GSTREAMER | OFF | Specifies whether to include GStreamer 1.0 support | |
WITH_GSTREAMER_0_10 | OFF | Specifies whether to include GStreamer 0.10 support | |
WITH_GTK | ON | Specifies whether to include GTK 2.0 support | Only given on Linux platforms, not Microsoft Windows |
WITH_OPENCL | OFF | Specifies whether to include OpenCL runtime support | |
WITH_OPENEXR | OFF | Specifies whether to include ILM support via OpenEXR | |
WITH_OPENMP | OFF | Specifies whether to include OpenMP runtime support | |
WITH_TBB | ON | Specifies whether to include Intel TBB support | |
WITH_VTK | OFF | Specifies whether to include VTK support |
二、介绍详解
1、待加
致谢