Hello,

I'm using KDE-3.5 and QT-3.3.4, installed in /opt/kde-3.5 and /opt/qt-3.3.4
resp:

/opt/kde -> kde-3.5
/opt/kde-3.5
/opt/qt -> qt-3.3.4
/opt/qt-3.3.4

In the /etc/ld.so.conf file I've added the lines /opt/qt/lib
and /opt/kde/lib.

Now to set the paths right, I've created the files:

/etc/profile.d/qt.sh and /etc/profile.d/kde.sh:

#Begin kde.sh
if [ -d /opt/kde ]; then

    export KDEDIR=/opt/kde

    if [ -d $KDEDIR/bin ]; then
        pathappend $KDEDIR/bin
    fi

    if [ -d $KDEDIR/lib/pkgconfig ]; then
        pathappend $KDEDIR/lib/pkgconfig PKG_CONFIG_PATH
    fi

fi;
#End kde.sh

#Begin qt.sh
if [ -d /opt/qt ]; then

    export QTDIR=/opt/qt

    if [ -d $QTDIR/bin ]; then
        pathappend $QTDIR/bin
    fi

    if [ -d $QTDIR/lib/pkgconfig ]; then
        pathappend $QTDIR/lib/pkgconfig PKG_CONFIG_PATH
    fi

fi;
#End qt.sh

(I know in most cases the checks for [ -d $QTDIR/bin ] and 
[ -d $KDEDIR/bin ] are not needed: always true.)

I miss this information in the BLFS book (6.1 and svn).
In the chapter "The Bash Shell Startup Files" there is a X.sh file, to set
the paths right to use the X server. Why not such files for KDE and QT and
mention it in the resp. chapters about configuration of KDE and QT?
(at least as an example)

(I can imagine that these settings are different per user: not every user is
using KDE/QT but maybe GNOME. Then not in the system-wide /etc/profile.d
directory but in ......)

Stef


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to