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 below.

[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

The svn directions below are dated.

I had to first install: http://gitorious.org/kdevelop/kdevelop-pg-qt

Then install: http://gitorious.org/kdevelop/php


Your KDEDIRS environment variable should already contain the installation directory of both KDE4 and KDevPlatform, as explained in KDevelop 4/compiling.

If you want to install the plugin in a directory different from the rest of KDevelop, you have to add it to KDEDIRS as well.

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 5,310 times. This page was last modified 13:33, 16 May 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