Note: This is only for Qt for Windows installation. If you want to develop Qt applications for Symbian on Windows, click here.
- Install Qt SDK 4.6.3 + Qt Creator 1.3.1 for Windows.
- Install Strawberry Perl for Windows (~ 32 MB). The reason why Perl is needed is covered in the later in this article.
- Download Qt Mobility library sources.
- Unpack Qt Mobility source distribution into a drive, e.g. C:\. This will create C:\qtmobility\qt-mobility-opensource-src-1.0.0
- Launch Qt Command Prompt.
IMPORTANT: You cannot use regular Command Prompt!
- Set the PATH to Strawberry Perl :
(do not skip this!)
- Go to your Qt Mobility source folder and run configure:
cd \qt-mobility-opensource-src-1.0.0 configureThis will configure Qt Mobility build with default target directory: C:\QtMobility
- Build Qt Mobility:
mingw32-make mingw32-make install
- Add C:\QtMobility\lib folder (the target folder) to your PATH environment variable (more on this below).
- To add Qt Mobility documentation in Qt Creator: Go to Tools -> Options -> Help -> Add. Then browse C:\QtMobility/doc/qch/qtmobility.qch.
Setting Environment VariablesIn order to use Qt Mobility some environment variables need to be extended to locate the libraries, which are placed in the lib directory of the install path.
On Windows: PATH should be extended to include: C:\%TARGET_DIR%\lib
On my setup this folder is: C:\QtMobility\lib
PATH can be extended through Start -> Settings -> Control Panel -> System -> Advanced -> Environment variables. Under System variables, select "PATH", click "Edit..." and append your Qt Mobility lib folder.
Reboot your system to apply your changes to system environment variables.
You're now ready to develop Qt Mobility applications in Windows. :-)