On Nov 3, 2010, at 1:38 PM, ext Danny Price wrote:

> Thanks for the heads-up.
> 
> Out of interest, how can you use rpath with qmake, in the pro. file? I still 
> use excutable_path, run as a post-link command on my dylibs.

We do it in Qt Creator like here for the utility libraries:
http://qt.gitorious.org/qt-creator/qt-creator/blobs/master/src/rpath.pri

I.e. set the install_name for the lib (let's call it "A") that will be linked 
against. This way code that link against A refer to it this way. Unfortunately, 
with @executable_path, this approach is of no use if you link to A from two 
different locations that would require different "install_name"s for A.
With the use of @rpath, the search path can be specified for the different 
locations individually (and still be relative by using an @rpath that contains 
e.g. @loader_path). For code linking to Qt Creator libs or plugins we require 
an @rpath pointing to the Contents directory of the Qt Creator.app (like done 
in line 6 of rpath.pri).

(Note, when using QMAKE_LFLAGS_SONAME, qmake will append the name of the 
library to the actual line passed to the linker.)

Br, Eike

> On Mon, Nov 1, 2010 at 2:21 PM, <eike.zil...@nokia.com> wrote:
> I'm wondering if anyone actually compiles Qt Creator on Mac OS 10.4 by 
> themselves (we don't provide binary packages for that platform anymore).
> 
> If you do so, read on.
> 
> A recent change (49b86e771761b3a9a1799d11f777b13077c6305e) requires you to 
> specify that you want to build Qt Creator 10.4-compatible by either
> a) setting the env var QTC_TIGER_COMPAT=1, or
> b) calling qmake -r TIGER_COMPAT_MODE=1
> 
> Technical reason is a switch to use @rpath instead of @executable_path, 
> because the latter is an inflexible beast (and @loader_path too) and makes 
> using the Qt Creator libs directly in e.g. tests next to impossible.
> 
> Please notify me of any problems you encounter.
> 
> ++ Eike
> _______________________________________________
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
> 
> <ATT00001..txt>


_______________________________________________
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to