Czech

Gt 4.1

Qt 4.1 on WinXP


06.08.25

Installation and configuration

Qt 4.1 for WinXP download from
http://www.trolltech.com/developer/downloads/qt/windows

After installation configure Qt
Start->All programs->Qt by Trolltech v4.1.4 (OpenSource)->Qt 4.1.4 (Build Debug Libraries)

Qt project compilation

In console go to the project directory and type
qmake
and then
make

If commands doesn`t work, we will have to set next paths
Qt\bin\
and
MinGW\bin\
Set paths subsequently:
This computer -> Properties ->Specify ->Environment variable->System variables
Set variable
Path
For example Path in my computer is:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\app\Subversion\bin;C:\app\MinGW\bin;C:\app\Qt\4_1_4\bin

Command
qmake
create files
Makefile
Makefile.Debug
Makefile.Release


Command
make
can have more parameters
make debug
compile project in debug mode
make release
compile project in release mode
If type single
make
without parameters , compile project in debug mode


Dev-C++

Of course we doesn`t have work only in console. Project we can write in Dev-C++.
http://www.bloodshed.net/

If we have own Linux project, as in my case, so by following way we add project to the Dev-C++

Create new project:
File->New->Project...
Set
Empty Project

Add own project:
Project->Add to project
and select all sources.

Set makefile
Project->Project Options->Makefile
check
Use custom Makefile ....
and set either
Makefile.Debug
or
Makefile.Release


home / qt


Valid XHTML 1.0 Transitional