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.
- Get sources (e.g. $HOME/src)
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
- First we compile PHP plugin. To be installed with the system libraries (you need root permissions to do this)
mkdir -p $HOME/src/php/build
cd $HOME/src/php/build
cmake ../
make
sudo make install
export KDEDIRS=/usr/local:/usr
kbuildsycoca4
- Or, to be installed locally on $HOME/kdevelop4 but you can replace it with something else (you do not need root permissions to do this)
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
- Now we compile PHP plugin docs.
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
- Or, to be installed locally on $HOME/kdevelop4 but you can replace it with something else (you do not need root permissions to do this)
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:
- with root permissions do this
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
- Or if installed in local directory
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