cinder / Cinder-OpenCV

OpenCV CinderBlock
101 stars 95 forks source link

OS X binaries for OpenCV 2.4.9 #8

Closed pizthewiz closed 10 years ago

pizthewiz commented 10 years ago

The java and python modules were explicitly disabled and the OpenCL and Super Resolution modules have been added (by not disabling them). Built on OS X 10.9.3 (13D45a) with Xcode 5.1. All OS X Cinder-OpenCV samples were built and appeared to function as expected.

One additional tweak was made to update the OS X Xcode project settings and allow the projects to build 64-bit. If someone has an OS X 10.7 (that is Cinder's minimum requirement yeah?) install handy, It might be good to double check that this works, otherwise I can fire up a VM.

Built Steps

Some CMake disables used in the command below may not have been required as they are the default values.

$ cd opencv-2.4.9
$ mkdir build && cd build
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/tmp/purgatorio \
-DCMAKE_OSX_DEPLOYMENT_TARGET= -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
-DENABLE_FAST_MATH=ON -DCMAKE_CXX_FLAGS="-fvisibility-inlines-hidden -stdlib=libc++" \
-DBUILD_SHARED_LIBS=OFF -DBUILD_opencv_java=OFF -DBUILD_opencv_python=OFF \
-DWITH_1394=OFF -DWITH_CARBON=OFF -DWITH_FFMPEG=OFF -DWITH_IMAGEIO=OFF \
-DWITH_IPP=OFF -DWITH_OPENNI=OFF -DWITH_QT=OFF -DWITH_QUICKTIME=OFF \
-DWITH_V4L=OFF -DWITH_PVAPI=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF ..
$ make -j8
$ make install

OpenCV Module / Configuration Output

[…]
--   OpenCV modules:
--     To be built:                 core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts videostab
--     Disabled:                    java python world
--     Disabled by dependency:      -
--     Unavailable:                 androidcamera dynamicuda viz
-- 
--   GUI: 
--     QT:                          NO
--     Cocoa:                       YES
--     OpenGL support:              NO
--     VTK support:                 NO
-- 
--   Media I/O: 
--     ZLib:                        build (ver 1.2.7)
--     JPEG:                        build (ver 62)
--     PNG:                         build (ver 1.5.12)
--     TIFF:                        build (ver 42 - 4.0.2)
--     JPEG 2000:                   build (ver 1.900.1)
--     OpenEXR:                     build (ver 1.7.1)
-- 
--   Video I/O:
--     DC1394 1.x:                  NO
--     DC1394 2.x:                  NO
--     FFMPEG:                      NO
--       codec:                     NO
--       format:                    NO
--       util:                      NO
--       swscale:                   NO
--       gentoo-style:              NO
--     OpenNI:                      NO
--     OpenNI PrimeSensor Modules:  NO
--     PvAPI:                       NO
--     GigEVisionSDK:               NO
--     QuickTime:                   NO
--     QTKit:                       YES
--     V4L/V4L2:                    NO/NO
-- 
--   Other third-party libraries:
--     Use IPP:                     NO
--     Use Eigen:                   NO
--     Use TBB:                     NO
--     Use OpenMP:                  NO
--     Use GCD                      YES
--     Use Concurrency              NO
--     Use C=:                      NO
--     Use Cuda:                    NO
--     Use OpenCL:                  YES
-- 
--   OpenCL:
--     Version:                     static
--     libraries:                   -framework OpenCL
--     Use AMD FFT:                 NO
--     Use AMD BLAS:                NO
-- 
--   Python:
--     Interpreter:                 /usr/bin/python (ver 2.7.5)
-- 
--   Java:
--     ant:                         /usr/local/bin/ant (ver 1.9.3)
--     JNI:                         /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/JavaVM.framework/Headers /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/JavaVM.framework/Headers /System/Library/Frameworks/JavaVM.framework/Headers
--     Java tests:                  NO
-- 
--   Documentation:
--     Build Documentation:         NO
--     Sphinx:                      NO
--     PdfLaTeX compiler:           NO
-- 
--   Tests and samples:
--     Tests:                       NO
--     Performance tests:           NO
--     C/C++ Examples:              NO
-- 
--   Install path:                  /tmp/purgatorio
-- 
--   cvconfig.h is in:              /Users/jpm/Downloads/opencv-2.4.9/build
-- -----------------------------------------------------------------
[…]
andrewfb commented 10 years ago

Thanks for this - hugely helpful. The libs I committed were built locally (in keeping with a slightly loose policy of binaries only coming from me). Should be up to 2.4.9 on dev now on iOS, Mac and MSW.