Projects/K3b: Difference between revisions

From KDE TechBase
No edit summary
(Replaced content with "{{ Moved To Community | K3b }}")
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Development==
{{ Moved To Community | K3b }}
This section describes how to start development of K3b.
 
===Setting Up Environment===
Create target install directory. For the sake of example we will assume your home directory is <tt>/home/joe</tt> and you will install your compiled K3b to <tt>/home/joe/k3b/install</tt>. Add following lines to your <tt>~/.bashrc</tt> file:
<code>
export K3B_INSTALL_PREFIX=/home/joe/k3b/install
export KDEDIRS=${K3B_INSTALL_PREFIX}:${KDEDIRS}
export PATH=${K3B_INSTALL_PREFIX}/bin:${PATH}
export XDG_DATA_DIRS=${K3B_INSTALL_PREFIX}/share:${XDG_DATA_DIRS}
</code>
 
===Getting Source Code===
K3b sources code is hosted in [http://websvn.kde.org/trunk/extragear/multimedia/k3b KDE Subversion repository]. It is a part of [http://extragear.kde.org KDE Extragear]
 
If you don't have a SVN account you can checkout the source code using anonymous access repository:
<code>
svn checkout svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/k3b .
</code>
If you have SVN account you should go the other way:
<code>
svn checkout svn+ssh://[email protected]/home/kde/trunk/extragear/multimedia/k3b .
</code>
This will give you read-write access to the repository.
 
===Compilation===
K3b, as the most KDE applications, uses [[Development/Tutorials/CMake|CMa/home/joe/k3b/installke]] for configuration and compilation of source code.
 
First the build directory should be created.
<code>
mkdir build
cd build
</code>
It is guaranteed all files created during build will be placed in this directory. That means that if you want to clean up source tree after build the only thing you need to do is to remove <tt>build</tt> directory.
 
Now we need to configure the source tree. This have to be done only once, later this step will be done automatically when necessary. If you are familiar with [[http://pl.wikipedia.org/wiki/Autotools Autotools]] this step corresponds to <tt>./configure</tt> command.
<code>
cmake .. \
      -DCMAKE_INSTALL_PREFIX=/home/joe/k3b/install \
      -DKDE4_AUTH_POLICY_FILES_INSTALL_DIR=/home/joe/k3b/install/share/polkit-1/actions \
      -DK3B_DEBUG=ON \
      -DCMAKE_BUILD_TYPE=Debug
</code>

Latest revision as of 17:59, 18 March 2016

This page is now on the community wiki.