source: kde/kf5/kf6-intro.xml@ 1883bc4

ken/TL2024 lazarus trunk
Last change on this file since 1883bc4 was 5bfcd23e, checked in by Bruce Dubbs <bdubbs@…>, 4 months ago

Internal cleanup kf5->kf6

  • Property mode set to 100644
File size: 8.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE chapter 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 <!ENTITY kf6-download-http "&kf6-download-http;">
8 <!ENTITY kf6-download-ftp " ">
9 <!ENTITY kf6-md5sum "See Below">
10 <!ENTITY kf6-size "30 MB">
11 <!ENTITY kf6-buildsize "11.7 MB">
12 <!ENTITY kf6-time "0.4 SBU">
13]>
14
15<sect1 id="kf6-intro" xreflabel="Introduction to KF6">
16 <?dbhtml filename="kf6-intro.html"?>
17
18
19 <title>KDE Frameworks 6 Pre-installation Configuration</title>
20
21 <indexterm zone="kf6-intro">
22 <primary sortas="g-kf6">KDE Frameworks Introduction</primary>
23 </indexterm>
24
25 <para>
26 KF6 can be installed in <filename class="directory">/usr</filename> or
27 <filename class="directory">/opt/kf6</filename>. The BLFS editors
28 recommend the latter in the BLFS environment.
29 </para>
30
31 <sect2>
32 <title>Installing in /usr</title>
33
34 <para>
35 One option is to install <application>KDE Frameworks</application>
36 into the <filename class="directory">/usr</filename> hierarchy.
37 This creates a simpler setup but makes it more difficult to try
38 multiple versions of <application>KDE Frameworks</application>.
39 </para>
40
41<screen><userinput>export KF6_PREFIX=/usr</userinput></screen>
42
43 <para>
44 It is a good idea to add the following variables to your
45 system or personal profiles:
46 </para>
47
48<screen role="root"><userinput>cat &gt;&gt; /etc/profile.d/qt6.sh &lt;&lt; "EOF"
49<literal># Begin kf6 extension for /etc/profile.d/qt6.sh
50
51pathappend /usr/lib/plugins QT_PLUGIN_PATH
52pathappend $QT6DIR/lib/plugins QT_PLUGIN_PATH
53
54pathappend /usr/lib/qt6/qml QML2_IMPORT_PATH
55pathappend $QT6DIR/lib/qml QML2_IMPORT_PATH
56
57# End extension for /etc/profile.d/qt6.sh</literal>
58EOF
59
60cat &gt; /etc/profile.d/kf6.sh &lt;&lt; "EOF"
61<literal># Begin /etc/profile.d/kf6.sh
62
63export KF6_PREFIX=/usr
64
65# End /etc/profile.d/kf6.sh</literal>
66EOF</userinput></screen>
67
68 <note>
69 <para>
70 If <application>qt6</application> was installed in <filename
71 class="directory">/usr</filename>, the <filename
72 class="directory">$QT6DIR/lib/</filename> portions of the above paths
73 may need to be changed to <filename
74 class="directory">$QT6DIR/lib/qt6/</filename>.
75 </para>
76 </note>
77
78 <para>
79 Additionally, if <xref linkend="sudo"/> is installed, these variables
80 should be available to the super user. Execute the following commands as
81 the <systemitem class="username">root</systemitem> user:
82 </para>
83
84<screen role="root"><userinput>cat &gt;&gt; /etc/sudoers.d/qt &lt;&lt; "EOF"
85<literal>Defaults env_keep += QT_PLUGIN_PATH
86Defaults env_keep += QML2_IMPORT_PATH</literal>
87EOF
88
89cat &gt;&gt; /etc/sudoers.d/kde &lt;&lt; "EOF"
90<literal>Defaults env_keep += KF6_PREFIX</literal>
91EOF</userinput></screen>
92
93 </sect2>
94
95 <sect2>
96 <title>Installing in /opt</title>
97
98 <para>
99 A method of building multiple versions installs
100 <application>KDE Frameworks</application> in the
101 <filename class="directory">/opt</filename> hierarchy:
102 </para>
103
104<screen><userinput>export KF6_PREFIX=/opt/kf6</userinput></screen>
105
106 <para>
107 If you are not installing <application>KDE Frameworks</application>
108 in <filename class="directory">/usr</filename>, you will need to
109 make some additional configuration changes. Best practice is to add
110 those to your system or personal profile:
111 </para>
112
113<screen role="root"><userinput>cat &gt; /etc/profile.d/kf6.sh &lt;&lt; "EOF"
114<literal># Begin /etc/profile.d/kf6.sh
115
116export KF6_PREFIX=/opt/kf6
117
118pathappend $KF6_PREFIX/bin PATH
119pathappend $KF6_PREFIX/lib/pkgconfig PKG_CONFIG_PATH
120
121pathappend $KF6_PREFIX/etc/xdg XDG_CONFIG_DIRS
122pathappend $KF6_PREFIX/share XDG_DATA_DIRS
123
124pathappend $KF6_PREFIX/lib/plugins QT_PLUGIN_PATH
125pathappend $KF6_PREFIX/lib/plugins/kcms QT_PLUGIN_PATH
126
127pathappend $KF6_PREFIX/lib/qml QML2_IMPORT_PATH
128
129pathappend $KF6_PREFIX/lib/python&python3-majorver;/site-packages PYTHONPATH
130
131pathappend $KF6_PREFIX/share/man MANPATH
132
133pathappend $KF6_PREFIX/include CPLUS_INCLUDE_PATH
134# End /etc/profile.d/kf6.sh</literal>
135EOF
136
137cat &gt;&gt; /etc/profile.d/qt6.sh &lt;&lt; "EOF"
138<literal># Begin Qt6 changes for KF6
139
140pathappend /usr/lib/plugins QT_PLUGIN_PATH
141pathappend $QT6DIR/plugins QT_PLUGIN_PATH
142pathappend $QT6DIR/qml QML2_IMPORT_PATH
143
144# End Qt6 changes for KF6</literal>
145EOF</userinput></screen>
146
147 <para>
148 Expand your <filename>/etc/ld.so.conf</filename> file:
149 </para>
150
151<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
152<literal># Begin KF6 addition
153
154/opt/kf6/lib
155
156# End KF6 addition</literal>
157EOF</userinput></screen>
158
159 <indexterm zone="kf6-intro">
160 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
161 </indexterm>
162
163 <para revision="sysv">
164 Several <application>KDE Frameworks</application> and
165 <application>Plasma</application> packages install
166 files into <application>D-Bus</application> and
167 <application>Polkit</application> directories. When installing
168 <application>KDE Frameworks</application> in a location other than
169 <filename class="directory">/usr</filename>,
170 <application>D-Bus</application> and <application>Polkit</application>
171 need to be able to find these files.
172 The easiest way to achieve this is to create the following symlinks (as
173 the <systemitem class="username">root</systemitem> user):
174 </para>
175
176<screen role="root"
177 revision="sysv"><userinput>install -v -dm755 $KF6_PREFIX/{etc,share} &amp;&amp;
178ln -sfv /etc/dbus-1 $KF6_PREFIX/etc &amp;&amp;
179ln -sfv /usr/share/dbus-1 $KF6_PREFIX/share &amp;&amp;
180ln -sfv /usr/share/polkit-1 $KF6_PREFIX/share</userinput></screen>
181
182 <para revision="systemd">
183 Several <application>KDE Frameworks</application> and
184 <application>KDE Plasma</application> packages install
185 files into <application>D-Bus</application>,
186 <application>Polkit</application>, and
187 <application>systemd</application> directories. When installing
188 <application>KDE 6</application> in a location other than
189 <filename class="directory">/usr</filename>,
190 <application>D-Bus</application>, <application>Polkit</application>,
191 and <application>systemd</application>
192 need to be able to find these files.
193 The easiest way to achieve this is to create the following symlinks (as
194 the <systemitem class="username">root</systemitem> user):
195 </para>
196
197<screen role="root"
198 revision="systemd"><userinput>install -v -dm755 $KF6_PREFIX/{etc,share} &amp;&amp;
199ln -sfv /etc/dbus-1 $KF6_PREFIX/etc &amp;&amp;
200ln -sfv /usr/share/dbus-1 $KF6_PREFIX/share &amp;&amp;
201ln -sfv /usr/share/polkit-1 $KF6_PREFIX/share &amp;&amp;
202install -v -dm755 $KF6_PREFIX/lib &amp;&amp;
203ln -sfv /usr/lib/systemd $KF6_PREFIX/lib</userinput></screen>
204
205 <para>
206 Some packages may also install icons from the "hicolor" icon set. Since that
207 icon set is used by many packages, it is a good idea to create a
208 symlink to the one in <filename class="directory">/usr/share</filename>
209 to avoid having multiple installations of <xref linkend="hicolor-icon-theme"/>.
210 Run the following commands as the <systemitem class="username">root</systemitem>
211 user:
212 </para>
213
214<screen role="root"><userinput>install -v -dm755 $KF6_PREFIX/share/icons &amp;&amp;
215ln -sfv /usr/share/icons/hicolor $KF6_PREFIX/share/icons</userinput></screen>
216
217 <tip>
218 <para>
219 Sometimes, the installation paths are hardcoded into installed files.
220 This is the reason why <filename class="directory">/opt/kf6</filename>
221 is used as installation prefix instead of <filename
222 class="directory">/opt/kf6-&kf6-version;</filename>. After installing
223 <application>KDE Frameworks</application>, you may rename the directory
224 and create a symlink:
225 </para>
226
227<screen role="root"><userinput>mv /opt/kf6{,-&kf6-version;}
228ln -sfv kf6-&kf6-version; /opt/kf6</userinput></screen>
229
230 <para>
231 Later on, you may want to install other versions of
232 <application>KDE Frameworks</application>. To do that, just remove
233 the symlink and use <filename class="directory">/opt/kf6</filename>
234 as the prefix again. Which version of
235 <application>KDE Frameworks</application> you use depends only on
236 where the symlink points. No other reconfiguration will be needed.
237 </para>
238 </tip>
239
240 </sect2>
241
242</sect1>
Note: See TracBrowser for help on using the repository browser.