Deploying a Qt / OpenCV application in Mac OS X
I have had success making deployable Qt apps using the "macdeployqt" program to package all Qt dependencies into the app bundle.
This works great when I am only using Qt libraries. However, I cannot figure out how to include other library files (such as those needed for OpenCV) in a way that allows me to deploy to other machines.
I have tried copying the .dylib files with the .app, but I do not know how to tell the .app where to search.
I would greatly appreciate any help on how to either compile / link statically to OpenCV or how to include the .dylib files inside of the .app bundle so that it knows where they are.
I realize this is more of a mac question than a Qt question, but I know a lot of Qt people use OpenCV and I have found Apple support on this issue leaves much to be desired.
Re: Deploying a Qt / OpenCV application in Mac OS X
Don't know if it will be of any use; Just a simple tutorial on how to install OpenCV on Mac OS 10.6 and how to use it under Qt. The same process can be used to compile and use ffmpeg library.
http://www.youtube.com/watch?v=i9hYiMXLZRs
Att,
Re: Deploying a Qt / OpenCV application in Mac OS X
You have to use the install_name_tool on the OpenCV libraries(@executable_path/../Frameworks ...). See the "Deploying an Application on Mac OS X" in the Qt documentation.