Getting Started: Difference between revisions

From KDE TechBase
(→‎Choose Version: shorten words for distribution synchronized, it can still get smaller and better.)
(Marked this version for translation)
(104 intermediate revisions by 25 users not shown)
Line 1: Line 1:
{{Template:I18n/Language Navigation Bar|Getting_Started}}
<languages />
<translate>
<!--T:35-->
See [https://community.kde.org/Get_Involved the Get Involved page on the Community Wiki].


== Determine Your Needs==
<!--T:36-->
KDE versions are split into branches off of the Trunk. The steps to build most branches are very similar. However, Each branch has different [[Getting_Started/Build/KDE4/Prerequisites|prerequisites]].
If you are looking for build instructions, [https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source up-to-date build instructions] are available  on the Community Wiki, and we also have [[/Build/Historic|historic ones]].
 
</translate>
You will need to know what version you want, how often you will use the development environment (more work upfront may be justified if you intend to use it more),
 
Our content is generally written with KDE4 and Linux in mind, Windows and BSD and KDE3 look at [[Getting_Started/Build|other Supported Platforms]] page.
 
== [[Choose Version]] ==
; Distribution synchronized
: To ease finding dependencies, See [[Distributions with KDE]], or you may have a requirement to support a version supplied by a vendor.
; Latest Features for production
: [[branch]] (stable / beta)
; [[Core Development]]
: [[trunk]]  Where new features grow (may have build problems on Mondays)
 
;Browse availability:
:http://websvn.kde.org/branches/KDE/
 
== Choose Location ==
Choose where you want to put the KDE installation, and keep source and build directories.
( [[QCA plugin]] may have to be installed as root if using system Qt))
===Source and Build Directories===
: suggested:  ~/kde/src  and ~/kde/build  (where ~ is the user which runs KDE)
: possibly /usr/src/  if [[building as root]]
 
===Installation Directory===
;[[Casual Curiosity]]
: [[development user home]] if you do not want to mess up your production KDE
: [[your home directory]] if you are willing to use environment variables to keep versions seporate( using [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts|scripts]]) or have no other access to the machine
: [[As root]] Not advised unless you have a dedicated machine
 
; [[Application Developer]]
: [[development user home]] same as for curious user
: [[as root]] will be more useful to simulate environment of customers
: [[your home directory]] may simplify your development
 
; [[Distribution Manager]]
: To test KDM, you may want to install [[as root]] and or use a [[virtual machine]] so you do not damage a production system.
 
; [[Contributor]]
: keeping your system similar to other developers will help make troubleshooting easier, see [[Developer Setups]]
 
== Gather Prerequisites ==
Your build will fail if you are missing one of them, and the list changes.  There are some options, however the make system can often find optional packages even if you do not intend to use them, so you may need to pass disable options.
 
* [[Getting_Started/Build/KDE4/Prerequisites]]
* [[build requirements]] by distribution
 
===Qt ===
; System Qt
: Often the easiest way to go, because most people have it already, you may have to install the QCA plugin as root tho.
 
; KDE-Qt
:Previously known as qt-copy -- This is the minimum version of Qt any of your users is expected to have, Some bugs may be fixed in new Qt, so you may have to work-around bugs in lower versions, including this one.
 
; Main Qt
: get it straight from Nokia, experience the latest cool features, but note that many people will be using older distributions with older Qt
 
==Getting the Source==
We are migrating from SVN to git.  We have extensive infrastructure that is being converted, but please know that this is a much anticipated, complex, and popular change. http://www.omat.nl/2010/07/07/move-to-git-the-progress-so-far/
 
[[Image:Action_down.svg|right|32px]]
* [[Getting_Started/Sources/Anonymous SVN|Anonymous SVN Quickstart Guide]]
* [[Getting_Started/Sources/Using Subversion with KDE|Using Subversion with KDE]] ''A more in depth look at accessing KDE source code with subversion, including the repository layout and working with revisions and patches.''
* [[Getting_Started/Sources/Amarok Git Tutorial|Amarok Git Tutorial]] ''Amarok has moved to Git (with the rest of KDE to follow), so it requires different steps to check out and develop.''
* [[Getting_Started/Sources/Snapshots|Daily Snapshots]]
* [http://websvn.kde.org/ Browse code online], or [http://lxr.kde.org/search search the code]
 
== Build it ==
 
 
; Manual Steps
* [[Getting_Started/Build/KDE4|KDE 4 (Development version, TRUNK)]]
* [[Getting_Started/Build/KDE4.x|KDE 4.x (Stable version or 4.x SVN BRANCH)]]
* [[Getting_Started/Build/KDE4.4 Upgrade|Upgrade KDE-4.4.x release version or KDE-4.4 SVN BRANCH)]]
* [[Getting_Started/Build|Other versions and FAQ]] ''Including information for building on non-linux systems''
 
; augmented with bash functions.
:[[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts]]
:Specific examples:[[Build KDE4.6 on Kubuntu]]
 
; distribution specific
There may be pre-made builds for your distribution, For example, in Kubuntu, Project Neon, aims to provide a recent trunk build environment, and PPA's provide latest branch versions.
 
; kdesrc-build
This script will do most of the downloading and compiling for you. It can be configured to build most versions, by default it builds Trunk.  There full-process instructions at http://kdesrc-build.kde.org and more here [[Getting_Started/Build/kdesrc-build|kdesrc-build]], and here is a list of [[kdesrc-build/workingrclist|working configuration files]].
 
=== Troubleshooting the build ===
* [[Getting_Started/Build/KDE4/Troubleshooting|Troubleshooting]]
 
[[Getting_Started/Build/KDE4/Troubleshooting|Troubleshooting]] information is similar between branches as well.
 
Compile and Linking errors are frequent sources of discouragement. make careful note of the first occurrence of an error in your build process. It could be as simple as a bad environment variable, an unexpected version of a library or missing prerequisite. 
 
Please review your logs and do searches for fixes. If you cannot find a solution, [[Build/KDE4/Errors]] and IRC channel, and mailing lists. [[Build/Stories]]
 
==Using your KDE==
After KDE has been built, you'll want a good way to launch apps and perform your regular development tasks:
=== Environment Variables ===
Your system won't know to use your new KDE until you tell it how to find the KDE applications and libraries.
[[Image:Action_pen.svg|right|32px]]
* [[Getting_Started/Increased Productivity in KDE4 with Scripts|Increased Productivity in KDE4 with Scripts]]
* [[Getting_Started/Set up KDE 4 for development|Set up KDE 4 for development]]
 
===Set up Development Tools===
You may need to set up or use, you will likely want to use a stable package from your distribution.
 
it is unclear if the kde-devel user or your normal user will be running the development tools. Please Help
 
For most development topics, and documentation, see [[Development]]
 
; Opening and creating KDE project files
* [[eclipse]]
* [[kdevelop]]
* [[qtdesigner]]
 
This is a stub, please help.
 
===Contribution===
You may not need the latest bleeding-edge KDE to develop with, Much code will be similiar between versions and your patch might work, however Trunk is where major changes are introduced, and branches are mostly maintenance/bug fix.
 
[[Image:Action_tool.svg|right|32px]]
* [[Contribute|Contribute]]
* [[Contribute/Send_Patches|Send Patches]]
* [[Contribute/Bugsquad|Bugsquad]]
* [[Getting_Started/Using Project Neon to contribute to KDE|Using Project Neon to contribute to KDE]]
 
 
[[Category:Build_KDE]]

Revision as of 18:15, 5 April 2016