Qt libraries
Torsten Reuss
t.reuss at topmail.de
Tue Sep 21 16:18:44 BST 1999
> I have tried 'set $QTDIR=/usr/include/qt', 'set
> QTDIR=/usr/include/qt', 'set
> $QTDIR=/usr/lib', 'set QTDIR=/usr/lib', set $QTDIR =
> /usr/include/qt', 'set
> QTDIR = /usr/include/qt', 'set $QTDIR = /usr/lib', 'set QTDIR =
> /usr/lib' and
> all I get is :
>From the INSTALL.qt file:
2. Set some environment variables in the file .profile (or .login,
depending on your shell) in your home directory. (Create the
file if it is not there already.)
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 g++, you may also want to set these:
LIBRARY_PATH - contains library file path
CPLUS_INCLUDE_PATH - contains C++ include file path
This is done like this:
In .profile (in case your shell if bash, ksh, zsh or sh):
QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
if [ $MANPATH ]
then
MANPATH=$QTDIR/man:$MANPATH
else
MANPATH=$QTDIR/man
fi
if [ $LD_LIBRARY_PATH ]
then
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$QTDIR/lib
fi
LIBRARY_PATH=$LD_LIBRARY_PATH
if [ $CPLUS_INCLUDE_PATH ]
then
CPLUS_INCLUDE_PATH=$QTDIR/include:$CPLUS_INCLUDE_PATH
else
CPLUS_INCLUDE_PATH=$QTDIR/include
fi
export QTDIR PATH MANPATH LD_LIBRARY_PATH LIBRARY_PATH
export CPLUS_INCLUDE_PATH
In .login (in case your shell is csh or tcsh):
if ( ! $?QTDIR ) then
setenv QTDIR /usr/local/qt
endif
if ( $?PATH ) then
setenv PATH $QTDIR/bin:$PATH
else
setenv PATH $QTDIR/bin
endif
if ( $?MANPATH ) then
setenv MANPATH $QTDIR/man:$MANPATH
else
setenv MANPATH $QTDIR/man
endif
if ( $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH $QTDIR/lib:$LD_LIBRARY_PATH
else
setenv LD_LIBRARY_PATH $QTDIR/lib
endif
if ( ! $?LIBRARY_PATH ) then
setenv LIBRARY_PATH $LD_LIBRARY_PATH
endif
if ( $?CPLUS_INCLUDE_PATH ) then
setenv CPLUS_INCLUDE_PATH $QTDIR/include:$CPLUS_INCLUDE_PATH
else
setenv CPLUS_INCLUDE_PATH $QTDIR/include
endif
-----------------------------------------------------------------------
Cheers,
Torsten
Torsten Reuss, Oy Comptel Ab (_\_|___|_/_)
Ruoholahdenkatu 4, FIN-00180 HELSINKI, Finland ____/\__(o o)
Telephone: +358 9 700 11 307 / _\ /
Fax: +358 9 700 11 375 #|_____|_/ O
Email: t.reuss at topmail.de | \ | \
^ ^ ^ ^
More information about the KDevelop
mailing list