bino-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bino-list] Selecting Qt versions


From: Ben Simons
Subject: [Bino-list] Selecting Qt versions
Date: Mon, 15 Feb 2016 22:43:20 +0000

Hi

 

For those struggling with various versions of Qt in linux, here’s a good blog.

 

  https://harishnavnit.wordpress.com/2014/03/24/handling-multiple-versions-of-qt/

 

 

Essentially, the solution is to set the environment variable: QT_SELECT

“qtchooser” looks like it should do it for you, but it seems it just tells

you what’s going on. It does not choose, as such.

 

This is what it looks like on my machine.

(Gentoo Linux, 4.1.12-gentoo #1 SMP PREEMPT Tue Jan 12 13:03:42 AEDT 2016 x86_64)

 

 

     $ qtchooser

    Usage:

      qtchooser { -l | -list-versions | -print-env }

      qtchooser -install [-f] [-local] <name> <path-to-qmake>

      qtchooser -run-tool=<tool name> [-qt=<Qt version>] [program arguments]

      <executable name> [-qt=<Qt version>] [program arguments]

 

    Environment variables accepted:

     QTCHOOSER_RUNTOOL  name of the tool to be run (same as the -run-tool argument)

     QT_SELECT          version of Qt to be run (same as the -qt argument)

 

     $ qtchooser -print-env

    QT_SELECT="default"

    QTTOOLDIR="/usr/lib64/qt4/bin"

    QTLIBDIR="/usr/lib64/qt4"

 

     $ qmake -v

    QMake version 2.01a

    Using Qt version 4.8.6 in /usr/lib64/qt4

 

     $ qtchooser -list-versions

    4

    5

    default

    qt4-x86_64-pc-linux-gnu

    qt4

    qt5-x86_64-pc-linux-gnu

    qt5

 

     $ export QT_SELECT=5

 

     $ qmake -v

    QMake version 3.0

    Using Qt version 5.4.2 in /usr/lib64

 

     $ qtchooser -print-env

    QT_SELECT="5"

    QTTOOLDIR="/usr/lib64/qt5/bin"

    QTLIBDIR="/usr/lib64"

     $


UTS CRICOS Provider Code: 00099F DISCLAIMER: This email message and any accompanying attachments may contain confidential information. If you are not the intended recipient, do not read, use, disseminate, distribute or copy this message or attachments. If you have received this message in error, please notify the sender immediately and delete this message. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of the University of Technology Sydney. Before opening any attachments, please check them for viruses and defects. Think. Green. Do. Please consider the environment before printing this email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]