tags:

views:

38

answers:

1
+2  Q: 

MacOS and OpenCV

Morning SO.

I would like to compile openCV to make it work on a webcam capture using Qt 4.7. For that purpose, OpenCV must be compiled for a 64bit system.

So, I've tried 3 compilations :

  • Compiling from the source with cmake :

    sudo cmake -G "Unix Makefiles" .
    

    it works, but I can't dump a video into a file using cvCreateVideoWriter : the output file is empty.

  • using macports :

    sudo port install opencv
    

    it's not that great because it depends on gtk2, ffmpeg and the libX .. and there is no image captured.

  • using the compiled framework

    the framework is compiled for 32 bit system only.

Does anyone have an idea ?

A: 

Using opencv-cocoa does the trick !

http://code.google.com/p/opencv-cocoa/

dzen