最終更新:2020-03-13 (金) 06:06:29 (150d)  

dlib/ビルド/Windows
Top / dlib / ビルド / Windows

デフォルトだと32bit

  • cd examples
    mkdir build
    cd build
    cmake ..
    cmake --build . --config Release

cmake -L

  • JPEG/PNGはON
    CMAKE_BUILD_TYPE:STRING=Release
    CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release;MinSizeRel;RelWithDebInfo
    CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/examples
    CUDA_HOST_COMPILER:FILEPATH=$(VCInstallDir)Tools/MSVC/$(VCToolsVersion)/bin/Host$(Platform)/$(PlatformTarget)
    CUDA_SDK_ROOT_DIR:PATH=CUDA_SDK_ROOT_DIR-NOTFOUND
    CUDA_TOOLKIT_ROOT_DIR:PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2
    CUDA_USE_STATIC_CUDA_RUNTIME:BOOL=ON
    DLIB_ENABLE_ASSERTS:BOOL=OFF
    DLIB_ENABLE_STACK_TRACE:BOOL=OFF
    DLIB_GIF_SUPPORT:STRING=OFF
    DLIB_ISO_CPP_ONLY:BOOL=OFF
    DLIB_JPEG_SUPPORT:BOOL=ON
    DLIB_LINK_WITH_SQLITE3:STRING=OFF
    DLIB_NO_GUI_SUPPORT:BOOL=OFF
    DLIB_PNG_SUPPORT:BOOL=ON
    DLIB_USE_BLAS:STRING=OFF
    DLIB_USE_CUDA:STRING=OFF
    DLIB_USE_LAPACK:STRING=OFF
    DLIB_USE_MKL_FFT:STRING=OFF
    DLIB_USE_MKL_SEQUENTIAL:BOOL=OFF
    DLIB_USE_MKL_WITH_TBB:BOOL=OFF
    OpenCV_DIR:PATH=OpenCV_DIR-NOTFOUND
    USE_AVX_INSTRUCTIONS:BOOL=OFF
    USE_SSE2_INSTRUCTIONS:BOOL=ON
    USE_SSE4_INSTRUCTIONS:BOOL=OFF

64bitビルド

  • cd examples
    mkdir build
    cd build
    cmake -G "Visual Studio 14 2015 Win64" -T host=x64 ..
    cmake --build . --config Release

Visual Studio 2017

  • cmake -G "Visual Studio 15 2017 Win64" -T host=x64 ..

メモ

  • dlib requires cuDNN 5.0? OR GREATER

webcam_face_pose_ex.cppのためにOpenCVを指定

  • cmake .. -DOpenCV_DIR=D:/SDKs/opencv-4.2.0-vc14_vc15/opencv/build

OpenCV 4.2 & dlib 19.19