[Qt-interest] Linking Framework app on Mac with install_name_tool
Pavel Koshevoy
pavel at aragog.com
Thu Jun 23 04:48:55 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DeployOSX.sh
Type: application/x-shellscript
Size: 17616 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110622/e418111e/attachment.bin
More information about the Qt-interest-old
mailing list