Bug#781516: [qtchooser] Qtchooser will always find qt5
On Wednesday 01 April 2015 11:46:38 Dmitry Shachnev wrote:
> Control: tags -1 moreinfo
>
> Hi David,
>
> On Mon, 30 Mar 2015 13:51:51 +0300, David Baron wrote:
> > Attempts to use qmake->qtchooser always yields qt5 libraries. Cannot make
> > anything in qt4 unless manually running qmake-qt4 and ./configure may not
> > set up completely correct Makefile.
> >
> > [snip]
> >
> > Suggests (Version) | Installed
> > ==========================-+-===========
> > qt4-default |
> > qt5-default | 5.3.2+dfsg-4+b1
>
> You have qt5-default installed, which means that *default* Qt will be 5.x
> for you. If you want to use e.g. qmake from Qt 4, you need to either call it
> as ‘qmake -qt4’, or export QT_SELECT=4. This is how qtchooser works.
>
> If any of these methods does not work, then it is a bug. But I don’t see
> a mention of that in your bug report.
>
> --
> Dmitry Shachnev
OK. I did not know such a package was around. Since I assume many of us will
be compiling for either or both, this solution (mutually exclusive packages)
is not, in my mind, the best. I have requested from one dev so far that the
QT_SELECT by done by his configure script.
Another alternative could be a /etc/default/qtchooser. This could specify even
more default properties, if desirable. Comment out the build alternative not
desired
#QT_SELECT=4
QT_SELECT=5
I guess a situation of name-your-poison.
Can rephrase bug as "wishlist."
Reply to: