[Qt-interest] binary problem

Oliver Demetz forenbeitraege at oliverdemetz.de
Wed Oct 21 12:04:27 CEST 2009


Alexander Carôt schrieb:
>> 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 ?
> 
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)

If you mean stadard resource files that are accessible via :/foo.bar, 
then this is another issue. I am not even  sure, whether mac os x even 
considers icons that are set by the calls you need on Windows to set the 
icon.
There are no icons at all on mac os, or am I wrong?

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




More information about the Qt-interest-old mailing list