Trying out KDE4
Posted by Mathieu Jobin Sat, 17 Feb 2007 05:24:00 GMT
So I wanted to have a sneak preview at KDE4 and also have the development environment ready in case I find some time to fool around.
So I compiled KDE on my gentoo system. I simply followed the various instruction found on the developer website. I created a kdefour user. Installed cmake and Qt 4.2.2 normally using gentoo portage system. and from kdelibs into the user home directory.
that's what my .bash_profile looks like
kdefour@krypton ~/usr/build $ cat ~/.bash_profile
# /etc/skel/.bash_profile
# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc
export YACC='byacc -d'
#export QTDIR=$HOME/usr/qt
export QTDIR=/usr
export KDEDIR=$HOME/usr/kde
export CMAKE_BUILD_TYPE=debugfull
export PATH=$HOME/bin:$HOME/unsermake:$QTDIR/bin:$KDEDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH
function cmakekde { cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR \
-DCMAKE_BUILD_TYPE=debugfull $@ && make VERBOSE=1 && make install
}
kdefour@krypton ~/usr/build $
and I created myself a small rebuild script
kdefour@krypton ~/usr/build $ cat rebuild
#!/bin/sh
source ~/.bash_profile
modules="kdelibs kdepimlibs kdebase koffice kdegames"
modules="koffice kdeutils kdenetwork kdemultimedia kdepim"
build_dir="/home/kdefour/usr/build/"
src_dir="/home/kdefour/usr/src/"
for i in $modules
do
echo $i
#echo $build_dir$i
#rm -fr $i
mkdir -p $build_dir$i
if [ -d $src_dir$i ]
then
(cd $src_dir$i; svn up)
else
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/$i $src_dir$i
fi
cd $build_dir$i
time cmakekde $src_dir$i
if [ $? -ne 0 ]
then
cd -
echo $?
break
fi
cd -
done
kdefour@krypton ~/usr/build $
and here is a small screenshot for the curious

