[Interest] current importance/interest of QTDIR?

Nikos Chantziaras realnc at gmail.com
Tue Feb 17 17:27:26 CET 2015


On 17/02/15 12:01, René J.V. Bertin wrote:
> Hello,
>
> I've gotten queries like the ones copied below, in the context of my efforts to provide co-installable Qt4 and Qt5 installations in MacPorts. See also the outputs of qmake -query below.
>
> I seem to recall that at some point (Qt 2 ? Qt 3?) one could hardly get away from setting QTDIR even for running Qt applications built against a single Qt version. The online documentation still refers to QTDIR, but the variable doesn't appear to be set even in my Linux/KDE desktop and I haven't had to use it on OS X either (IIRC I've even had a left-over QTDIR pointing to a Qt 3 install for a while). How up-to-date is that online documentation w.r.t. its references to QTDIR?
>
> Also, is it required to configure Qt with a single -prefix=Foo for QTDIR to make sense (see question 2 in the forwarded message below)? If so, I suppose one could write a script that sets up a collection of symlinks in a directory of choice so that QTDIR can be set to that "shadow bundle". Before I roll my own, does something like that exist already?

QTDIR isn't used anymore. If you want to install to different prefixes, 
just do so. No QTDIR needed. If you call the right qmake that was 
installed in the prefix you want, all build paths will be correct for 
that prefix.




More information about the Interest mailing list