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 isn’t just copying Qt Frameworks, but also 3rd party library into Contents/Frameworks
inside the 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 stuf开发者_如何学编程f is located at /usr/local/share
.
How to package this stuff into app bundle?
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.
精彩评论