QT 2

The releases of this section are outdated and will not be supported. The relating packages may work, but we encourage you to install a recent KDE release.

  1. install development tools with the Cygwin Installer, at least 
        - cvs
        - make
        - binutils
        - zlib
        - jpeg
        - libpng2
        - flex
        - byacc
        - XFree (at least base and prog)
        - binutils
  2. gcc-2
  3. The qt source requires yacc, which could be emulates through byacc (It was reported that using bison doesn't work).

    Create a yacc wrapper by entering the following lines into a bash shell and enter RETURN and CTRL-D to close the cat command.

    cat >/usr/local/bin/yacc
    byacc $*
    
  4. checkout qt sources
    export CVSROOT=:pserver:anonymous@cvs.kde-cygwin.sf.net:/cvsroot/kde-cygwin 
    cvs login
    
    Just press "Enter" if there is a question about a password
    cvs -z7 co qt-2
  5. configure qt
    cd <qt-src-dir>
    export QTDIR=$PWD
    . config.cygwin
    
  6. make 
    make
    
  7. create symbolic link from the <qt-src-dir> to /usr/lib/qt2
    ln -s <qt-src-dir> /usr/lib/qt2
    
  8. In the last step you should set some environment variables for accessing the qt dll's, qt applications and the man pages regardless of your current directory location.

    To ensure a permanent activation of this settings you can add the settings to /etc/profile or, which is the better way, create a script in the /etc/profile.d dir. This script will be called every time a new bash shell is opened.

    Create this script by copying the following lines into a bash shell and enter RETURN and CTRL-D to close the cat command.

    cat >/etc/profile.d/qt2.sh 
    export QTDIR=/usr/lib/qt2
    export PATH=$QTDIR/bin:$PATH
    export MANPATH=$MANPATH:$QTDIR/doc/man
    

    At last you should reread the environment to activate this settings for your current bash shell with

    . /etc/profile
    

 

 
Prev:Using QT 2Next:Overview

GOWEBCounter by INLINE visitors Hosted by SourceForge