Thursday, June 10, 2010

Installing Qt Mobility Final Libraries on Windows 7

By following this article, you should be ready to develop Qt Mobility applications on Windows.

Note: This is only for Qt for Windows installation. If you want to develop Qt applications for Symbian on Windows, click here.
  1. Install Qt SDK 4.6.3 + Qt Creator 1.3.1 for Windows.
  2. Install Strawberry Perl for Windows (~ 32 MB). The reason why Perl is needed is covered in the later in this article.
  3. Download Qt Mobility library sources.
  4. Unpack Qt Mobility source distribution into a drive, e.g. C:\. This will create C:\qtmobility\qt-mobility-opensource-src-1.0.0
  5. Launch Qt Command Prompt.
    IMPORTANT: You cannot use regular Command Prompt!
  6. Set the PATH to Strawberry Perl : (do not skip this!)


    set PATH=%PATH%;C:\strawberry\perl\bin
    
  7. Go to your Qt Mobility source folder and run configure:


    cd \qt-mobility-opensource-src-1.0.0
    configure
    
    This will configure Qt Mobility build with default target directory: C:\QtMobility

  8. Build Qt Mobility:


    mingw32-make
    mingw32-make install
  9. Add C:\QtMobility\lib folder (the target folder) to your PATH environment variable (more on this below).
  10. To add Qt Mobility documentation in Qt Creator: Go to Tools -> Options -> Help -> Add. Then browse C:\QtMobility/doc/qch/qtmobility.qch
Now you're ready to develop with Qt Mobility on Windows. Check out Qt Mobility Quickstart App for an example.



Setting Environment Variables

In 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. :-)

See also:

Friday, June 4, 2010

Installing Qt SDK 4.6.2 on Ubuntu/Linux

Meego mobile development with Qt and C++ programming language
Qt is used for cross-platform desktop and mobile development for Symbian S60, Maemo (N900), Meego, Windows, Linux, and Mac OS X using C++ programming language.

To install the latest Qt SDK 4.6.2 on Ubuntu/Linux, follow these steps. For this example I'm using Ubuntu 10.04 Lucid Lynx.
  1. Download the Qt Development Environment 2010.02. Install the
  2. Install additional development libraries:

    sudo apt-get install libglib2.0-dev libSM-dev libxrender-dev libfontconfig1-dev libxext-dev libgl1-mesa-dev libglu-dev
You're now ready to develop cross-platform Qt applications.