[PATCH] Don't use "qmake-qt4" as qmake

Thiago Macieira thiago at macieira.org
Wed May 15 06:11:01 PDT 2013


On quarta-feira, 15 de maio de 2013 08.37.12, Amit Chaudhuri wrote:
> Thiago,
> 
> Re: Change submitted:
> https://codereview.qt-project.org/56118
> 
> When I look at the commit message I see a suggestion that there is still a
> hanging issue over the uic location? Have I got that right?

Yes, I'm asking our resident qmake expert how to get the location. When I get 
the information, I'll update the patch to version 2 and we'll approve it.

> Re: qmake-qt4 in general, why do any distributions mess with the naming of
> qmake? Is it a bodge to distinguish Qt4 from 5? Surely the Qt team would
> have that covered off in a consistent manner on the various platforms? I'm
> interested in this one as I'm looking to run both 4 & 5 installations on at
> least 2 platforms starting next week!

It was originally to distinguish from Qt 3, which also had a program called 
qmake. Since both programs can't be installed at the same time in /usr/bin, 
one had to give way. Qt 3 has been End-of-Life for years, so most distros have 
changed their /usr/bin/qmake to Qt 4's. 

Qt 5 also has a qmake. I tried to get the name changed before the 5.0 release, 
but my proposal was rejected. Instead, the Qt Project recommends that none of 
the Qt's qmakes be installed in /usr/bin, but instead qtchooser be there.

That allows:
$ qmake -v
QMake version 2.01a
Using Qt version 4.8.5 in /home/thiago/obj/qt/qt-4.8-release/lib

$ QT_SELECT=5 qmake -v
QMake version 3.0
Using Qt version 5.1.0 in /home/thiago/obj/qt/qt5/qtbase/lib


-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130515/0671ed97/attachment.sig>


More information about the subsurface mailing list