Reply To: Building a Syphon Cinder block application in Eclipse CDT

Home Forums Syphon Syphon Implementations – User Building a Syphon Cinder block application in Eclipse CDT Reply To: Building a Syphon Cinder block application in Eclipse CDT

#4688
vade
Keymaster

Yes, Frameworks are an Obj-C/Cocoa-ism and are Mac Only. We provide Syphon as a framework because Syphon is Mac Only, and leverages many Obj-C and Mac-only technologies. Frameworks offer much improved linking over static libraries as they:

a) Provide versioning. If we put out a new Syphon framework with new features, your old calls will still work because the framework will include an older version of the library that you’ve linked against and used. Static .a libraries can’t do that to my knowledge.

b) Provide included headers and resources that the framework needs, such as nib file, images, etc that are used by the framework.

c) Syphon leverages Obj-C and existing Cocoa frameworks included on Mac OS X, so even if you get a .a out of it, your application will still need to link to other Obj-C frameworks.

I highly recommend finding a way to link against the frameworks (You can use GCC compiler flags on Mac OS X “-framework Syphon” for example)

Check out the first few pages here:

http://developer.apple.com/tools/gcc_overview.html

I am very hesitant to provide a .a, only because of the aforementioned issues and future proofing problems, and it seems to be not directly solving your issue. Also, im not even sure its possible considering we require linking against other frameworks, so its kind of moot, no?

Edit: that said, you might be able to download the Syphon-framework code and edit the XCode project to output a .dylib or .a for the target. Im honestly not super familiar. Check http://code.google.com/p/syphon-framework/ for the most up to date Syphon Framework source and project files.