next up previous contents
Next: Building QGIS Up: Building and Installing QGIS Previous: GDAL/OGR   Contents

Qt

Qt 3.1.2 or higher is required in order to compile QGIS. You may already have Qt on your system. If so, check to see if you have version 3.1.2 or later. You can check the Qt version using the find command:
  find ./ -name qglobal.h 2>/dev/null | xargs grep QT_VERSION_STR
If you have the locate utility installed you can do the same more quickly using:
  locate qglobal.h | xargs grep QT_VERSION_STR
In either case the result should look something like this:
   #define QT_VERSION_STR   "3.3.1"
In the example above, Qt 3.3.1 is installed.

If Qt is not installed, you will have to install the Qt development package for your distribution. If you are not able to install the required Qt packages, you will have to build from source.

To install Qt from source:

  1. Download Qt from http://www.trolltech.com/developer (choose the Qt/X11 Free Edition)
  2. Unpack the distribution
  3. Follow directions provided in the distribution directory (doc/html/install-x11.html)
  4. Use whatever configure options you like but make sure you include -thread for use with QGIS. You can configure Qt with minimal options:
        ./configure -thread
    

  5. Complete the installation per the instructions provided in the Qt documentation (see step 3)


next up previous contents
Next: Building QGIS Up: Building and Installing QGIS Previous: GDAL/OGR   Contents
Gary Sherman 2004-10-01