*概要 [#h9c6256d]
-[[:OpenCV 3.3]]がリリースされたので、[[CI20]]でビルドしてみた
*前提準備 [#wb20dfa6]
*今回のターゲット [#f220658c]
-OS:Debian 8
-CPU:MIPS Dual core 1.2GHz
-OpenCV 3.3.0
-cmake 3.0.2
-gcc 4.9.2
*OpenCV の取得 [#t61995ee]
 ~$ time git clone git@github.com:opencv/opencv.git opencv-fork
 ~$ cd opencv-fork/
 ~/opencv-fork$ time git checkout -b Branch_3_3_0 3.3.0
 Switched to a new branch 'Branch_3_3_0'
*OpenCV3.3.0のビルド [#y665a66b]
-cmakeのfull logは[[こちら>https://gist.github.com/tomoaki0705/e128f804991cbcbbeeb56cf6f03c100a]]
-make allのfull logは[[こちら>https://gist.github.com/tomoaki0705/3276abcbcbfc889a58daaf0dc0e027a4]]
**cmake [#vca7230c]
-[[ODROID-X2でOpenCV 3.1.0をビルド]]同様、out of source buildする 
 ~/opencv-fork$ mkdir build
 ~/opencv-fork$ cd build
 ~/opencv-fork/build$ time cmake ..
 real	4m6.754s
 user	3m9.640s
 sys	0m47.160s
**make all [#zb4cdc34]
 ~/opencv-fork/build$ time make -j 2 all
 real	201m55.507s
 user	371m24.890s
 sys	20m29.300s
**make install [#k6cc657b]
*OpenCVビルド時のコンフィグなど [#i2732777]
**cvconfig.h [#x8c0d198]
// paste cvconfig.h in here
**version_string.inc [#h68adb47]
 General configuration for OpenCV 3.3.0-dev =====================================
   Version control:               3.3.0-1-g87c27a0
     Timestamp:                   2017-08-04T05:48:54Z
     Host:                        Linux 3.18.3-ci20-1 mips
     CMake:                       3.0.2
     CMake generator:             Unix Makefiles
     CMake build tool:            /usr/bin/make
     Configuration:               Release
   CPU/HW features:
       requested:                 DETECT
     Built as dynamic libs?:      YES
     C++ Compiler:                /usr/bin/c++  (ver 4.9.2)
     C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections  -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
     C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections  -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
     C Compiler:                  /usr/bin/cc
     C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections  -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
     C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections  -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
     Linker flags (Release):      
     Linker flags (Debug):        
     ccache:                      NO
     Precompiled headers:         YES
     Extra dependencies:          dl m pthread rt
     3rdparty dependencies:
   OpenCV modules:
     To be built:                 core flann imgproc ml objdetect photo video dnn imgcodecs shape videoio highgui superres ts features2d calib3d stitching videostab
     Disabled:                    world
     Disabled by dependency:      -
     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz
     QT:                          NO
     GTK+:                        NO
     GThread :                    NO
     GtkGlExt:                    NO
     OpenGL support:              NO
     VTK support:                 NO
   Media I/O: 
     ZLib:                        zlib (ver 1.2.8)
     JPEG:                        libjpeg (ver 90)
     WEBP:                        build (ver encoder: 0x020e)
     PNG:                         build (ver 1.6.24)
     TIFF:                        build (ver 42 - 4.0.2)
     JPEG 2000:                   build (ver 1.900.1)
     OpenEXR:                     build (ver 1.7.1)
     GDAL:                        NO
     GDCM:                        NO
   Video I/O:
     DC1394 1.x:                  NO
     DC1394 2.x:                  NO
     FFMPEG:                      NO
       avcodec:                   NO
       avformat:                  NO
       avutil:                    NO
       swscale:                   NO
       avresample:                NO
     GStreamer:                   NO
     OpenNI:                      NO
     OpenNI PrimeSensor Modules:  NO
     OpenNI2:                     NO
     PvAPI:                       NO
     GigEVisionSDK:               NO
     Aravis SDK:                  NO
     UniCap:                      NO
     UniCap ucil:                 NO
     V4L/V4L2:                    NO/YES
     XIMEA:                       NO
     Xine:                        NO
     Intel Media SDK:             NO
     gPhoto2:                     NO
   Parallel framework:            pthreads
   Trace:                         YES ()
   Other third-party libraries:
     Use Intel IPP:               NO
     Use Intel IPP IW:            NO
     Use VA:                      NO
     Use Intel VA-API/OpenCL:     NO
     Use Lapack:                  NO
     Use Eigen:                   NO
     Use Cuda:                    NO
     Use OpenCL:                  NO
     Use OpenVX:                  NO
     Use custom HAL:              NO
   Python 2:
     Interpreter:                 /usr/bin/python2.7 (ver 2.7.9)
   Python 3:
     Interpreter:                 /usr/bin/python3.4 (ver 3.4.2)
   Python (for build):            /usr/bin/python2.7
     ant:                         NO
     JNI:                         NO
     Java wrappers:               NO
     Java tests:                  NO
   Matlab:                        Matlab not found or implicitly disabled
     Doxygen:                     NO
   Tests and samples:
     Tests:                       YES
     Performance tests:           YES
     C/C++ Examples:              NO
   Install path:                  /usr/local
   cvconfig.h is in:              /home/ci20/opencv-fork/build
 Configuring done
 Generating done
 Build files have been written to: /home/ci20/opencv-fork/build
*ビルドされたライブラリや実行ファイル [#l4adabfc]

*関連ページ [#gda42bda]
-[[:OpenCV 3.3]]

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS