Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

KDevelop 4/compiling/plugins

From KDevelop

< KDevelop 4 | compiling

The way to download, compile, install and run KDevelop 4 plugins depends on how you want to download it and where do you want to install it to. In this tutorial we will install PHP plugin for KDevelop 4. So follow the step by step instructions bellow.

[edit] 1. Get the requirements

Make sure to compile/install the required KDevelop 4, see KDevelop_4/compiling.

[edit] 2. Configure and install PHP plugin for KDevelop 4

You need to set the KDEDIRS environment variable to point to the installation directory of both KDE4 and KDevPlatform.
This will tell KDE core components where to search for plugins and other data related to KDE apps and contains just a list of paths (aka prefixes) where KDE libraries and/or applications have been installed.
Assuming that you have the KDE4 libraries installed in /usr (these are often from packages and installed in /usr or /opt/kde and is distro specific, if unsure ask your distro where it is), you'll have to append it to the KDEDIRS below.
       mkdir $HOME/src
       cd $HOME/src
       svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/sdk/kdevelop-plugins/php
       svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/sdk/kdevelop-plugins/php-docs
       mkdir -p $HOME/src/php/build
       cd $HOME/src/php/build
       cmake ../
       make
       sudo make install
       export KDEDIRS=/usr/local:/usr
       kbuildsycoca4
       mkdir -p $HOME/src/php/build
       cd $HOME/src/php/build
       cmake -DCMAKE_INSTALL_PREFIX=$HOME/kdevelop4 ../
       make
       make install
       export KDEDIRS=$HOME/kdevelop4:/usr
       kbuildsycoca4

To be installed with the system libraries (you need root permissions to do this)

       mkdir -p $HOME/src/php-docs/build
       cd $HOME/src/php-docs/build
       cmake ../
       make
       sudo make install
       export KDEDIRS=/usr/local:/usr
       kbuildsycoca4
       mkdir -p $HOME/src/php-docs/build
       cd $HOME/src/php-docs/build
       cmake -DCMAKE_INSTALL_PREFIX=$HOME/kdevelop4 ../
       make
       make install
       export KDEDIRS=$HOME/kdevelop4:/usr
       kbuildsycoca4

[edit] 3. Keeping it up-to-date with the latest fixes

If you got the sources from SVN on step 2. then you can update by issuing the following commands:
       cd $HOME/src/kdevelop-php/build && sudo make uninstall
       svn up .. && make && sudo make install
       cd $HOME/src/kdevelop-php-docs/build
       svn up .. && make && sudo make install
       cd $HOME/src/kdevelop-php/build && make uninstall
       svn up .. && make && make install
       cd $HOME/src/kdevelop-php-docs/build
       svn up .. && make && make install

Retrieved from "http://www.kdevelop.org/mediawiki/index.php/KDevelop_4/compiling/plugins"

This page has been accessed 1,284 times. This page was last modified 13:39, 9 January 2010. Content is available under GNU Free Documentation License 1.2.


[Main Page]
Main Page
Community portal
Current events
Recent changes
Help
Donations

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports