Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
Notes:
|
For the open source version you do not need a license file.
Note: The install path must not contain any spaces.
In order to build and use Qt, the PATH environment variable needs to be extended:
PATH - to locate qmake, moc and other Qt tools
This is done by adding c:\Qt\4.3.5\bin to the PATH variable.
For newer versions of Windows, PATH can be extended through the Control Panel|System|Advanced|Environment variables menu and for older versions by editing c:\autoexec.bat.
You may also need to ensure that the locations of your compiler and other build tools are listed in the PATH variable. This will depend on your choice of software development environment.
Note: If you don't use the configured shells, which is available in the application menu, in the Qt Open Source Edition, configure requires that sh.exe is not in the path or that it is run from msys. This also goes for mingw32-make.
To configure the Qt library for your machine type:
C: cd \Qt\4.3.5 configure
Type configure -help to get a list of all available options.
If you have multiple compilers installed, and want to build the Qt library using a specific compiler, you must specify a qmake specification. This is done by pasing -platform <spec> to configure; for example:
configure -platform win32-msvc
In some cases you need to set up the compilation environment before running configure in order to use the right compiler. For instance, you need to do this if you have Visual Studio 2005 installed and want to compile Qt using the x64 compiler because the 32-bit and 64-bit compiler both use the same qmake specification file. This is usually done by selecting Microsoft Visual Studio 2005|Visual Studio Tools|<Command Prompt> from the Start menu.
The actual commands needed to build Qt depends on your development system. For Microsoft Visual Studio to create the library and compile all the demos, examples, tools and tutorials type:
nmake
Note: If you later need to reconfigure and rebuild Qt from the same location, ensure that all traces of the previous configuration are removed by entering the build directory and typing make confclean before running configure again.
If you are new to Qt, we suggest that you take a look at the demos and examples to see Qt in action. Run the Qt Examples and Demos either by typing qtdemo on the command line or through the desktop's Start menu.
You might also want to try the following links:
We hope you will enjoy using Qt. Good luck!
Copyright © 2008 Trolltech | Trademarks | Qt 4.3.5 |