Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
You may need to be logged in as root, depending on the permissions of the directories where you choose to install TQt.
cd /Developer gnutar xzf qt-mac-version.tar.gz
This creates the directory /Developer/qt-version containing the files from the main archive.
Rename qt-version to qt (or make a symlink):
mv qt-version qt
The rest of this file assumes that TQt is unpacked in /Developer/qt.
This is done like this:
In .profile (if your shell is bash, ksh, zsh or sh), add the following lines:
TQTDIR=/Developer/qt PATH=$TQTDIR/bin:$PATH MANPATH=$TQTDIR/man:$MANPATH DYLD_LIBRARY_PATH=$TQTDIR/lib:$DYLD_LIBRARY_PATH export TQTDIR PATH MANPATH DYLD_LIBRARY_PATH
In .login (in case your shell is csh or tcsh), add the following lines:
setenv TQTDIR /Developer/qt setenv PATH $TQTDIR/bin:$PATH setenv MANPATH $TQTDIR/man:$MANPATH setenv DYLD_LIBRARY_PATH $TQTDIR/lib:$DYLD_LIBRARY_PATH
After you have done this, you will need to login again, or re-source the profile before continuing.
Type:
cd $TQTDIR ./configure
This will configure the TQt library for your machine. Note that GIF support is turned off by default. Run ./configure -help to get a list of configuration options.
To create the library and compile all examples and the tutorial:
makeIf you have problems, see http://www.trolltech.com/platforms/.
ln -sf $TQTDIR/lib/libtqt.3.dylib /usr/lib ln -sf $TQTDIR/lib/libtqui.1.dylib /usr/lib
You may need to have 'administrator' access to do this, (in which case, precede each command with sudo', e.g. sudo ln -s ...). If you use sudo you'll be prompted for the administrator password.
If you do not have administrator access, or you would prefer to do a user install (rather than system install) of the libraries you can do (if you have configured TQt with -thread please change the libtqt below with libtqt-mt):
ln -sf $TQTDIR/lib/libtqt.3.dylib $HOME/lib ln -sf $TQTDIR/lib/libtqui.1.dylib $HOME/lib
That's all! TQt is now installed. TQt's documentation can be read with TQt Assistant or by any web browser; the contents page is $TQTDIR/doc/html/index.html.
Copyright © 2007 Trolltech | Trademarks | TQt 3.3.8
|