Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install two versions of Qt and tell the application which to use?

Tags:

qt

d

versions

I am developing an application in Qt, but using D language (with QtD binding). I've noticed that my app crashes with Qt 4.7.x, so I need to use Qt 4.6.2 instead. However in my system Qt 4.7.2 is installed. Unfortunately I neither make QtD work with the latest Qt versions nor (I'm afraid) count on QtD developers...

The only thing I need to make my application install in system Qt 4.6.2 libs and use it, but let all the other applications still use Qt 4.7.2. Is it possible? If it is, how to do it then?

like image 467
Mitu Avatar asked May 11 '11 10:05

Mitu


People also ask

How do I tell what version of Qt is installed?

Qt Creator automatically detects the Qt versions that are registered by your system or by installers. To view detailed information for each Qt version, select it in the list and select Details in the Qt version for section. To add Qt versions, select Tools > Options > Build & Run > Qt Versions.

How do I install Qt Tools?

Download the InstallerGo to your Qt account's download page. By selecting the appropriate unified Qt online installer for your OS, you can install commercial or open source versions of Qt, development tools, and other components. The online installer asks for your Qt account credentials.


1 Answers

The answer to your question is the version of Qt is determined by the qmake you use to generate your Makefile.

/opt/QtSDK/Qt-4.6.2/bin/qmake

/opt/QtSDK/Qt-4.7.3/bin/qmake

Each will use the library in the directory.

like image 104
JadziaMD Avatar answered Dec 16 '22 05:12

JadziaMD