[Qt-interest] Linking Framework app on Mac with install_name_tool
Paul Miller
paul at fxtech.com
Wed Jun 22 23:58:28 CEST 2011
On 6/22/2011 12:29 PM, Stan Warford wrote:
>> Message: 3
>> Date: Wed, 22 Jun 2011 10:47:22 -0500
>> From: Paul Miller<paul at fxtech.com>
>>
>> On 6/22/2011 10:24 AM, Stan Warford wrote:
>>> I am trying to deploy a desktop app using Frameworks as described in the
>>> Qt documentation. I am using Qt Creator 2.2.0 based on Qt 4.7.4 (64
>>> bit). I use otool to check for dependencies, copy the frameworks into
>>> the app bundle, use install_name_tool to change the references, then do
>>> a final check with otool. Although everything appears correct, the app
>>> crashes, and I am at a loss as to how to debug the problem. My terminal
>>> session is included below.
>>
>> Don't forget to also fix the ids and references in your embedded Qt
>> Frameworks as well!
>
> As shown in my terminal session in my original post, I did change the reference in QtGui, which refers to QtCore. Did I do that correctly? Is there some other reference that needs changing? If so, how do I find that out?
Hmm - oh yeah it looks like you did. You changed both the -id for each
framework, and the reference for each one back to QtCore, so that looks ok.
Have you tried opening the Mac console and looking at the dump when you
run your app? It might give you clues about WHY the program isn't
starting up.
More information about the Qt-interest-old
mailing list