- Windows で OpenCV 3.0.0-beta をビルドする
- ターゲットはWindows 7 (64bit)
- CMakeのバージョンは3.0.1
- Visual Studio 2012 でビルド
- 今回はGitでソースコードを取ってくる
ソースコードのダウンロード†
ビルド前準備†
- cmake が無い場合はインストールする
- cmakeでソリューションファイルを作成する
- 前回のbuildディレクトリが残っていたので、削除
- cmake で、buildディレクトリをビルド場所に指定して、Generate
- buildディレクトリ以下にOpenCV.slnが生成される
ソースコードのビルド†
- Visual Studio 2012 でOpenCV.slnを開いてビルド
- 大量にプロジェクトが読み込まれるので、バッチビルドする。
- ビルド(B)→バッチビルド(T)でバッチビルド画面を出す
- バッチビルドでALL_BUILDのdebug/release両方を選択する
- 9時間23分ぐらいかかった。
ビルドされたReleaseのdll 一覧†
2014/11/11 09:54 7,168 opencv_cudev300.dll
2014/11/11 09:54 166,912 opencv_cudev300.pdb
2014/11/11 09:57 15,085,568 opencv_core300.dll
2014/11/11 09:57 14,797,824 opencv_core300.pdb
2014/11/11 10:03 11,778,048 opencv_imgproc300.dll
2014/11/11 10:03 11,701,248 opencv_imgproc300.pdb
2014/11/11 10:03 2,511,360 opencv_imgcodecs300.dll
2014/11/11 10:03 10,398,720 opencv_imgcodecs300.pdb
2014/11/11 10:04 158,720 opencv_videoio300.dll
2014/11/11 10:04 2,673,664 opencv_videoio300.pdb
2014/11/11 10:04 10,535,057 opencv_ffmpeg300.dll
2014/11/11 10:04 725,504 opencv_ml300.dll
2014/11/11 10:04 4,041,728 opencv_ml300.pdb
2014/11/11 10:04 133,120 opencv_highgui300.dll
2014/11/11 10:04 2,477,056 opencv_highgui300.pdb
2014/11/11 10:04 659,456 opencv_objdetect300.dll
2014/11/11 10:04 4,615,168 opencv_objdetect300.pdb
2014/11/11 10:47 113,098,752 opencv_cudaarithm300.dll
2014/11/11 10:47 41,118,720 opencv_cudaarithm300.pdb
2014/11/11 11:31 538,624 opencv_flann300.dll
2014/11/11 11:31 5,196,800 opencv_flann300.pdb
2014/11/11 11:31 764,928 opencv_features2d300.dll
2014/11/11 11:31 5,155,840 opencv_features2d300.pdb
2014/11/11 11:36 3,189,248 opencv_cudalegacy300.dll
2014/11/11 11:36 3,681,280 opencv_cudalegacy300.pdb
2014/11/11 12:59 229,167,616 opencv_cudafilters300.dll
2014/11/11 12:59 16,378,880 opencv_cudafilters300.pdb
2014/11/11 14:30 32,768,512 opencv_cudawarping300.dll
2014/11/11 14:30 10,185,728 opencv_cudawarping300.pdb
2014/11/11 14:41 1,524,224 opencv_calib3d300.dll
2014/11/11 14:41 5,811,200 opencv_calib3d300.pdb
2014/11/11 14:41 463,360 opencv_video300.dll
2014/11/11 14:41 2,444,288 opencv_video300.pdb
2014/11/11 15:01 21,540,352 opencv_cudaimgproc300.dll
2014/11/11 15:01 13,331,456 opencv_cudaimgproc300.pdb
2014/11/11 15:33 26,316,800 opencv_cudafeatures2d300.dll
2014/11/11 15:33 6,024,192 opencv_cudafeatures2d300.pdb
2014/11/11 15:47 309,248 opencv_cudacodec300.dll
2014/11/11 15:47 1,846,272 opencv_cudacodec300.pdb
2014/11/11 16:04 1,879,040 opencv_cuda300.dll
2014/11/11 16:04 5,245,952 opencv_cuda300.pdb
2014/11/11 16:20 6,345,728 opencv_cudaoptflow300.dll
2014/11/11 16:20 2,829,312 opencv_cudaoptflow300.pdb
2014/11/11 16:34 7,278,592 opencv_cudastereo300.dll
2014/11/11 16:34 3,025,920 opencv_cudastereo300.pdb
2014/11/11 16:43 340,992 opencv_shape300.dll
2014/11/11 16:43 3,181,568 opencv_shape300.pdb
2014/11/11 16:48 2,692,096 opencv_cudabgsegm300.dll
2014/11/11 16:48 2,731,008 opencv_cudabgsegm300.pdb
2014/11/11 17:00 1,042,944 opencv_stitching300.dll
2014/11/11 17:00 6,835,200 opencv_stitching300.pdb
2014/11/11 17:03 1,551,872 opencv_photo300.dll
2014/11/11 17:03 3,689,472 opencv_photo300.pdb
2014/11/11 17:19 610,304 opencv_superres300.dll
2014/11/11 17:19 3,304,448 opencv_superres300.pdb
2014/11/11 17:33 952,832 opencv_perf_cudabgsegm.exe
2014/11/11 17:33 8,268,800 opencv_perf_cudabgsegm.pdb
2014/11/11 17:34 711,680 opencv_perf_cudacodec.exe
2014/11/11 17:34 5,442,560 opencv_perf_cudacodec.pdb
2014/11/11 17:34 954,368 opencv_perf_cudafeatures2d.exe
2014/11/11 17:34 8,506,368 opencv_perf_cudafeatures2d.pdb
2014/11/11 17:34 996,864 opencv_perf_cudafilters.exe
2014/11/11 17:34 8,539,136 opencv_perf_cudafilters.pdb
2014/11/11 17:35 1,710,080 opencv_perf_cudaimgproc.exe
2014/11/11 17:35 17,288,192 opencv_perf_cudaimgproc.pdb
2014/11/11 17:35 1,005,056 opencv_perf_cudaoptflow.exe
2014/11/11 17:35 8,842,240 opencv_perf_cudaoptflow.pdb
2014/11/11 17:35 902,144 opencv_perf_cudastereo.exe
2014/11/11 17:35 7,924,736 opencv_perf_cudastereo.pdb
2014/11/11 17:36 1,172,992 opencv_perf_cudawarping.exe
2014/11/11 17:36 11,381,760 opencv_perf_cudawarping.pdb
2014/11/11 17:36 1,202,176 opencv_perf_features2d.exe
2014/11/11 17:36 11,570,176 opencv_perf_features2d.pdb
2014/11/11 17:36 698,368 opencv_perf_imgcodecs.exe
2014/11/11 17:36 4,992,000 opencv_perf_imgcodecs.pdb
2014/11/11 17:37 4,465,152 opencv_perf_imgproc.exe
2014/11/11 17:37 56,077,312 opencv_perf_imgproc.pdb
2014/11/11 17:38 788,480 opencv_perf_objdetect.exe
2014/11/11 17:38 6,278,144 opencv_perf_objdetect.pdb
2014/11/11 17:38 949,248 opencv_perf_photo.exe
2014/11/11 17:38 8,317,952 opencv_perf_photo.pdb
2014/11/11 17:39 1,084,928 opencv_perf_stitching.exe
2014/11/11 17:39 9,513,984 opencv_perf_stitching.pdb
2014/11/11 17:39 808,960 opencv_perf_superres.exe
2014/11/11 17:39 6,605,824 opencv_perf_superres.pdb
2014/11/11 17:39 1,247,744 opencv_perf_video.exe
2014/11/11 17:39 13,487,104 opencv_perf_video.pdb
2014/11/11 17:40 794,112 opencv_perf_videoio.exe
2014/11/11 17:40 6,237,184 opencv_perf_videoio.pdb
2014/11/11 17:40 1,801,216 opencv_test_calib3d.exe
2014/11/11 17:40 10,603,520 opencv_test_calib3d.pdb
2014/11/11 17:41 3,999,744 opencv_test_core.exe
2014/11/11 17:41 27,913,216 opencv_test_core.pdb
2014/11/11 17:41 1,267,712 opencv_test_cuda.exe
2014/11/11 17:41 11,111,424 opencv_test_cuda.pdb
2014/11/11 17:42 2,681,856 opencv_test_cudaarithm.exe
2014/11/11 17:42 27,241,472 opencv_test_cudaarithm.pdb
2014/11/11 17:42 851,968 opencv_test_cudabgsegm.exe
2014/11/11 17:42 6,966,272 opencv_test_cudabgsegm.pdb
2014/11/11 17:43 728,064 opencv_test_cudacodec.exe
2014/11/11 17:43 5,475,328 opencv_test_cudacodec.pdb
2014/11/11 17:43 1,122,816 opencv_test_cudafeatures2d.exe
2014/11/11 17:43 10,439,680 opencv_test_cudafeatures2d.pdb
2014/11/11 17:44 1,324,032 opencv_test_cudafilters.exe
2014/11/11 17:44 13,716,480 opencv_test_cudafilters.pdb
2014/11/11 17:44 2,509,312 opencv_test_cudaimgproc.exe
2014/11/11 17:44 20,999,168 opencv_test_cudaimgproc.pdb
2014/11/11 17:45 1,034,240 opencv_test_cudalegacy.exe
2014/11/11 17:45 7,531,520 opencv_test_cudalegacy.pdb
2014/11/11 17:45 1,022,976 opencv_test_cudaoptflow.exe
2014/11/11 17:45 8,924,160 opencv_test_cudaoptflow.pdb
2014/11/11 17:46 884,736 opencv_test_cudastereo.exe
2014/11/11 17:46 7,392,256 opencv_test_cudastereo.pdb
2014/11/11 17:46 1,315,328 opencv_test_cudawarping.exe
2014/11/11 17:46 12,938,240 opencv_test_cudawarping.pdb
2014/11/11 18:11 15,147,008 opencv_test_cudev.exe
2014/11/11 18:11 17,665,024 opencv_test_cudev.pdb
2014/11/11 18:43 888,320 opencv_test_features2d.exe
2014/11/11 18:43 6,237,184 opencv_test_features2d.pdb
2014/11/11 18:43 586,752 opencv_test_flann.exe
2014/11/11 18:43 4,541,440 opencv_test_flann.pdb
2014/11/11 18:43 562,688 opencv_test_highgui.exe
2014/11/11 18:43 4,172,800 opencv_test_highgui.pdb
2014/11/11 18:44 923,136 opencv_perf_calib3d.exe
2014/11/11 18:44 8,088,576 opencv_perf_calib3d.pdb
2014/11/11 18:45 4,057,088 opencv_test_imgproc.exe
2014/11/11 18:45 34,622,464 opencv_test_imgproc.pdb
2014/11/11 18:46 729,600 opencv_test_ml.exe
2014/11/11 18:46 4,959,232 opencv_test_ml.pdb
2014/11/11 18:47 871,936 opencv_test_objdetect.exe
2014/11/11 18:47 6,654,976 opencv_test_objdetect.pdb
2014/11/11 18:49 1,031,168 opencv_test_photo.exe
2014/11/11 18:49 7,228,416 opencv_test_photo.pdb
2014/11/11 18:49 637,952 opencv_test_shape.exe
2014/11/11 18:49 4,647,936 opencv_test_shape.pdb
2014/11/11 18:50 774,144 opencv_test_stitching.exe
2014/11/11 18:50 5,942,272 opencv_test_stitching.pdb
2014/11/11 18:51 600,576 opencv_test_superres.exe
2014/11/11 18:51 4,475,904 opencv_test_superres.pdb
2014/11/11 18:53 1,209,856 opencv_test_video.exe
2014/11/11 18:53 11,168,768 opencv_test_video.pdb
2014/11/11 18:56 693,760 opencv_test_videoio.exe
2014/11/11 18:56 4,852,736 opencv_test_videoio.pdb
2014/11/11 18:58 400,896 opencv_traincascade.exe
2014/11/11 18:58 2,591,744 opencv_traincascade.pdb
2014/11/11 19:02 729,088 opencv_test_imgcodecs.exe
2014/11/11 19:02 4,860,928 opencv_test_imgcodecs.pdb
2014/11/11 19:12 3,471,872 opencv_perf_core.exe
2014/11/11 19:12 37,514,240 opencv_perf_core.pdb
2014/11/11 19:15 1,107,968 opencv_perf_cuda.exe
2014/11/11 19:15 10,226,688 opencv_perf_cuda.pdb
2014/11/11 19:15 664,064 opencv_videostab300.dll
2014/11/11 19:15 4,426,752 opencv_videostab300.pdb
2014/11/11 19:16 2,470,400 opencv_perf_cudaarithm.exe
2014/11/11 19:16 24,439,808 opencv_perf_cudaarithm.pdb
ビルドに要した時間Top10†
- やはり、CUDA関連のビルドは時間がかかる。。
dllの名前 | 所要時間(min) |
opencv_cudawarping300.dll | 91 |
opencv_cudafilters300.dll | 83 |
opencv_flann300.dll | 44 |
opencv_cudaarithm300.dll | 43 |
opencv_cudafeatures2d300.dll | 32 |
opencv_cudaimgproc300.dll | 20 |
opencv_cuda300.dll | 17 |
opencv_cudaoptflow300.dll | 16 |
opencv_superres300.dll | 16 |
opencv_cudastereo300.dll | 14 |
- cuda以外だと、flannモジュールと、features2dのテストプログラムのbuildに時間がかかる。
exeの名前 | 所要時間(min) |
opencv_test_features2d.exe | 32 |
opencv_test_cudev.exe | 25 |
opencv_perf_cudabgsegm.exe | 14 |
opencv_perf_core.exe | 10 |
opencv_test_imgcodecs.exe | 4 |
opencv_perf_cuda.exe | 3 |
opencv_test_videoio.exe | 3 |
opencv_traincascade.exe | 2 |
opencv_test_photo.exe | 2 |
opencv_test_video.exe | 2 |