views:

52

answers:

1

I'm writing Qt application using some 3rd party library. I want to package it into a bundle.

I'm using macdeployqt and this tool is actually copying not only Qt Frameworks but also 3rd party library into Frameworks subdir of Contents dir inside app bundle.

The problem is that this 3rd party library need some additional file to work properly. Originally library is installed in /usr/local/lib and some necessary stuff is located at /usr/local/share.

How to package this stuff into app bundle?

+1  A: 

I think it depends on how the specific library is coded. If the paths are hard coded as full paths or relative to some system path, then there's really nothing you can do. One possible solution is to include the files as resources and install them during the startup of your app when you detect that they are missing in the user's system.

Stephen Chu