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

Build is broken for the Mac/x64, Xcode 4 #15

Open
dchichkov opened this issue Aug 25, 2011 · 5 comments
Open

Build is broken for the Mac/x64, Xcode 4 #15

dchichkov opened this issue Aug 25, 2011 · 5 comments

Comments

@dchichkov
Copy link

On the Snow Leopard / Xcode 4.03 the build is broken for the x86_64 architecture:

Scanning dependencies of target cam_iface_mega
[ 5%] Building C object src/CMakeFiles/cam_iface_mega.dir/cam_iface_quicktime.c.o
libcamiface/src/cam_iface_quicktime.c:95: error: expected specifier-qualifier-list before ‘SGChannel’
libcamiface/src/cam_iface_quicktime.c:337: error: expected ‘)’ before ‘chan’
libcamiface/src/cam_iface_quicktime.c:364: error: expected ‘)’ before ‘c’
libcamiface/src/cam_iface_quicktime.c: In function ‘quicktime_cam_iface_startup’:
libcamiface/src/cam_iface_quicktime.c:448: error: ‘SeqGrabComponentType’ undeclared (first use in this function)
libcamiface/src/cam_iface_quicktime.c:448: error: (Each undeclared identifier is reported only once

This is caused by using deprecated QuickTime APIs which are no longer available for the x64 QuickTime clients.
i386 build still works (can be selected by 'export CMAKE_OSX_ARCHITECTURES=i386' before running cmake).

@astraw
Copy link
Member

astraw commented Oct 19, 2011

Yes, the QuickTime backend needs to be re-written using Objective C. I don't know that language and can't justify spending the time to learn it for this right now. I'm happy to accept patches, of course.

@toqduj
Copy link

toqduj commented Sep 13, 2013

I had a similar problem with the 0.8.0 source. Luckily, I had the 0.5.5 version around which still worked. If there is a workaround as suggested above, this should be indicated in the installation howto. I hope there will be time for the obj-c rewrite as this is the only program with the camera readout capability as far as I know! Good luck and thanks for the useful package!
Just FYI, I use it for this demo: http://www.youtube.com/watch?v=ym42jYPM34Y
(though my new version is much quicker)

@astraw
Copy link
Member

astraw commented Sep 13, 2013

@toqduj are you saying that you can compile 0.5.5 from source on Mac or that you have the binary installer and it still works?

Because if compiling from source still works on OS X 10.8.4 and 64 bit, that'd allow us to keep using Carbon without any Cocoa/Obj-C work. But I'm hitting the kind of compilation errors I'd expect if the Carbon headers are removed.

I'd guess by now there must be some open source library that opens cameras and streams frames (without necessarily showing them on screen) using the Cocoa framework. We could use their code as inspiration. Know of any such thing?

@astraw
Copy link
Member

astraw commented Sep 17, 2013

This looks interesting.

@astraw
Copy link
Member

astraw commented Oct 7, 2013

The ofQTKitGrabber component of openFrameworks also looks interesting.

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

No branches or pull requests

3 participants