Wednesday, August 18, 2004

Installing Qt/Mac

1. Unpack the archive and move to /Developer
Rename qt-mac-free-3.3.3 to qt to end up with /Developer/qt

2. finger user_id to find out shell
User-Computer:/Developer/qt/bin user$ finger user
Login: user Name: user
Directory: /Users/user Shell: /bin/bash

The variables that you must set are:

QTDIR - wherever you installed Qt
PATH - to locate the moc program and other Qt tools
DYLD_LIBRARY_PATH - for the shared Qt library

I did this using emacs .profile at $home like this:

In .profile (if your shell is bash), add the following lines:

QTDIR=/Developer/qt
PATH=$QTDIR/bin:$PATH
DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH

export QTDIR PATH DYLD_LIBRARY_PATH

3. Make a symbolic link from $QTDIR/doc/man to $QTDIR/man by typing the following:

ln -s $QTDIR/doc/man $QTDIR/man

This will give you the man pages for the commandline Qt programs.

5. Building.

This is where I got stuck with errors.
This step compiles the Qt library, and builds the example programs,
the tutorial, and the tools (e.g. Qt Designer, etc.).

Type:

cd $QTDIR
./configure

This will configure the Qt library for your machine. Run ./configure -help
to get a list of configuration options.

To create the library and compile all the examples and the
tutorial, type:

/usr/bin/make

I'll try after rebooting.

0 Comments:

Post a Comment

<< Home