[b3867c5] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 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 qt5-major "5.15">
|
---|
| 8 | <!ENTITY qt5-url "https://download.qt.io/archive/qt/&qt5-major;/&qt5-version;/single">
|
---|
| 9 |
|
---|
| 10 | <!ENTITY qt5-download-http "&qt5-url;/qt-everywhere-opensource-src-&qt5-version;.tar.xz">
|
---|
| 11 | <!ENTITY qt5-download-ftp " ">
|
---|
| 12 | <!ENTITY qt5-md5sum "fb41d86bea6bc4886030a5092c910b09">
|
---|
| 13 | <!ENTITY qt5-size "varies">
|
---|
| 14 | <!ENTITY qt5-buildsize "varies">
|
---|
| 15 | <!ENTITY qt5-time "varies">
|
---|
| 16 | ]>
|
---|
| 17 |
|
---|
| 18 | <sect1 id="qt5-components" xreflabel="qt-components-&qt5-version;">
|
---|
| 19 | <?dbhtml filename="qt5-components.html" ?>
|
---|
| 20 |
|
---|
| 21 | <title>qt-components-&qt5-version;</title>
|
---|
| 22 |
|
---|
| 23 | <indexterm zone="qt5-components">
|
---|
| 24 | <primary sortas="a-Qt-components">Qt Components</primary>
|
---|
| 25 | </indexterm>
|
---|
| 26 |
|
---|
| 27 | <sect2 role="package">
|
---|
[6886d51] | 28 | <title>Introduction to qt5 components</title>
|
---|
[b3867c5] | 29 |
|
---|
| 30 | <para>
|
---|
| 31 | These instructions show how to build additional Qt5 components beyond
|
---|
| 32 | <xref linkend="qt5-alternate"/>. They are not applicable if the
|
---|
| 33 | full <xref linkend="qt5"/> package has been built.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
| 36 | &lfs113_checked;
|
---|
| 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&qt5-download-http;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&qt5-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download MD5 sum: &qt5-md5sum;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <!--
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &qt5-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &qt5-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &qt5-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | -->
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[68954249] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Now that <application>qt5</application> updates are restricted to
|
---|
| 79 | commercial customers, upstream patches for the various modules are
|
---|
| 80 | being curated at kde.
|
---|
| 81 | Patches for the modules required by packages in BLFS have been
|
---|
| 82 | aggregated for the non-modular qt5 build we use.
|
---|
| 83 | </para>
|
---|
| 84 | <para>
|
---|
| 85 | Required patch:
|
---|
| 86 | <ulink url="&patch-root;/qt-everywhere-opensource-src-&qt5-version;-kf5-1.patch"/>
|
---|
| 87 | </para>
|
---|
| 88 | <para>
|
---|
| 89 | Details of the kde curation can be found at
|
---|
| 90 | <ulink url="https://dot.kde.org/2021/04/06/announcing-kdes-qt-5-patch-collection"/>
|
---|
| 91 | and <ulink url="https://community.kde.org/Qt5PatchCollection"/>.
|
---|
| 92 | </para>
|
---|
| 93 | </listitem>
|
---|
| 94 | </itemizedlist>
|
---|
| 95 |
|
---|
[b3867c5] | 96 | <bridgehead renderas="sect3">qt5 components Dependencies</bridgehead>
|
---|
| 97 |
|
---|
| 98 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 99 | <para role="required">
|
---|
| 100 | <xref linkend="qt5-alternate"/>
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
| 103 | <bridgehead renderas="sect4">Recommended dependencies for qtimageformats</bridgehead>
|
---|
| 104 | <para role="recommended">
|
---|
| 105 | <xref linkend="jasper"/>,
|
---|
| 106 | <xref linkend="libmng"/>, and
|
---|
| 107 | <xref linkend="libwebp"/>
|
---|
| 108 | </para>
|
---|
| 109 |
|
---|
| 110 | <bridgehead renderas="sect4">Recommended dependencies for multimedia</bridgehead>
|
---|
| 111 | <para role="recommended">
|
---|
| 112 | <xref linkend="gst10-plugins-good"/>,
|
---|
| 113 | <xref linkend="gst10-plugins-bad"/>, and
|
---|
| 114 | <xref linkend="gst10-plugins-ugly"/>
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
| 117 | <!--
|
---|
| 118 | <para condition="html" role="usernotes">
|
---|
| 119 | Editor Notes: <ulink url="&blfs-wiki;/qt5"/>
|
---|
| 120 | </para>
|
---|
| 121 | -->
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="installation">
|
---|
| 125 | <title>Installation of qt5 components</title>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | There are a few extra components needed for different packages in BLFS.
|
---|
[f2cb575d] | 129 | These are
|
---|
| 130 | <emphasis role="bold">qtimageformats</emphasis>,
|
---|
| 131 | <emphasis role="bold">qtlocation</emphasis>,
|
---|
| 132 | <emphasis role="bold">qtwebchannel</emphasis>,
|
---|
| 133 | <emphasis role="bold">qtdoc</emphasis>, and
|
---|
| 134 | <emphasis role="bold">qtmultimedia</emphasis>.
|
---|
| 135 | Only those components specified for a specific
|
---|
[b3867c5] | 136 | package are needed. You only need to build the relevant component(s).
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
[68954249] | 139 | <para>
|
---|
| 140 | First, apply a patch to pull in the fixes curated by KDE for some of the
|
---|
| 141 | modules listed above:
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <screen><userinput remap="pre">patch -Np1 -i ../qt-everywhere-opensource-src-5.15.10-kf5-1.patch</userinput></screen>
|
---|
| 145 |
|
---|
[81a1d5fb] | 146 | <para>
|
---|
| 147 | Next, if you are installing <emphasis role="bold">qtlocation</emphasis>,
|
---|
| 148 | fix the build with GCC-13:
|
---|
| 149 | </para>
|
---|
| 150 |
|
---|
| 151 | <screen><userinput>sed -e "/pragma once/a#include <cstdint>" \
|
---|
| 152 | -i qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/geometry.hpp \
|
---|
| 153 | qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp \
|
---|
| 154 | qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp</userinput></screen>
|
---|
| 155 |
|
---|
[b3867c5] | 156 | <para>
|
---|
| 157 | Install each desired component by running the following commands:
|
---|
| 158 | </para>
|
---|
| 159 |
|
---|
[68954249] | 160 | <screen><userinput>cd <component>
|
---|
[b3867c5] | 161 | qmake <component>.pro
|
---|
| 162 | make</userinput></screen>
|
---|
| 163 |
|
---|
| 164 | <para>
|
---|
| 165 | As the &root; user:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 169 |
|
---|
| 170 | <!-- EDITORS NOTE: This package uses INSTALL_ROOT= instead of DESTDIR= for
|
---|
| 171 | installing in a temporary directory. -->
|
---|
| 172 |
|
---|
| 173 | <para>
|
---|
| 174 | Remove references to the build directory from installed library
|
---|
| 175 | dependency (prl) files by running the following
|
---|
| 176 | command as the &root; user:
|
---|
| 177 | </para>
|
---|
| 178 |
|
---|
| 179 | <screen role="root"><userinput>find $QT5DIR/ -name \*.prl \
|
---|
| 180 | -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
|
---|
| 181 |
|
---|
| 182 |
|
---|
| 183 | </sect2>
|
---|
| 184 |
|
---|
| 185 | <sect2 role="content">
|
---|
| 186 | <title>Contents</title>
|
---|
| 187 |
|
---|
| 188 | <segmentedlist>
|
---|
| 189 | <segtitle>Installed Programs</segtitle>
|
---|
| 190 | <segtitle>Installed Libraries</segtitle>
|
---|
| 191 | <segtitle>Installed Directories</segtitle>
|
---|
| 192 |
|
---|
| 193 | <seglistitem>
|
---|
| 194 | <seg>
|
---|
| 195 | None
|
---|
| 196 | </seg>
|
---|
| 197 | <seg>
|
---|
[38703f5d] | 198 | libQt5<component>.so
|
---|
[b3867c5] | 199 | </seg>
|
---|
| 200 | <seg>
|
---|
[38703f5d] | 201 | $QTDIR/qml/<component>,
|
---|
| 202 | $QTDIR/lib/<component>, and
|
---|
[b3867c5] | 203 | $QTDIR/include/<component>
|
---|
| 204 | </seg>
|
---|
| 205 | </seglistitem>
|
---|
| 206 | </segmentedlist>
|
---|
| 207 |
|
---|
| 208 | </sect2>
|
---|
| 209 |
|
---|
| 210 | </sect1>
|
---|