source: kde5/frameworks/intro.xml@ 8fe1ea6

systemd-11177
Last change on this file since 8fe1ea6 was 8fe1ea6, checked in by Krejzi <krejzi@…>, 10 years ago

Import kde5 from kde5 branch, but keep it disabled for the time being.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13617 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE partintro PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="frameworks-intro">
9 <?dbhtml filename="frameworks-intro.html"?>
10
11 <sect1info>
12 <othername>$LastChangedBy$</othername>
13 <date>$Date$</date>
14 </sect1info>
15
16 <title>Introduction to KDE Frameworks 5</title>
17
18 <para>
19 <application>KDE Frameworks 5</application> is a collection of
20 libraries based on top of <application>Qt5</application> and
21 QML that can be used independently of
22 <application>KDE</application>.
23 </para>
24
25 <important>
26 <para>
27 The instructions for <application>KDE Frameworks 5</application>
28 packages assume that <xref linkend="qt5"/> was built with
29 recommended dependencies installed and that
30 <application>Qt5</application> executables are in user's $PATH.
31 </para>
32 </important>
33
34 <sect2>
35 <title>Build Order</title>
36
37 <para>
38 <application>KDE Frameworks 5</application> packages are listed
39 in the recommended and tested build order based on dependencies.
40 </para>
41
42 </sect2>
43
44 <sect2>
45 <title>Installing in /usr</title>
46
47 <para>
48 One option is to install <application>KDE Frameworks 5</application>
49 into the <filename class="directory">/usr</filename> hierarchy.
50 This creates a simpler setup but makes it more difficult to try
51 multiple versions of <application>KDE Frameworks</application>.
52 </para>
53
54<screen><userinput>export KF5_PREFIX=/usr
55export KF5_SYSCONFDIR=/etc</userinput></screen>
56
57 <para>
58 It is a good idea to add the following variables to your
59 system or personal profile:
60 </para>
61
62<screen role="root"><userinput>cat &gt; /etc/profile.d/kf5.sh &lt;&lt; "EOF"
63<literal># Begin /etc/profile.d/kf5.sh
64
65export KF5_PREFIX=/usr
66export KF5_SYSCONFDIR=/etc
67
68pathappend /usr/lib/qt5/plugins QT_PLUGIN_PATH
69pathappend /opt/qt5/plugins QT_PLUGIN_PATH
70
71pathappend /usr/lib/qt5/qml QML_IMPORT_PATH
72pathappend /opt/qt5/qml QML_IMPORT_PATH
73
74pathappend /usr/lib/qt5/qml QML2_IMPORT_PATH
75pathappend /opt/qt5/qml QML2_IMPORT_PATH
76
77# End /etc/profile.d/kf5.sh</literal>
78EOF</userinput></screen>
79
80 <warning>
81 <para>
82 If <application>KDE4</application> is installed in
83 <filename class="directory">/usr</filename>, some packages
84 from this chapter might overwrite some programs installed
85 by <application>KDE4</application> packages.
86 </para>
87 </warning>
88
89 </sect2>
90
91 <sect2>
92 <title>Installing in /opt</title>
93
94 <para>
95 A method of building multiple versions installs
96 <application>KDE Frameworks 5</application> in the
97 <filename class="directory">/opt</filename> hierarchy:
98 </para>
99
100<screen><userinput>export KF5_PREFIX=/opt/kf5
101export KF5_SYSCONFDIR=$KF5_PREFIX/etc</userinput></screen>
102
103 <para>
104 If you are not installing <application>KDE Frameworks 5</application>
105 in <filename class="directory">/usr</filename>, you will need to
106 make some additional configuration changes. Best practice is to add
107 those to your system or personal profile:
108 </para>
109
110<screen role="root"><userinput>cat &gt; /etc/profile.d/kf5.sh &lt;&lt; "EOF"
111<literal># Begin /etc/profile.d/kf5.sh
112
113export KF5_PREFIX=/opt/kf5
114export KF5_SYSCONFDIR=$KF5_PREFIX/etc
115
116pathappend $KF5_PREFIX CMAKE_PREFIX_PATH
117pathappend $KF5_PREFIX/bin PATH
118pathappend $KF5_PREFIX/lib/pkgconfig PKG_CONFIG_PATH
119pathappend $KF5_PREFIX/lib/python&python2-majorver; PYTHONPATH
120
121pathappend /etc/xdg XDG_CONFIG_DIRS
122pathappend $KF5_PREFIX/etc/xdg XDG_CONFIG_DIRS
123pathappend /usr/share XDG_DATA_DIRS
124pathappend $KF5_PREFIX/share XDG_DATA_DIRS
125
126pathappend /usr/lib/qt5/plugins QT_PLUGIN_PATH
127pathappend /opt/qt5/plugins QT_PLUGIN_PATH
128pathappend $KF5_PREFIX/lib/qt5/plugins QT_PLUGIN_PATH
129
130pathappend /usr/lib/qt5/qml QML_IMPORT_PATH
131pathappend /opt/qt5/qml QML_IMPORT_PATH
132pathappend $KF5_PREFIX/lib/qt5/qml QML_IMPORT_PATH
133
134pathappend /usr/lib/qt5/qml QML2_IMPORT_PATH
135pathappend /opt/qt5/qml QML2_IMPORT_PATH
136pathappend $KF5_PREFIX/lib/qt5/qml QML2_IMPORT_PATH
137
138# End /etc/profile.d/kf5.sh</literal>
139EOF</userinput></screen>
140
141 <para>
142 Expand your <filename>/etc/ld.so.conf</filename> file:
143 </para>
144
145<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
146<literal># Begin KF5 addition
147
148/opt/kf5/lib
149
150# End KF5 addition</literal>
151EOF</userinput></screen>
152
153 <indexterm zone="frameworks-intro">
154 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
155 </indexterm>
156
157 <para>
158 Several <application>KDE Frameworks 5</application> packages install files into
159 <application>D-Bus</application> and <application>Polkit</application> directories.
160 When installing <application>KDE Frameworks 5</application> in a location other than
161 <filename class="directory">/usr</filename>, <application>D-Bus</application> and
162 <application>Polkit</application> need to be able to find these files. The easiest
163 way to achieve this is to create the following symlinks (as the
164 <systemitem class="username">root</systemitem> user):
165 </para>
166
167<screen role="root"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
168ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
169ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
170ln -sfv /usr/share/polkit-1 $KF5_PREFIX/share</userinput></screen>
171
172 <para>
173 Some packages may also install icons from the "hicolor" icon set. Since that
174 icon set is used by many packages, it is a good idea to create a
175 symlink to the one in <filename class="directory">/usr/share</filename>
176 to avoid having multiple installations of <xref linkend="hicolor-icon-theme"/>.
177 Run the following commands as the <systemitem class="username">root</systemitem>
178 user:
179 </para>
180
181<screen role="root"><userinput>install -v -dm755 $KF5_PREFIX/share/icons &amp;&amp;
182ln -sfv /usr/share/icons/hicolor $KF5_PREFIX/share/icons</userinput></screen>
183
184 <tip>
185 <para>
186 Sometimes, the installation paths are hardcoded into installed files.
187 This is the reason why <filename class="directory">/opt/kf5</filename>
188 is used as installation prefix instead of <filename
189 class="directory">/opt/kf5-&kf5-version;</filename>. After installing
190 <application>KDE Frameworks</application>, you may rename the directory
191 and create a symlink:
192 </para>
193
194<screen role="root"><userinput>mv /opt/kf5{,-&kf5-version;}
195ln -sfv kf5-&kf5-version; /opt/kf5</userinput></screen>
196
197 <para>
198 Later on, you may want to install other versions of
199 <application>KDE Frameworks 5</application>. To do that, just remove
200 the symlink and use <filename class="directory">/opt/kf5</filename>
201 as the prefix again. Which version of
202 <application>KDE Frameworks 5</application> you use depends only on
203 where the symlink points to. No other reconfiguration will be needed.
204 </para>
205 </tip>
206
207 </sect2>
208
209</sect1>
Note: See TracBrowser for help on using the repository browser.