FS#35355 - [qt4][qt5] when Qt4 is installed alongside Qt5, qmake should be Qt4.

Attached to Project: Arch Linux
Opened by Tomaz (tcanabrava) - Saturday, 18 May 2013, 18:00 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 19 May 2013, 07:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: when Qt4 is installed alongside Qt5, qmake should be Qt4.

Additional info:
While working in a Qt4 based application with Thiago Macieira, from the Qt Project, the following conversation was made:

<thiago> anyway, I want to make that an error.
<tomaz> if you make that an error, how would I compile on my sistem that has qt5 and qt4?
<thiago> qmake is qt4
<tomaz> qmake is qt5 here.
<thiago> that's wrong
<thiago> qmake must be qt4 if qt4 is installed
<tomaz> â subsurface git:(master) â qmake --version
<tomaz> QMake version 3.0
<tomaz> Using Qt version 5.0.2 in /usr/lib
<thiago> is that qtchooser?
<thiago> or is that the real qmake?
<tomaz> real qmake.
<thiago> well, your distro is non-standard
<thiago> it's wrong, unsupported and *specifically* banned by the Qt Project
<thiago> report a bug
<thiago> they MUST change. qmake must default to Qt 4.
<tomaz> â subsurface git:(master) â which qmake
<tomaz> /usr/bin/qmake
<thiago> qmake -list-versions
<thiago> what distro is that?
<tomaz> â subsurface git:(master) â qmake -list-versions
<tomaz> ***Unknown option -list-versions
<tomaz> Arch
<thiago> please report a bug
<thiago> they are wrong, they must fix it
<tomaz> ok.
<tomaz> but while they doesn't, how should I compile when you set that to fail?
<thiago> qmake must be qt 4
<thiago> so fix the distro
<thiago> to find Qt 5, you set QT_SELECT=5 and qmake will know where it is

Steps to reproduce:
always
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Sunday, 19 May 2013, 07:02 GMT
Reason for closing:  Won't fix
Additional comments about closing:  default is 5. Use qtchooser variables/configs to set a different Qt toolkit for your user.
Comment by Gustavo Alvarez (sl1pkn07) - Saturday, 18 May 2013, 19:13 GMT
install qtchooser from extra

└───╼ qmake --version
QMake version 2.01a
Using Qt version 4.8.4 in /usr/lib
Comment by Andrea Scarpino (BaSh) - Sunday, 19 May 2013, 07:01 GMT
We use qtchooser. And you were using it too.

% qtchooser -list-versions
3
5
4
default

default points to latest (which is 5).

Loading...