When trying to test all these commits that blackie did earlier today, I
realized that various libraries in
apparently moved away from their former location. As it took me almost two
hours to fully restore my working environment (thanks for hints, thiago), I
think it's worth publishing a quick howto about how to build KPhotoAlbum from SVN. In the following
text, I'll use
~/work/prog/kde for the directory that we're going
to work in and assume that
/usr/kde/4.0 is where you installed
KDE4 (you will need to install various development packages for kde4 if you're
on a distribution that doesn't install them by default). If you use a
different setup, please adjust all commands/variables properly.
Please use the guide at KPhotoAlbum.org instead.
# preparation mkdir -p ~/work/prog/kde cd ~/work/prog/kde # SVN checkout svn co -N svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics cd kdegraphics svn up cmake libs cd .. svn co -N svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics extragear-graphics cd extragear-graphics svn up cmake kphotoalbum cd ../kdegraphics # configure, build and install the libraries PKG_CONFIG_PATH=~/work/prog/kde/_out/lib/pkgconfig \ KDEHOME=~/.kde4.0 KDEDIRS=~/work/prog/kde/_out:/usr/kde/4.0 \ cmake -DCMAKE_BUILD_TYPE=relwithdebuginfo -DCMAKE_INSTALL_PREFIX=$HOME/work/prog/kde/_out . make -j2 && make install cd ../extragear-graphics/ # configure, build and install KPhotoAlbum itself PKG_CONFIG_PATH=~/work/prog/kde/_out/lib/pkgconfig \ KDEHOME=~/.kde4.0 KDEDIRS=~/work/prog/kde/_out:/usr/kde/4.0 \ cmake -DCMAKE_BUILD_TYPE=relwithdebuginfo -DCMAKE_INSTALL_PREFIX=$HOME/work/prog/kde/_out . make -j2 && make install # Yeah, this is the same command as used for building libraries
Now that you've built KPhotoAlbum, it's time to launch it:
KDEHOME=~/.kde4.0 KDEDIRS=~/work/prog/kde/_out:/usr/kde/4.0 ~/work/prog/kde/_out/bin/kphotoalbum
It should be safe to do that from any X session, including the KDE 3.5 one.
I hope that this quick howto will prevent people from fighting with .so collisions coming from kde3's libkipi and struggling with FindKipi.cmake (no, you really don't want to symlink libkipi as a "local subdirectory", even when the cmake error message make you feel like you should).