Trying out KDE4

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](http://developer.kde.org/build/trunk.html). 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 [kde4 snapshot 1](/files/kde4-snapshot1.png)

Tags , , , , , , ,

Posted in , | Posted on 16 Feb 2007 21:24by somekool |

Subscribe

my last twitter posts

Personal Links

Tags

Categories

Archives

my Xbox 360 gamertag

Copyright © Mathieu Jobin's Life and Thoughts