I'm toying with the idea of building a Cocoa app that uses OpenCV. I could take the easy route and just use MacPorts or some such tool to get OpenCV quickly. Unfortunately, sooner or later, I'd still have to tackle the issue of deployment so I decided to get that out of the way immediately.
My Question is:
What is the best strategy for deploying apps that rely upon libraries that do not ship with OS X?? Especially with regard to guaranteeing backward compatibility to OS X 10.5 or even 10.4?
The way I see it these are the options:
I could compile OpenCV from source as dynamic libraries and install them on the customer's computer using an installer.
I could compile OpenCV statically and embed the static libraries in the application bundle.
Then there is the option of creating a Private Framework but nobody seems to have a clue about how to do that.
I'm leaning towards option 2 since I like the idea of distributing the app in a *.dmg image since that reduces installation to simply draging-and-dropping the app bundle to the 'Applications' folder.