Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X binaries for OpenCV 2.4.9 #8

Closed
wants to merge 2 commits into from
Closed

OS X binaries for OpenCV 2.4.9 #8

wants to merge 2 commits into from

Conversation

pizthewiz
Copy link
Contributor

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
-- -----------------------------------------------------------------
[…]

Jean-Pierre Mouilleseaux added 2 commits April 26, 2014 17:50
The java and python modules were excluded while the OpenCL and Super Resolution modules were included as per the default settings.
QuickTime is not used by OpenCV so there isn't any reason to disallow the samples from building 64-bit.
@pizthewiz pizthewiz changed the title Upgrade OS X binaries to OpenCV 2.4.9 OS X binaries for OpenCV 2.4.9 Apr 27, 2014
@andrewfb
Copy link
Collaborator

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.

@andrewfb andrewfb closed this Jun 22, 2014
@pizthewiz pizthewiz deleted the opencv-2.4.9 branch July 3, 2014 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants