The latest release of Qt from Trolltech is available for download from the testing repository, along with full source code:
qt4: QT graphical toolkit, version 4.3.0
qt4: Qt is a comprehensive development framework that includes
qt4: an extensive array of features, capabilities and tools
qt4: that enable development of high-performance, cross-platform
qt4: rich-client and server-side applications.
qt4: Website: http://trolltech.com/products/qt
qt4: License GNU General Public License, version 2
qt4: (only for use with open source aplications, commercial
qt4: applications need payed licenses).
*General package info:
- The package's base-name is qt4, not qt. This will prevent Qt3 from being removed during a dist-upgrade for example and will allow you to have both Qt versions installed and working side-by-side.
- The installation prefix is /usr/lib/qt-4.3.0, with a symlink pointing to /usr/lib/qt4.
- Symlinks in /usr/bin for Qt4's qmake, qtconfig, linguist, designer, lrelease and lupdate, respectively: qmake4, qt4config, linguist4, designer4, lrelease4, lupdate4.
- To configure Qt4's appearance run qt4config
- Menu entries made for Qt4's Linguist, Assistant and Designer.
- SQL drivers built (as plugins): Sqlite3, MySQL and PostgreSQL drivers.
*Building apps against Qt4:
- The $QTDIR environment variable in VL 5.8 is set by default to use Qt3 (in other words, /usr/lib/qt). If the source you need to compile has a configure script, then run it like this in order to override the QTDIR variable:
QTDIR="/usr/lib/qt4" ./configure --prefix=/usr
However, most Qt-based apps' configure scripts will have an option to set the Qt prefix using a flag. The flag may vary, but it is usually one of these:
You can run ./configure --help
to check for the correct Qt flag for that particular app.
If you use the flag, then you won't need the environment variable override when you configure the source:
./configure --prefix=/usr --qtdir=/usr/lib/qt4
- If the Qt4 sources that need to be compiled use only qmake to create a Makefile, then you will have to use qmake4
, since the qmake
binary is for Qt3.
- If you get a segmentation fault error while compiling a Qt4 app, then you will most likely need to make GCC use libiconv:
LDFLAGS="-liconv" QTDIR="/usr/lib/qt4" ./configure --prefix=/usr
LDFLAGS="-liconv" ./configure --prefix=/usr --qtdir=/usr/lib/qt4
That should solve the segmentation faults.
Post any problems with that package in this thread.