KDevelop/HowToCompile v5: Difference between revisions
(Add command for building essential modules of KDevelop) |
(Added dependency list to build kdevelops essential modules.) |
||
Line 25: | Line 25: | ||
kdesrc-build kdevplatform kdevelop-pg-qt kdevelop | kdesrc-build kdevplatform kdevelop-pg-qt kdevelop | ||
To insstall the essential dependencies, run this command: (the list is not yet complete) | |||
1. deb-based distributions (Debian, Neon, Kubuntu...) | |||
sudo apt-get install extra-cmake-modules | |||
2. Arch Linux | |||
pacman -Sy --needed extra-cmake-modules | |||
== 2. Get and install plugins (optional) == | == 2. Get and install plugins (optional) == |
Revision as of 18:25, 9 July 2017
See also: http://kfunk.org/2016/02/16/building-kdevelop-5-from-source-on-ubuntu-15-10/
NOTE: This page is about KDevelop 5, i.e. version that depends on Qt5 and KF5. For instructions on how to build KDevelop 4 against KDELibs4 and Qt4 head over to KDevelop/HowToCompile_v4.
The way to download, compile, install and run KDevelop depends on how you want to download it and where do you want to install it to. So follow the step by step instructions below.
WARNING: You have to remove all KDevelop packages provided by your distribution. If you don't do that, binary compatibility issues will eventually lead to crashes and undefined behavior. To make sure, you can search for KDevelop libraries with this command:
find /usr/ -type f -name "*kdev*.so*"
If no results are returned, you should be on the safe side.
1. Building with kdesrc-build
The recommended way to install KDevelop 5 is using kdesrc-build. You can find more information on how to set it up here: https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source
Once done, building KDevelop and all its dependencies is as simple as running
kdesrc-build --include-dependencies kdevelop
Note though that this will also install the KF5 frameworks. The initial compile step will thus take a bit of time, but subsequent updates using the same command above are usually much faster.
Building only the essential modules of KDevelop is as simple as running
kdesrc-build kdevplatform kdevelop-pg-qt kdevelop
To insstall the essential dependencies, run this command: (the list is not yet complete)
1. deb-based distributions (Debian, Neon, Kubuntu...)
sudo apt-get install extra-cmake-modules
2. Arch Linux
pacman -Sy --needed extra-cmake-modules
2. Get and install plugins (optional)
If you need extra functionality, you can get and install additional plugins for KDevelop using kdesrc-build. E.g. to install kdev-php and kdev-python, run
kdesrc-build kdev-php kdev-python
3. Run KDevelop
Make sure your environment is setup correctly according to https://community.kde.org/Frameworks/Building#Runtime_setup. Most notably, ensure that you configured QT_PLUGIN_PATH properly, otherwise KDevelop won't work properly as it is heavily plugin based.
Once done, execute KDevelop, either by putting $KF5/bin into your PATH, or by running it directly:
$KF5/bin/kdevelop
4. Contact the development team, or report bugs or wishes
If you find any compile problems with KDevelop please report them on our developer mailing-list. If you find problems while using KDevelop, please report these issues to the bugzilla bug database which is only for bugs (not for compilation issues).
If you find bugs that cause program to crash and you are going to make bug report out of it, please re-compile the program with debug symbols. This is done with the option -DCMAKE_BUILD_TYPE=debug passed to CMake in configuration step. Also be sure to update KDevelop and KDevPlatform to newest version, your bug might be already fixed.
5. Keeping it up-to-date with the latest fixes
Just rerun the kdesrc-build command above to update KDevelop and its dependencies.
You can also see here the latest changes in the KDevelop projects.
6. Manual compilation without kdesrc-build
This approach is useful if you just want to compile and use KDevelop5 on your day to day system. This works on a Debian system, and probably on Debian derived distributions such as Ubuntu or KDE NEON.
Follow instructions at "https://wiki.debian.org/BuildingTutorial" or similar to download & build the source packages of kdevelop + its dependencies, including running these commands:
sudo apt-get source kdevelop sudo apt-get build-dep kdevelop