0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VisualStudio2019 + OpenCV4.1.1 + CUDA10.1 の環境構築

Last updated at Posted at 2021-12-30

VisualStudio2019 + OpenCV4.1.1 + CUDA10.1 の環境構築

環境構築

参考

ダウンロード・インストール

OpenCV モジュール生成

  • CMakeでOpenCVをビルドするソリューションファイルを生成する
    1. cmake-gui 起動
    2. ソースコード
      • E:/Program/OpenCV/opencv/sources
    3. ビルドバイナリ
      • E:/Program/OpenCV/build
    4. Configure
      • Visual Studio 16 2019
      • x64
      • Use default native compilers
      • Finish
    5. Check
      • BUILD_EXAMPLES : ON
      • BUILD_PERF_TESTS : OFF
      • BUILD_TESTS : OFF
      • INSTALL_CREATE_DISTRIB : ON
      • OPENCV_EXTRA_MODULE_PATH : E:/Program/OpenCV/opencv_contrib-4.1.1/modules
      • WITH_CUDA : ON
      • WITH_OPENGL : ON
    6. Configure
    7. Check
    8. Configure
    9. Generate
  • OpenCVをビルドする
    1. E:/Program/OpenCV/build/OpenCV.sln
    2. Debug
      1. 1回目 : 30min
        • 初回は何故か外部からの変更が発生
      2. 2回目 : 20min
      3. CMakeTargets/INSTALL
        • ビルドのみ
    3. Release
      1. 1回目 : 30min
      2. CMakeTargets/INSTALL
        • ビルドのみ
  • E:/Program/OpenCV/build/install
    • /include
    • /x64/vc16/bin
    • /x64/vc16/lib
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?