[Qt-interest] binary problem
"Alexander Carôt"
alexander_carot at gmx.net
Wed Oct 21 17:40:37 CEST 2009
... I just used the macdeployqt tool which automates the install_name_tool steps I previously explained. For some reason this works out now.
Thanks anyways
-- A l e x
-------- Original-Nachricht --------
> Datum: Wed, 21 Oct 2009 15:38:49 +0200
> Von: "Alexander Carôt" <alexander_carot at gmx.net>
> An: Oliver Demetz <forenbeitraege at oliverdemetz.de>
> CC: qt-interest at trolltech.com
> Betreff: Re: [Qt-interest] binary problem
> > Are we talking about the Änaked axecutable file, or are we talking
> about
> > the .app bundle?
> > I was considering the latter bundle. In order to have a custom icon for
> > this bundle instead the standard one, zou have to alter the ICONS
> > variable (this leads to changes in the plist file in the bundle and so
> > on, but qt does all that for you)
>
> ah - this is obviously a misunderstanding: I am also talking about the
> bundle *but* I didn't consider changing the application icon. I am talking
> about images - not necessarily icons - which I am using in my app. Via a
> resource file I can embed them into the binary. This work but for some reason I
> loose them if I apply the install_nam_tool to the binary.
>
> > If you mean stadard resource files that are accessible via :/foo.bar,
> > then this is another issue.
>
> Yes, that's it. And my problem appears to be OSX-specific.
>
> Thanks anyways and best
>
> -- A l e x
>
>
>
>
>
>
>
> > >
> > >
> > >
> > >> Regards,
> > >> Oliver
> > >>
> > >> Alexander Carôt schrieb:
> > >>> Hi all,
> > >>>
> > >>> I have a strange problem: I am using a resource file
> (resources.qrc),
> > >> which successfully integrates my icons into the binary. This works
> > fine.
> > >> However, when I modify my binary via install_name_tool (in order to
> > link
> > >> against Qt-libs delivered within my application bundle) it looses the
> > images.
> > >> Does anyone know how to solve this problem ? Here is how I use
> > >> install_name_tool:
> > >>> install_name_tool -id @executable_path/../QtCore
> > >> soundjack.app/Contents/QtCore
> > >>> install_name_tool -id @executable_path/../QtGui
> > >> soundjack.app/Contents/QtGui
> > >>> install_name_tool -id @executable_path/../QtNetwork
> > >> soundjack.app/Contents/QtNetwork
> > >>> install_name_tool -id @executable_path/../QtSql
> > >> soundjack.app/Contents/QtSql
> > >>> install_name_tool -change QtCore.framework/Versions/4/QtCore
> > >> @executable_path/../QtCore soundjack.app/Contents/MacOs/soundjack
> > >>> install_name_tool -change QtGui.framework/Versions/4/QtGui
> > >> @executable_path/../QtGui soundjack.app/Contents/MacOs/soundjack
> > >>> install_name_tool -change QtNetwork.framework/Versions/4/QtNetwork
> > >> @executable_path/../QtNetwork soundjack.app/Contents/MacOs/soundjack
> > >>>
> > >>> Thanks
> > >>>
> > >>> -- A l e x
> > >>> install_name_tool -change QtSql.framework/Versions/4/QtSql
> > >> @executable_path/../QtSql soundjack.app/Contents/MacOs/soundjack
> > >>> install_name_tool -change QtCore.framework/Versions/4/QtCore
> > >> @executable_path/../QtCore soundjack.app/Contents/QtGui
> > >>> install_name_tool -change QtCore.framework/Versions/4/QtCore
> > >> @executable_path/../QtCore soundjack.app/Contents/QtNetwork
> > >>> install_name_tool -change QtCore.framework/Versions/4/QtCore
> > >> @executable_path/../QtCore soundjack.app/Contents/QtSql
> > >
>
> --
> Dr.-Ing. Alexander Carôt
> Email : Alexander at Carot.de
> Tel.: +49 (0)177 5719797
>
>
>
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5
> -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
--
Dr.-Ing. Alexander Carôt
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
More information about the Qt-interest-old
mailing list