Qtopia Home - Classes - Annotated - Functions - Qt Embedded

Instructions for Building Qtopia Desktop

Contents

Introduction

This document describes sets out instructions for the building of Qtopia Desktop.

Windows

  1. Qt 3.2.1 and commercial source code for Qtopia are required to build Qtopia Desktop. Download and install Qt 3.2.1 for windows with default settings, (ie install to c:\qt\3.2.1, substitute below if different)
  2. From a command prompt,

    If QMAKESPEC has not been set, set QMAKESPEC appropriately for the compiler that is to be used.
    For MS Visual C++:
                    set QMAKESPEC=win32-msvc
    

    Otherwise if the newer .NET compiler is to be used:
                    set QMAKESPEC=win32-msvc.net
    

    Compile Qt with the -qwinexport configuration option:
                    set QTDIR=c:\qt\3.2.1
                    set PATH=%QTDIR%\bin;%PATH%
                    cd %QTDIR%
                    configure -thread -qwinexport
                    cd src
                    nmake clean
                    nmake
    

    Ensure assistant.exe and qaxcontainer.dll were built in step one, if not compile them with:
                    cd %QTDIR%\tools\assistant
                    nmake
                    cd %QTDIR%\extensions\activeqt
                    nmake
    

    Qt is now ready to be used with Qtopia Desktop
  3. Download and install tmake 1.11 (ftp://ftp.trolltech.com/freebies/tmake/tmake-1.11.zip) (example commands assume it is installed to c:\tmake-1.11)
  4. Install Qtopia source to c:\qtopia\1.9.0 (substitute below if different)
  5. From command prompt, Compile Qtopia Desktop and all of its plugins:
                    set QT3DIR=c:\qt\3.2.1
                    set QPEDIR=c:\qtopia\1.9.0
                    set TMAKEDIR=c:\tmake-1.11
                    set TMAKEPATH=%TMAKEDIR%\lib\win32-msvc
                    set PATH=%QPEDIR%\bin;%QT3DIR%\bin;%TMAKEDIR%\bin;%PATH%
                    cd %QPEDIR%\src
                    configure -no-qtopia
                    nmake
    
  6. Using the regedit program ensure that the qtopiadir registry entry in the path \HKEY_LOCAL_MACHINE\SOFTWARE\Trolltech\palmcenter points to c:\qtopia\1.9.0\src\qtopiadesktop\

Linux

  1. Qt 3.2.1 and commercial source code for Qtopia are required to build Qtopia Desktop. Download and extract Qt 3.2.x for X11.
  2. Compile qt:
                    tar xfz qt-x11-commercial-3.2.x.tar.gz
                    cd qt-x11-commercial-3.2.x
                    export QTDIR=$PWD
                    export PATH=$QTDIR/bin:$PATH
                    cd $QTDIR
                    ./configure -thread
                    make
                    cd ..
    

  3. Extract Qtopia source package for example to ~/qtopia-source-1.9.0 (substitute below if different)
  4. Compile Qtopia Desktop as follows:
                    tar xfz qtopia-source-1.9.0.tar.gz
                    cd qtopia-source-1.9.0
                    export QPEDIR=$PWD
                    export QT3DIR=$QTDIR
                    export PATH=$QPEDIR/bin:$QT3DIR/bin:$PATH
                    ./configure -no-qtopia
                    make
    


    Copyright © 2001-2004 Trolltech Trademarks
    Qtopia version 2.0.1