[Qt-interest] binary problem

Oliver Demetz forenbeitraege at oliverdemetz.de
Wed Oct 21 11:19:42 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)

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
> 




More information about the Qt-interest-old mailing list