These instructions assume that you already know how to build KDE stuff from source. Check the "building KDE applications page" for more help with that. The rest of this page will just tell you what to build and where to get it from.
You will need KDE 4.10 or 4.9. We do not require latest git KDE.
You will need to install several cross-desktop Telepathy components. Packages of the following from your distribution should do fine.
You will also need to follow the steps to setup the kde: prefix in Git, if you have not done so already.
git clone git://anongit.freedesktop.org/gstreamer/qt-gstreamer
While using some Ubuntu distributions you would like to have these packages installed (they are critical to build Ktp on your machine) from apt:
sudo apt-get install doxygen graphviz libfarstream-0.1-dev libgstreamer-plugins-base0.10-dev libgstreamer0.10-dev libqt4-dev libtelepathy-farstream-0.4-dev libtelepathy-glib-dev pkg-config cmake debhelper kdelibs5-dev libtelepathy-logger-dev libtelepathy-logger-qt4-dev libtelepathy-qt4-dev pkg-kde-tools bison cmake flex libqt4-dev libqtgstreamer-dev libtelepathy-glib-dev libtelepathy-logger-dev libxml2-dev python python-dev libxml-parser-perl librpc-xml-perl libqjson-dev libqca2-dev libqca2-plugin-ossl
This method is based on a scratch of David Edmundson which is located here. You may pull it on your local machine and run install.sh.
git clone git://anongit.kde.org/scratch/davidedmundson/ktp-bootstrap.git cd ktp-bootstrap sh install.sh
As soon as your installation has finished you can start Ktp by choosing Instant Messaging Contact List from the menu of your system. Alternatively, you may want to discover source yourself, e.g. if you are planning to contribute. Then, you can go path ~/ktp/ktp/ktp-contact-list (git repository is already set there!)
When you first open kdevelop for the first time select the CMakeLists file in ~/ktp/src/<project>/CMakeLists.txt when asked to specify the build directory select ~/ktp/build/<project>/ NOT the default option.
This will mean kdevelop will use your existing install set up and environment and any installations will be kept local.
If you are ever prompted for your root password for installations you are doing something wrong.
To use kdesrc-build to build KDE Telepathy type
Typing just "telepathy" includes additional modules from playground which are not really needed.
It may be desirable to also build TelepathyQt, which can be done by adding the following module
module telepathy-qt repository git://anongit.freedesktop.org/telepathy/telepathy-qt4 branch master end module
Because we rely on dbus activation we need to make sure our files are in the XDG dbus paths /when dbus loads/.
there are two ways to do this; either copy/link these dbus files to /usr/share/dbus-1/ or make sure XDG paths are set immediately at login, such as adding them in /etc/profile.d.
If you have both qt4 and qt5 installed, you may need tell kdesrc-build to use qt4 by including the following in the relevant kdesrc-buildrc (global section):
Similarly, if you have both Python 3 and Python 2 installed, you may need to point to the python2 path:
cmake-options -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 -DPYTHON_EXECUTABLE=/usr/bin/python2