macdeployqt and third party libraries

Posted by user338170 on Stack Overflow See other posts from Stack Overflow or by user338170
Published on 2010-05-11T10:40:14Z Indexed on 2010/05/11 10:44 UTC
Read the original article Hit count: 294

Filed under:

I've got an application project that depends on a couple of shared libraries that I have created myself. According to the Qt 4.6 documentation "Deploying an Application on Mac OSX":

Note: If you want a 3rd party library to be included in your application bundle, then you must add an excplicit lib entry for that library to your application's .pro file. Otherwise, the macdeployqt tool will not copy the 3rd party .dylib into the bundle.

I have added lib entries to my application's .pro file but the libraries that I have written do not get copied into the bundle when I execute macdeployqt. I have the following in my .pro file:

LIBS += -L../Libraries -lMyLib

Everything builds okay, its just when I try to run from the bundle that I run into problems i.e. "image not found" errors.

Is there a bug in macdeployqt or do I have to something more to my .pro file?

© Stack Overflow or respective owner

Related posts about qt