Page 1 of 1

How to upgrade Qt in a clean way?

Posted: Tue Aug 14, 2007 12:48 pm
by admin
[Subject moved from FAQ page]

Sesarray is built upon the most recent version of Qt. This version is not always available in all Linux distributions as a standard. Hence, it is your responsibility to upgrade and to compile it.

I suppose that you installed sesarray in "/usr/local/sesarray" and that it was compiled with Qt 4.1.1. You want to upgrade to Qt-4.1.2

First of all, compile the new Qt release and install it, for instance in "/usr/local/Trolltech/Qt-4.3.0". Make sure that your PATH points to "/usr/local/Trolltech/Qt-4.3.0/bin". An option would be to create a symbolic link to current Qt release like this:

Code: Select all

$ cd /usr/local/Trolltech
$ ln -s Qt-4.3.0 qt

In your ~/.bashrc (or ~/.profile), you must have:

Code: Select all

export PATH=/usr/local/Trolltech/qt
setenv PATH /usr/local/Trolltech/qt

After compiling and installing a new Qt release, you simply update the symbolic link:

Code: Select all

$ cd /usr/local/Trolltech
$ rm qt
$ ln -s Qt-4.3.0 qt

You can safely remove all preceding Qt releases in "/usr/local/Trolltech" except if you still use old sesarray releases or other softwares based on these Qt releases.

Test whether the new Qt release is available:

Code: Select all

$ qmake -v
QMake version: 2.00a
Using Qt version 4.3.0 in /usr/local/Trolltech/Qt-4.3.0/lib

Theoretically between minor version changes (e.g. from 4.3.0 to 4.3.1), it is not necessary to rebuild all sesarray package from the beginning. However, it is safer to recompile all for each new Qt release:

Code: Select all

$ cd sesarray-2.0.0-snapshot-20070810
$ make clean
$ make
$ make instal