Hi there !
I am trying to compile the video grabbing part of OF without XCode but the compiler complains about “MediaHandler” not being defined. From Apple docs, “MediaHandler” should be defined by the QuickTime headers but somehow it’s not working…
[ 2%] Building ../Camera.cpp.o In file included from ../video/ofVideoGrabber.h:10, from ../Camera.cpp:31: ../video/ofQtUtils.h:45: error: MediaHandler was not declared in this scope
I tried to link against the static lib, but I get the same problem when I include the VideoGrabber headers. The XCode opencvExample runs fine.
Any help would be greatly welcome (exhibition in 1 week…).
[3:41 am edit]
I finally found the problem: QuickTime does not support 64bit compilations and the header inclusion was just ignored without a warning ( ).
Here is the solution:
set(CMAKE_OSX_ARCHITECTURES "i386" CACHE STRING "Build architectures for OSX" FORCE)
(since I am not using all of OF code, I also had to mock several utility and globals)