Difference between revisions of "KDevelop"

From ArchWiki
Jump to: navigation, search
(Arch Testing)
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Development (English)]]
+
[[Category:Development]]
==Introduction==
+
''"[http://kdevelop.org/ KDevelop] is a free, open source IDE (Integrated Development Environment) for MS Windows, Mac OS X, Linux, Solaris and FreeBSD. It is a feature-full, plugin extensible IDE for C/C++ and other programming languages. It is based on KDevPlatform, and the [[KDE]] and [[Qt]] libraries and is under development since 1998."''
 
+
KDevelop 4 is still in beta, but this guide will help get it running.
+
  
 
==Installation==
 
==Installation==
There are a lot of ways to install KDevelop4 in Arch Linux these are just some of them.
 
 
===Arch Testing===
 
Arch Testing has a build of KDevelop4, but to get the newest features install it from an SVN build. You can use the repositories below for nightly builds.
 
 
x86_64
 
[sjakub]
 
Server=http://sjakub.net/arch/repo/x86_64
 
 
i686
 
[sjakub]
 
Server=http://sjakub.net/arch/repo/i686/
 
 
These repositories provides both kdevelop-svn and kdevplatform packages, but not the kdevelop-pg package that is required to build additional plugins.
 
 
Also, you may use this repository, though they are x86_64 only. I try to keep them no more than a few days old.
 
 
[digitalpioneer]
 
#Recent SVN builds of KDev4 AUR packages
 
#x86_64 only
 
Server = http://dl.getdropbox.com/u/453116/repo
 
 
===KDEMod Playground===
 
The KDEMod Playground repository also provides KDevelop4 if you are a user of this DE you may want to try this package instead.
 
  
x86_64
+
{{Pkg|KDevelop}} is available in the Extra repository:
[kdemod-playground]
+
Server = http://chakra-project.org/repo/playground/x86_64/
+
  
i686
+
  # pacman -S kdevelop
  [kdemod-playground]
+
Server = http://chakra-project.org/repo/playground/i686/
+
  
 
==Building Additional Plugins==
 
==Building Additional Plugins==
Line 42: Line 12:
 
===First: Install Dependency===
 
===First: Install Dependency===
  
AUR has the [http://aur.archlinux.org/packages.php?ID=26625 kdevelop-pg-qt-svn package] that is required to build additional plugins. Plugins will not compile if this package is not installed beforehand.
+
The KDevelop Parser Generator in Extra ({{Pkg|kdevelop-pg-qt}}) is required to build additional plugins. Plugins will not compile if this package is not installed beforehand.
 +
 
 +
# pacman -S kdevelop-pg-qt
  
 
===PHP===
 
===PHP===
  
The PHP plugin provides autocompletion and other PHP-specific features.
+
The PHP plugin ({{Pkg|kdevelop-php}}) from Extra provides autocompletion and other PHP-specific features.
  
Checkout the PHP plugin from SVN
+
  # pacman -S kdevelop-php
  svn checkout svn://anonsvn.kde.org/home/kde/trunk/playground/devtools/kdevelop4-extra-plugins/php
+
 
+
Change into the new directory (php) and run CMake, taking care to specify the installation directory.
+
 
+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
+
 
+
Now make and install the package. The 'make install' command must be run as root.
+
make && make install
+
  
 
Restart KDevelop 4 and you should now have improved PHP support, including autocomplete for both the PHP functions as well as for your project's functions and classes.
 
Restart KDevelop 4 and you should now have improved PHP support, including autocomplete for both the PHP functions as well as for your project's functions and classes.
 
  
 
===Other Plugins===
 
===Other Plugins===
  
Other plugins should compile the same way as the ones above. When doing the svn checkout simply change the last directory name to the plugin directory from [http://websvn.kde.org/trunk/playground/devtools/kdevelop4-extra-plugins/ KDE's websvn browser].
+
Other plugins are available from [[AUR]]: [https://aur.archlinux.org/packages.php?O=0&K=kdevelop-extra-plugins&do_Search=Go kdevelop-extra-plugins]
 
+
For example, to install the Python plugin you can use the instructions for PHP, but change the svn checkout line from
+
 
+
svn checkout svn://anonsvn.kde.org/home/kde/trunk/playground/devtools/kdevelop4-extra-plugins/php
+
 
+
To
+
 
+
svn checkout svn://anonsvn.kde.org/home/kde/trunk/playground/devtools/kdevelop4-extra-plugins/python
+
 
+
If you have successfully installed one of these additional plugins please add a relevant section to this wiki page with the exact instructions.
+
 
+
  
 
==List of Available Plugins==
 
==List of Available Plugins==
Line 102: Line 54:
  
 
Note: As of June 17 2009, do not install the php-docs plugin because it causes the php plugin to stop working.
 
Note: As of June 17 2009, do not install the php-docs plugin because it causes the php plugin to stop working.
 
==Another repo==
 
Another repo with daily svn kdevelop & plugins
 
 
[dstr-repo]
 
Server = http://dimon.homeftp.org/repo/x86_64/
 
 
[dstr-repo]
 
Server = http://dimon.homeftp.org/repo/i686
 
 
http://dimon.homeftp.org/flyspray for bugreports
 

Revision as of 13:30, 13 June 2012

"KDevelop is a free, open source IDE (Integrated Development Environment) for MS Windows, Mac OS X, Linux, Solaris and FreeBSD. It is a feature-full, plugin extensible IDE for C/C++ and other programming languages. It is based on KDevPlatform, and the KDE and Qt libraries and is under development since 1998."

Installation

KDevelop is available in the Extra repository:

# pacman -S kdevelop

Building Additional Plugins

First: Install Dependency

The KDevelop Parser Generator in Extra (kdevelop-pg-qt) is required to build additional plugins. Plugins will not compile if this package is not installed beforehand.

# pacman -S kdevelop-pg-qt

PHP

The PHP plugin (kdevelop-php) from Extra provides autocompletion and other PHP-specific features.

# pacman -S kdevelop-php

Restart KDevelop 4 and you should now have improved PHP support, including autocomplete for both the PHP functions as well as for your project's functions and classes.

Other Plugins

Other plugins are available from AUR: kdevelop-extra-plugins

List of Available Plugins

As of June 18 2009, the following plugins are available from KDE's svn repository.

  • automake
  • bazaar
  • check
  • controlflowgraph
  • cppunit
  • csharp
  • ctest
  • duchainviewer
  • java
  • metrics
  • oldgdb
  • php
  • php-docs
  • python
  • qmake
  • qtdesigner
  • ruby
  • sloc
  • teamwork
  • xdebug

Note: As of June 17 2009, do not install the php-docs plugin because it causes the php plugin to stop working.