[Qt-interest] qmake and absolute paths pointing to Qt build directory

Alexander Kurz lewi.alex at gmail.com
Fri Jan 22 08:44:12 CET 2010


for me the approach with a qt.conf file in the bin directory of the QT build
seems to work like a charm.
It overrides the hardcoded paths in the binaries. (qmake -querey)

the qt.conf contains 2 lines:

[Paths]
Prefix=$(QTDIR)

well I introduced QTDIR env variable again but now the only thing I got to
do is change QTDIR, add its bin\ directory to path and I can build my
applications with any QT build for any platform regardless who or where it
was build in the first place...

Thank you for the hint.
Alex


On Thu, Jan 21, 2010 at 7:29 PM, Thiago Macieira <thiago at kde.org> wrote:

> Em Quinta-feira 21 Janeiro 2010, às 12:11:49, Sean Harmer escreveu:
> > On Thursday 21 January 2010 11:03:33 Andreas Pakulat wrote:
> > > On 21.01.10 11:46:19, Alexander Kurz wrote:
> > > > The idea was do use QTDIR env variable to point to the Qt directory
> to
> > > > use
> > >
> > > That variable has been deprecated by Qt Software/Trolltech with the
> > > introduction of Qt4.0 and is not use by any Qt code anymore.
> >
> > Except by the syncqt tool which requires it. Although you only need that
> if
> > you are building from a git checkout.
>
> Because syncqt wasn't run by anyone else outside the Qt offices before the
> Git
> repository became open. The released packages already have include/ pre-
> generated. It's only needed if you try to build Qt out of its source dir,
> but
> then configure takes care of running it.
>
> The headers don't change in released versions. :-)
>
> That tool is actually quite old.
>
> commit 77e957ca7dad799445942f9ea05d380713af570a
> Date:   Wed Feb 25 18:12:02 1998 +0100
>
>    Scripts for internal TT makefile system
>
>    [imported from CVS by cvs2p4 at 1999/10/31 19:01:34]
>
>    [git-p4: depot-paths = "//depot/qt/main/": change = 7023]
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Product Manager - Nokia, Qt Development Frameworks
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100122/b5ccdf89/attachment.html 


More information about the Qt-interest-old mailing list