[Qt-interest] Linking Framework app on Mac with install_name_tool
Stan Warford
Stan.Warford at pepperdine.edu
Thu Jun 23 08:25:52 CEST 2011
> On 06/22/2011 08:27 PM, Pavel Koshevoy wrote:
>> On 06/22/2011 05:57 PM, Stan Warford wrote:
>>
>>> I am wondering why the system is confused about the Frameworks being both in
>>> my app bundle and in the QtSDK library. It seems the library should be
>>> invisible to it if the references in the app bundle are changed correctly.
>>
>> Did you check what the frameworks reference (the ones that you've copied into
>> the bundle)? The executable is not the only thing that you need to run
>> install_name_tool on, the frameworks it depends on may need to be adjusted too.
>>
>> Pavel.
>
>
> Never mind, I just read the rest of your post, looks like you fixed the
> frameworks. Anyway, I've attached my script that I use to deploy OSX bundles.
> You may need to tailor it a bit to suit your environment. The script is brain
> dead simple to use.
> step 1 - compile your app project.
> step 2 - ./DeployOSX.sh your.app
>
> If it doesn't work look for errors in script output (again, you may need to
> tailor the paths a bit). To help debugging the script you can change
> #!/bin/bash to #!/bin/bash -x -- it will print out every line the script executes.
>
> Hope this helps,
> Pavel.
Pavel,
GREAT! Worked the first time with no modifications. This is a fantastic tool. It's like your own macdeployqt, but it works.
This is definitely going into my toolkit. How widely available is your tool? Do you have some site where you maintain it and release it?
Thanks!
Stan
More information about the Qt-interest-old
mailing list