Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, May 2008
install_name_tool


Message 1 in thread

Hi -

I am currently trying to distribute a binary. I used some calls like that :

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 -change /Library/Frameworks/QtCore.framework/Versions/4/QtCore @executable_path/../QtCore soundjack.app/Contents/MacOs/soundjack
install_name_tool -change /Library/Frameworks/QtGui.framework/Versions/4/QtGui @executable_path/../QtGui soundjack.app/Contents/MacOs/soundjack
install_name_tool -change /Library/Frameworks/QtNetwork.framework/Versions/4/QtNetwork @executable_path/../QtNetwork soundjack.app/Contents/MacOs/soundjack
install_name_tool -change /Library/Frameworks/QtCore.framework/Versions/4/QtCore @executable_path/../QtCore soundjack.app/Contents/QtGui
install_name_tool -change /Library/Frameworks//QtCore.framework/Versions/4/QtCore @executable_path/../QtCore soundjack.app/Contents/QtNetwork

This worked always fine one 10.4. (Tiger) but now on 10.5. the binary is not changing. It still keeps the old lib-Links but the command doesn't complain about problems. Does anyone know how to approach this problem ?

Thanks

-- A l e x




-- 
 [ signature omitted ] 

Message 2 in thread

I have done similar things with install_name_tool, but never  
encountered any problems on Leopard.
I guess you have checked that soundjack binary actually contains  
dependencies against e.g. /Library/Frameworks/QtCore.framework/ 
Versions/4/QtCore (with otool -L soundjack.app/Contents/MacOs/ 
soundjack)?

-Richard

On May 19, 2008, at 4:02 PM, Alexander Carôt wrote:

> Hi -
>
> I am currently trying to distribute a binary. I used some calls like  
> that :
>
> 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 -change /Library/Frameworks/QtCore.framework/ 
> Versions/4/QtCore @executable_path/../QtCore soundjack.app/Contents/ 
> MacOs/soundjack
> install_name_tool -change /Library/Frameworks/QtGui.framework/ 
> Versions/4/QtGui @executable_path/../QtGui soundjack.app/Contents/ 
> MacOs/soundjack
> install_name_tool -change /Library/Frameworks/QtNetwork.framework/ 
> Versions/4/QtNetwork @executable_path/../QtNetwork soundjack.app/ 
> Contents/MacOs/soundjack
> install_name_tool -change /Library/Frameworks/QtCore.framework/ 
> Versions/4/QtCore @executable_path/../QtCore soundjack.app/Contents/ 
> QtGui
> install_name_tool -change /Library/Frameworks//QtCore.framework/ 
> Versions/4/QtCore @executable_path/../QtCore soundjack.app/Contents/ 
> QtNetwork
>
> This worked always fine one 10.4. (Tiger) but now on 10.5. the  
> binary is not changing. It still keeps the old lib-Links but the  
> command doesn't complain about problems. Does anyone know how to  
> approach this problem ?
>
> Thanks
>
> -- A l e x
>
>
>
>
> -- 
> Dipl.-Ing. Alexander Carôt
> PhD Candidate
> Email : Alexander@xxxxxxxx
> Tel.: +49 (0)177 5719797
>
>
>
> 249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.
> Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>



--
 [ signature omitted ] 

Message 3 in thread

... I just figured that it doesn't like the full path for the libs. I took away the /Libraries/Frameworks  and then it worked.

Thanks anyway

-- A l e x


-------- Original-Nachricht --------
> Datum: Mon, 19 May 2008 16:02:36 +0200
> Von: "Alexander Carôt" <alexander_carot@xxxxxxx>
> An: qt-interest@xxxxxxxxxxxxx
> Betreff: install_name_tool

> Hi -
> 
> I am currently trying to distribute a binary. I used some calls like that
> :
> 
> 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 -change
> /Library/Frameworks/QtCore.framework/Versions/4/QtCore @executable_path/../QtCore soundjack.app/Contents/MacOs/soundjack
> install_name_tool -change
> /Library/Frameworks/QtGui.framework/Versions/4/QtGui @executable_path/../QtGui soundjack.app/Contents/MacOs/soundjack
> install_name_tool -change
> /Library/Frameworks/QtNetwork.framework/Versions/4/QtNetwork @executable_path/../QtNetwork
> soundjack.app/Contents/MacOs/soundjack
> install_name_tool -change
> /Library/Frameworks/QtCore.framework/Versions/4/QtCore @executable_path/../QtCore soundjack.app/Contents/QtGui
> install_name_tool -change
> /Library/Frameworks//QtCore.framework/Versions/4/QtCore @executable_path/../QtCore soundjack.app/Contents/QtNetwork
> 
> This worked always fine one 10.4. (Tiger) but now on 10.5. the binary is
> not changing. It still keeps the old lib-Links but the command doesn't
> complain about problems. Does anyone know how to approach this problem ?
> 
> Thanks
> 
> -- A l e x
> 
> 
> 
> 
> -- 
> Dipl.-Ing. Alexander Carôt
> PhD Candidate
> Email : Alexander@xxxxxxxx
> Tel.: +49 (0)177 5719797
> 
> 
> 
> 249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.
> Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/

-- 
 [ signature omitted ]