[Qt-interest] binary problem

"Alexander Carôt" alexander_carot at gmx.net
Wed Oct 21 15:38:49 CEST 2009


> 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



More information about the Qt-interest-old mailing list