Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

[Prev: Introduction to qmake] [Home] [Next: The 10 minute guide to using qmake]

## Installing qmake

qmake is built by default when TQt is built.

This section explains how to build qmake manually. Skip ahead to The 10 minute guide to using qmake, if you already have qmake.

#### Installing qmake manually

Before building TQt manually the following environment variables must be set:

- QMAKESPEC
  This must be set to the platform and compiler combination that you are using on your system.
  For example, if you are using Windows and Microsoft Visual Studio, you would set this environment variable to win32-msvc. If you are using Solaris and g++, you would set this environment variable to solaris-g++.

  The following is a list of environment variables available to choose from when setting QMAKESPEC:

  aix-64 netbsd-g++ solaris-cc unixware7-g++ aix-g++ linux-cxx openbsd-g++ solaris-g++ aix-xlc linux-g++ openunix-cc sunos-g++ win32-g++ bsdi-g++ linux-icc qnx-g++ tru64-cxx win32-msvc hurd-g++ linux-kcc tru64-g++ win32-watc freebsd-g++ macx-pbuilder ultrix-g++ win32-visa macx-g++ unixware-g solaris-64 unixware7-cc

  The environment variable should be set to qws/envvar where envvar is one of the following:

  linux-arm-g++ linux-generic-g++ linux-mips-g++ linux-x86-g++ linux-freebsd-g++ linux-ipaq-g++ linux-solaris-g++ qnx-rtp-g++

- TQTDIR
  This must be set to where TQt is (or will be) installed. For example, c:\qt and \local\qt

Once the environment variables are set go into the qmake directory, $TQTDIR/qmake, e.g. C:\qt\qmake. Now run make or nmake depending on your compiler.

When the make has completed, qmake is ready for use.

[Prev: Introduction to qmake] [Home] [Next: The 10 minute guide to using qmake]