1

Topic: How to select version Qt in Linux

By default qmake generally any from Qt4 which I even did not put (possibly it came with system) Found that it is necessary to make a command export QT_SELECT=qt5 after that qmake - version began to show Qt 5.5.1 at me there are two packets: 5.5.1 for the assembly of any software, which not  on newer versions and 5.10.1 as last for development of a new software (yesterday quitted 5.11 but I yet did not swing it). A question - how to select 5.10.1? The task - to collect the program from the console. It is necessary that all was correctly picked up to specify explicitly Directly etc. a way to qmake? Or it insufficiently also there is a risk what even correctly registered qmake will take files from old versions?

2

Re: How to select version Qt in Linux

Hello, x-code, you wrote: XC> By default qmake generally any from Qt4 which I even did not put (possibly it came with system) XC> Found that it is necessary to make a command export QT_SELECT=qt5 XC> after that qmake - version 5.5.1 I began to show Qt I operate with a way not KOSHER for Linux (i.e. not through the manager of packets). I download from here: https://download.qt.io/archive/qt/5.11/5.11.0 https://download.qt.io/archive/qt/5.10/5.10.1 a file with *.run extension - also I install. As for Linux it is actual that the flag "executed" has been installed - that sometimes this flag is necessary   in the manager of files Krusader. Advantage - always fresh software packages. It allows me for UBUNTU 14.04 (newer - do not become on my computer), to work with Qt 5.11.0. Is as well limitation of such method: not probably to take down update through the same synaptic It is necessary Qt to update on  manually - old deleted, new delivered. An alternative variant: to search PPA for sources for Qt and QtCreator - me it it was not possible. XC> at me costs two packets: XC> 5.5.1 for the assembly of any software, which not  on newer versions XC> and 5.10.1 as last for development of a new software (yesterday quitted 5.11 but I yet did not swing it). XC> the Question - how to select 5.10.1? In QtCreator - menu Tools/Options - Build and Run. There - bookmark Kits. XC> the task - to collect from the console the program. It is necessary that all was correctly picked up etc. XC> Directly explicitly to specify a way to qmake? Or it insufficiently also there is a risk what even correctly registered qmake will take files from old versions? QMake file _.pro looks. That in this file is - that it and does

3

Re: How to select version Qt in Linux

Hello, x-code, you wrote: XC> Directly explicitly to specify a way to qmake? Or it insufficiently also there is a risk what even correctly registered qmake will take files from old versions? Specify a way to qmake. At you it turns out Makefile in which there will be two lines of type such: INCPATH =-I/usr/lib64/qt4/mkspecs/linux-g ++-I.-I/usr/include/QtCore-I/usr/include/QtGui-I/usr/include-I. LIBS = $ (SUBLIBS)-L/usr/lib64-lQtGui-lQtCore-lpthread If they do not satisfy you, correct them.

4

Re: How to select version Qt in Linux

Hello, x-code, you wrote: XC> Directly explicitly to specify a way to qmake? Or it insufficiently also there is a risk what even correctly registered qmake will take files from old versions? Yes, I and do. From pluses: you always what qmake you launch... Also that is good, qmake is blunt enough not to pick up anything superfluous, and is clever enough to take only that that is necessary, without superfluous dependences.

5

Re: How to select version Qt in Linux

Hello, AlexGin, you wrote: AG> I operate with a way not KOSHER for Linux (i.e. not through the manager of packets)..... AG> the Alternative variant: to search PPA for sources for Qt and QtCreator - me it it was not possible. A kosher way it  from Qt: installation/removal/update without a headache. AG> QMake file _.pro looks. That in this file is - that it and does not correctly. By default qmake it is anchored to "the" version Qt.

6

Re: How to select version Qt in Linux

Hello, Skorodum, you wrote: AG>> QMake file _.pro looks. That in this file is - that it and does S> not correctly. By default qmake it is anchored to "the" version Qt. +100500 I in that sense, in the absence of different versions Qt, QMake will work with the and to fulfill all from *.pro a file.