[Qt-interest] double-click on my application bundle doesn't work

Daniel Price daniel.price at fxhome.com
Thu Dec 3 13:59:07 CET 2009


What was the error in the console?

Definitely sounds like a dylib path-mapping problem. I remember how much pain this was get working. Are you using just the core lib or WebKit et al?

My recommendation is that you just use the mac deploy project.

> -----Original Message-----
> From: nico remy [mailto:nico97492 at gmail.com]
> Sent: 03 December 2009 12:43
> To: Daniel Price
> Cc: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] double-click on my application bundle
> doesn't work
> 
> I haven't checked the console, thanks for the tip.
> I think I remapped the binary correctly, here is an snippet of otool's
> output for the binary:
> 
> @executable_path/../Frameworks/QtXml.framework/Versions/4/QtXml
> (compatibility version 4.5.0, current version 4.5.3)
> @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui
> (compatibility version 4.5.0, current version 4.5.3)
> 
> I wrote my own script to do the remappings (wasn't aware of the mac
> deploy project), and the app works fine if I double click the binary
> instead of the bundle.
> 
> 
> On Thu, Dec 3, 2009 at 11:34 AM, Daniel Price <daniel.price at fxhome.com>
> wrote:
> > Any error messages in the console? When developing for Mac OS, you
> MUST keep an eye on the console. Sounds like binary has not been
> remapped to look for the Qt dylibs.
> >
> > Did you use the qt mac deploy project?
> >
> >> -----Original Message-----
> >> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> >> bounces at trolltech.com] On Behalf Of nico remy
> >> Sent: 03 December 2009 10:27
> >> To: qt-interest at trolltech.com
> >> Subject: [Qt-interest] double-click on my application bundle doesn't
> >> work
> >>
> >> Hi,
> >>
> >> I have an app that works on Linux and Windows and I am trying to
> port
> >> it to MacOS (using Qt4.5 et Snow Leopard).
> >> I created an app bundle, moved the required frameworks in it and
> >> played with install_name_tool.
> >> If I run the app from a terminal myapp.app/Contents/MacOS/myapp,
> >> everything works as expected (the GUI shows up, etc). But if I
> >> double-click on the bundle, the icon briefly appears in the dock and
> >> disappears, and that's it. If from the Finder, I go into the bundle,
> >> into Contents/MacOS and double-click on myapp, it opens a terminal
> and
> >> the GUI.
> >> I compiled the app from the command line, using qmake to generate
> >> makefiles.
> >> Does this look like a common mistake (e.g., something I should add
> to
> >> qmake's CONFIG) ?
> >> Thank you for your help,
> >>
> >> Nicolas
> >> _______________________________________________
> >> Qt-interest mailing list
> >> Qt-interest at trolltech.com
> >> http://lists.trolltech.com/mailman/listinfo/qt-interest
> >>
> >> No virus found in this incoming message.
> >> Checked by AVG - www.avg.com
> >> Version: 9.0.709 / Virus Database: 270.14.89/2539 - Release Date:
> >> 12/02/09 19:43:00
> >
> > This email is confidential. It may also be privileged or otherwise
> protected by work product immunity or other legal rules. If you are not
> the intended recipient please notify the sender. Please delete the
> message from all places in your computer where it is stored. You should
> not copy the email or use it for any purpose or disclose its contents
> to any other person.To do so may be unlawful. Email is an informal
> means of communicating and may be subject to data corruption
> accidentally or deliberately. For this reason it is inappropriate to
> rely on advice contained in an email without obtaining written
> confirmation of it first.
> >
> > FXhome Limited is a limited company registered in England and Wales.
> Registered number: 04172812. Registered office: The Henderson Business
> Centre, Ivy Road, Norwich, Norfolk, NR5 8BF, U.K.
> >
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.709 / Virus Database: 270.14.89/2539 - Release Date:
> 12/02/09 19:43:00




More information about the Qt-interest-old mailing list