[Development] qtchooser (was: Re: Adding new third party component three.js to Qt?)

Kevin Kofler kevin.kofler at chello.at
Sun Jan 18 17:06:21 CET 2015


Thiago Macieira wrote:
> Because it also works for those of us who have multiple Qt 5 builds. I can
> run:
> qmake -qt5
> qmake -qt5-release
> qmake -qt5-icc
> qmake -qt5-clang
> qmake -qt5-mips
> qmake -qt5-static
> qmake -qt5.1

Actually, thinking of it, the right solution for this use case would be to 
just qtchooser-wrap qmake-qt5 and use:
qmake-qt5
qmake-qt5 -qt release
qmake-qt5 -qt icc
qmake-qt5 -qt clang
qmake-qt5 -qt mips
qmake-qt5 -qt static
qmake-qt5 -qt 5.1

Selecting between different Qt 5 versions is a different thing from 
selecting the major version of Qt, because any given program will typically 
(with a few exceptions) only work with one major version of Qt, whereas 
those different variants of Qt 5 can typically all build the same programs. 
(Of course, 5.1 is likely too old for a lot of new software, but you get the 
idea.)

In other words:
* qtchooser does not conflict with the suffixed binaries, and in particular
  does not preclude implementing the latter,
* it can remain supported for those special use cases where it is actually
  useful, but should be deprecated for the common case (one build per major
  Qt version).

        Kevin Kofler




More information about the Development mailing list