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