[Qt-interest] binary problem

"Alexander Carôt" alexander_carot at gmx.net
Wed Oct 21 11:48:40 CEST 2009


> I think you have to alter the ICONS variable in your project file on 
> Macosx. Youll need a icns file (create it with icon composer in 
> /Developer/Applications/Tools)

The application actually works and if I copy the binary to a different place (where actually no images,icons etc.) exist I opens up and shows the images in the desired way. Only when I modify the binary with install_name_tool I loose them. Where in that context do you think is the problem related to the ICONS variable and file ?

Thanks

-- 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



GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01



More information about the Qt-interest-old mailing list