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 you build Qt. Just follow your installation instructions for Qt and qmake will be built automatically. If you don't want to know how to build qmake manually then you can skip this section altogether.

### Installing qmake manually

Before you start to build Qt manually you need to make sure that the following environment variables are set:

- QMAKESPEC
  This needs to 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++.

- QTDIR
  This needs to be set to where you unpacked the Qt package. For example, c:\qt and \local\qt

Once you have set up the environment variables you are now ready to build qmake. First go into the qmake directory which is usually something like c:\qt\qmake. Then type make or nmake depending on your compiler.

When it has finished building, qmake is now ready for use.

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