compilation instructions

David Faure faure at kde.org
Sun Jun 10 08:41:16 UTC 2012


On Saturday 09 June 2012 16:29:02 Jignesh Kakadiya wrote:
> Hi David,
> 
> Is there any documentation available for setting up the KDE Framework? I
> tried searching it and also asked in #kde-devel but no success yet

I had a look and there isn't really documentation for this specifically yet.
But indeed there should be :-)

I think in the current state, it would say something like this:

* Choose an install prefix, for instance
export KF5=$HOME/kf5

* You need cmake from git (right?)
git clone git://cmake.org/cmake.git
cd cmake
./configure --prefix $KF5
make
make install

* Check you can find the new cmake
export PATH=$KF5/bin:$PATH
which cmake

* Checkout and build extra-cmake-modules
git clone git://anongit.kde.org/extra-cmake-modules
cd extra-cmake-modules
cmake -DCMAKE_INSTALL_PREFIX=$KF5 . ; make ; make install

* Checkout and build kdelibs (frameworks branch)
git clone kde:kdelibs
 (see techbase.kde.org about setting the kde prefix in the git config)
cd kdelibs ; git checkout frameworks
mkdir build ; cd build
cmake -DCMAKE_INSTALL_PREFIX=$KF5 -DKDE4_BUILD_TESTS=TRUE ..
make
make install
make test

Did I forget anything?
I'll put this up on the wiki somewhere.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list