<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://techbase.kde.org/skins/common/feed.css?0.2"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://techbase.kde.org/index.php?title=Getting_Started/Build/Example&amp;feed=atom&amp;action=history</id>
		<title>Getting Started/Build/Example - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://techbase.kde.org/index.php?title=Getting_Started/Build/Example&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=Getting_Started/Build/Example&amp;action=history"/>
		<updated>2013-05-22T00:20:55Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://techbase.kde.org/index.php?title=Getting_Started/Build/Example&amp;diff=67557&amp;oldid=prev</id>
		<title>Mkollo: /* Example Build */</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=Getting_Started/Build/Example&amp;diff=67557&amp;oldid=prev"/>
				<updated>2011-11-16T16:00:49Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Example Build&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:00, 16 November 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; cd ~/kde-devel/src&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; cd ~/kde-devel/src&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; git clone &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http&lt;/del&gt;://anongit.kde.org/kdelibs.git&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; git clone &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;git&lt;/ins&gt;://anongit.kde.org/kdelibs.git&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; mkdir ~/kde-devel/build/kdelibs&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; mkdir ~/kde-devel/build/kdelibs&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; cd ~/kde-devel/build/kdelibs&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; cd ~/kde-devel/build/kdelibs&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Then request a copy of the code from the KDE source repository, in this example a copy of kdelibs from Git:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Then request a copy of the code from the KDE source repository, in this example a copy of kdelibs from Git:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; git clone &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http&lt;/del&gt;://anongit.kde.org/kdelibs.git&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; git clone &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;git&lt;/ins&gt;://anongit.kde.org/kdelibs.git&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This may take some time to process.&amp;#160; For Git you will see out output similar to:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This may take some time to process.&amp;#160; For Git you will see out output similar to:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; myuser@mybox:~/kde-devel/src&amp;gt; git clone &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http&lt;/del&gt;://anongit.kde.org/kdelibs.git&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; myuser@mybox:~/kde-devel/src&amp;gt; git clone &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;git&lt;/ins&gt;://anongit.kde.org/kdelibs.git&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http&lt;/del&gt;://anongit.kde.org/kdelibs.git&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;git&lt;/ins&gt;://anongit.kde.org/kdelibs.git&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Initialized empty Git repository in /home/myuser/kde-devel/src/kdelibs/.git/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Initialized empty Git repository in /home/myuser/kde-devel/src/kdelibs/.git/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; remote: Counting objects: 722134, done.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; remote: Counting objects: 722134, done.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mkollo</name></author>	</entry>

	<entry>
		<id>http://techbase.kde.org/index.php?title=Getting_Started/Build/Example&amp;diff=57681&amp;oldid=prev</id>
		<title>Odysseus: Created page with '== Example Build == The following example recipe shows the full sequence of commands you would need to enter into the command line to build a typical KDE module:   cd ~/kde-devel...'</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=Getting_Started/Build/Example&amp;diff=57681&amp;oldid=prev"/>
				<updated>2011-03-07T16:29:00Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;== Example Build == The following example recipe shows the full sequence of commands you would need to enter into the command line to build a typical KDE module:   cd ~/kde-devel...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Example Build ==&lt;br /&gt;
The following example recipe shows the full sequence of commands you would need to enter into the command line to build a typical KDE module:&lt;br /&gt;
&lt;br /&gt;
 cd ~/kde-devel/src&lt;br /&gt;
 git clone http://anongit.kde.org/kdelibs.git&lt;br /&gt;
 mkdir ~/kde-devel/build/kdelibs&lt;br /&gt;
 cd ~/kde-devel/build/kdelibs&lt;br /&gt;
 cmake ~/kde-devel/src/kdelibs \&lt;br /&gt;
       -DCMAKE_BUILD_TYPE=debugfull \&lt;br /&gt;
       -DCMAKE_INSTALL_PREFIX=$KDEDIR&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Let's break that recipe down and explain each step.&lt;br /&gt;
&lt;br /&gt;
=== Source ===&lt;br /&gt;
&lt;br /&gt;
First you navigate to a convenient folder to save the code in:&lt;br /&gt;
 cd ~/kde-devel/src&lt;br /&gt;
&lt;br /&gt;
Then request a copy of the code from the KDE source repository, in this example a copy of kdelibs from Git:&lt;br /&gt;
 git clone http://anongit.kde.org/kdelibs.git&lt;br /&gt;
&lt;br /&gt;
This may take some time to process.  For Git you will see out output similar to:&lt;br /&gt;
 myuser@mybox:~/kde-devel/src&amp;gt; git clone http://anongit.kde.org/kdelibs.git&lt;br /&gt;
 http://anongit.kde.org/kdelibs.git&lt;br /&gt;
 Initialized empty Git repository in /home/myuser/kde-devel/src/kdelibs/.git/&lt;br /&gt;
 remote: Counting objects: 722134, done.&lt;br /&gt;
 remote: Compressing objects: 100% (138759/138759), done.&lt;br /&gt;
 remote: Total 722134 (delta 586243), reused 715797 (delta 580373)&lt;br /&gt;
 Receiving objects: 100% (722134/722134), 140.90 MiB | 706 KiB/s, done.&lt;br /&gt;
 Resolving deltas: 100% (586243/586243), done.&lt;br /&gt;
 myuser@mybox:~/kde-devel/src&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This example will create a folder called ~/kde-devel/src/kdelibs containing all the kdelibs source code and all its history since KDE began.&lt;br /&gt;
&lt;br /&gt;
For an SVN checkout you will instead see output similar to:&lt;br /&gt;
 myuser@mybox:~/kde-devel/src&amp;gt; svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdesdk&lt;br /&gt;
 A    kdesdk/cmake&lt;br /&gt;
 A    kdesdk/cmake/samples&lt;br /&gt;
 A    kdesdk/cmake/samples/kpager&lt;br /&gt;
 A    kdesdk/cmake/samples/kpager/CMakeLists.txt&lt;br /&gt;
 ...&lt;br /&gt;
 A    kdesdk/COPYING.LIB&lt;br /&gt;
 U   kdesdk&lt;br /&gt;
 Checked out revision 1223739.&lt;br /&gt;
 myuser@mybox:~/kde-devel/src&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Configure ===&lt;br /&gt;
First you create a convenient folder to build the code in:&lt;br /&gt;
 mkdir ~/kde-devel/build/kdelibs&lt;br /&gt;
 cd ~/kde-devel/build/kdelibs&lt;br /&gt;
&lt;br /&gt;
Next you need to run CMake to create the configuration files to be used in the build:&lt;br /&gt;
 cmake ~/kde-devel/src/kdelibs \&lt;br /&gt;
       -DCMAKE_BUILD_TYPE=debugfull \&lt;br /&gt;
       -DKDE4_BUILD_TESTS=TRUE \&lt;br /&gt;
       -DCMAKE_INSTALL_PREFIX=$KDEDIR&lt;br /&gt;
&lt;br /&gt;
Various options can be passed to CMake to control how a project gets built, but these are the most common:&lt;br /&gt;
* The first line tells CMake where it can find the source code that is to be built.&lt;br /&gt;
* The second line tells CMake what type of build is required, in this example a debugfull build that will include useful information for when we are debugging any the software.&lt;br /&gt;
* The third line tells CMake we also want the unit tests to be built.&lt;br /&gt;
* The fourth line tells CMake where to install the software.&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
&lt;br /&gt;
=== Update ===&lt;/div&gt;</summary>
		<author><name>Odysseus</name></author>	</entry>

	</feed>