KDevelop4/Manual/Appendix A: Building KDevelop from Sources: Difference between revisions

From KDE Wiki Sandbox
m (→‎Requirements: fixed gcc url)
m (updating the link of qt)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
If you want to have the latest features and bugfixes, you can build KDevelop yourself from the sources.
<languages />
<translate>


== Building KDevelop from Sources == <!--T:1-->
<!--T:2-->
If you want to have the latest features and bugfixes, you can build '''KDevelop''' yourself from the sources.
<!--T:3-->
There exists a more in-detail article [http://techbase.kde.org/KDevelop4/HowToCompile here].
<!--T:4-->
Be aware that you ''could'' build an unstable version. To help the developers fix bugs, please keep the <code>RelWithDebInfo</code> and report bugs to http://bugs.kde.org, either per hand or using Dr. Konqi.
Be aware that you ''could'' build an unstable version. To help the developers fix bugs, please keep the <code>RelWithDebInfo</code> and report bugs to http://bugs.kde.org, either per hand or using Dr. Konqi.


== Requirements ==
=== Requirements === <!--T:5-->
* kdelibs-devel >= 4.3 &ndash; http://www.kde.org
 
* qt-devel >= 4.5.2 &ndash; http://qt.nokia.com
<!--T:6-->
* boost-devel >= 1.35 &ndash; http://www.boost.org
* kdelibs-devel >= 4.3 - http://www.kde.org
* g++ >= 4.0 &ndash; http://gcc.gnu.org
* qt-devel >= 4.5.2 - http://qt-project.org/
* CMake >= 2.6.2 &ndash; http://www.cmake.org
* boost-devel >= 1.35 - http://www.boost.org
* g++ >= 4.0 - http://gcc.gnu.org
* CMake >= 2.6.2 - http://www.cmake.org
* qjson-devel
* qjson-devel


== Install for all users ==
=== Install for all users === <!--T:7-->
 
<!--T:8-->
{{Input|1=
{{Input|1=
mkdir kdevgit
mkdir kdevgit
cd kdevgit
cd kdevgit
git clone git://git.kde.org/kdevplatform
git clone git://anongit.kde.org/kdevplatform
git clone git://git.kde.org/kdevelop
git clone git://anongit.kde.org/kdevelop
cd kdevplatform
cd kdevplatform
mkdir build
mkdir build
Line 32: Line 46:
}}
}}


== Install for local user ==
=== Install for local user === <!--T:9-->
 
<!--T:10-->
{{Input|1=
{{Input|1=
mkdir kdevgit
mkdir kdevgit
cd kdevgit
cd kdevgit
git clone git://git.kde.org/kdevplatform
git clone git://anongit.kde.org/kdevplatform
git clone git://git.kde.org/kdevelop
git clone git://anongit.kde.org/kdevelop
cd kdevplatform
cd kdevplatform
mkdir build
mkdir build
Line 54: Line 70:
kbuildsycoca4
kbuildsycoca4
}}
}}
<!--T:13-->
Please note: Whenever you do some package or distribution update that calls '''kbuildsycoca4''', you need to execute the following lines after the update:
Please note: Whenever you do some package or distribution update that calls '''kbuildsycoca4''', you need to execute the following lines after the update:
<!--T:14-->
{{Input|1=
{{Input|1=
export KDEDIRS=$HOME/kdevelop4:/usr
export KDEDIRS=$HOME/kdevelop4:/usr
kbuildsycoca4
kbuildsycoca4
}}
}}
<!--T:11-->
{{Prevnext2
| prevpage=Special:MyLanguage/KDevelop4/Manual/Customizing_KDevelop |
| prevtext=Customizing KDevelop |
| index=Special:MyLanguage/KDevelop4/Manual | indextext=Back to menu
}}
<!--T:12-->
[[Category:Development]]
[[Category:Advanced_Users]]
</translate>

Latest revision as of 19:30, 14 October 2017

Other languages:

Building KDevelop from Sources

If you want to have the latest features and bugfixes, you can build KDevelop yourself from the sources.

There exists a more in-detail article here.

Be aware that you could build an unstable version. To help the developers fix bugs, please keep the RelWithDebInfo and report bugs to http://bugs.kde.org, either per hand or using Dr. Konqi.

Requirements

Install for all users

mkdir kdevgit
cd kdevgit
git clone git://anongit.kde.org/kdevplatform
git clone git://anongit.kde.org/kdevelop
cd kdevplatform
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make && sudo make install
kbuildsycoca4
cd ../..
cd kdevelop
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make && sudo make install
kbuildsycoca4

Install for local user

mkdir kdevgit
cd kdevgit
git clone git://anongit.kde.org/kdevplatform
git clone git://anongit.kde.org/kdevelop
cd kdevplatform
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$HOME/kdevelop4 ..
make && make install
# the following line is needed so that kbuildsycoca4 finds all .desktop files
export KDEDIRS=$HOME/kdevelop4:/usr
kbuildsycoca4
cd ../..
cd kdevelop
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=$HOME/kdevelop4 ..
make && make install
kbuildsycoca4

Please note: Whenever you do some package or distribution update that calls kbuildsycoca4, you need to execute the following lines after the update:

export KDEDIRS=$HOME/kdevelop4:/usr
kbuildsycoca4