			  INSTALLING QT FOR X11


You may need to be root, depending on the permissions of the directories
you choose to install Qt in.


1.  Unpack the archive, unless you already have:

	cd /usr/local
	gunzip qt-1.0.tar.gz	# uncompress the archive
	tar xf qt-1.0.tar	# unpack it

    This creates the directory /usr/local/qt-1.0 containing the
    files from the main archive.

    Rename qt-1.0 to qt (or make a symlink). The rest of this file
    assumes that Qt is installed in /usr/local/qt.


2.  Set some environment variables in .profile or .login, depending
    on your shell.

	QTDIR			- wherever you installed Qt
	PATH			- to locate the moc program
	MANPATH 		- to access the Qt man pages
	LD_LIBRARY_PATH		- for the shared Qt library

    If you're using GNU gcc, you may also want to set these:

	LIBRARY_PATH		- contains library file path
	CPLUS_INCLUDE_PATH	- contains C++ include file path

    In .profile (in case your shell if bash or sh):

	QTDIR=/usr/local/qt
	PATH=$QTDIR/bin:$PATH
	MANPATH=$QTDIR/man:$MANPATH
	LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
	LIBRARY_PATH=$LD_LIBRARY_PATH
	CPLUS_INCLUDE_PATH=$QTDIR/include:$CPLUS_INCLUDE_PATH

	export QTDIR PATH MANPATH LD_LIBRARY_PATH LIBRARY_PATH
	export CPLUS_INCLUDE_PATH


    In .login (in case your shell is csh or tcsh):

	setenv QTDIR /usr/local/qt
	setenv PATH $QTDIR/bin:$PATH
	setenv MANPATH $QTDIR/man:$MANPATH
	setenv LD_LIBRARY_PATH $QTDIR/lib:$LD_LIBRARY_PATH
	setenv LIBRARY_PATH $LD_LIBRARY_PATH
	setenv CPLUS_INCLUDE_PATH $QTDIR/include:$CPLUS_INCLUDE_PATH


3.  If you want to compile Qt yourself, go to 3a.
    If you want to install a compiled library and moc (only for Linux
    and Solaris), go to 3b.

3a. Compile the Qt library, example programs and tutorial.

    The qt/arch directory contains a Makefile which can create
    sub-directories for several platforms. Choose an architecture 
    and make it. Type "make list" to see all the alternatives.

	cd /usr/local/qt/arch
	make linux-gcc-shared
	cd linux-gcc-shared
	make

    If you cannot find your platform in arch/Makefile, read PORTING.

    You can delete all the directories below arch except the one you're
    using.

3b. To install the compiled library and moc:

	cd /usr/local/qt
	cd arch
	make linux-gcc-shared
	cd linux-gcc-shared
	make variables
	cd /usr/local/qt
	tar zxf qt-1.0-bin-linux.tar.gz

4.  In very few cases you may need to run /sbin/ldconfig or something
    similar at this point if you are using shared libraries.

    If you have problems running the example programs, e.g. messages like 

	 can't load library 'libqt.so.1'  

    you probably need to put a reference to the qt library in a
    configuration file and run /sbin/ldconfig as root on your system.

That's all.  Qt is now installed.
