Changeset 1d087b41 for x/lib/qt5.xml


Ignore:
Timestamp:
12/18/2020 01:47:30 PM (3 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
qt5new
Children:
96f41f4
Parents:
eb30b876 (diff), 42117d4e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge trunk up to r24000

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/qt5.xml

    reb30b876 r1d087b41  
    2222  </sect1info>
    2323
    24   <title>Qt-&qt5-version;</title>
     24  <title>Qt-&qt5-version; Modules</title>
    2525
    2626  <indexterm zone="qt5">
    27     <primary sortas="a-Qt">Qt</primary>
     27    <primary sortas="a-Qt">Qt Modules</primary>
    2828  </indexterm>
    2929
    30   <sect2 role="package">
    31     <title>Introduction to Qt5</title>
    32 
    33     <para>
    34       <application>Qt5</application> is a cross-platform application framework
    35       that is widely used for developing application software with a graphical
    36       user interface (GUI) (in which cases <application>Qt5</application> is
    37       classified as a widget toolkit), and also used for developing non-GUI
    38       programs such as command-line tools and consoles for servers. One of the
    39       major users of <application>Qt</application> is <application>KDE
    40       Frameworks 5 (KF5)</application>.
    41     </para>
    42 
    43     &lfs10_checked;
    44 
    45     <bridgehead renderas="sect3">Package Information</bridgehead>
    46     <itemizedlist spacing="compact">
    47       <listitem>
    48         <para>
    49           Download (HTTP): <ulink url="&qt5-download-http;"/>
    50         </para>
    51       </listitem>
    52       <listitem>
    53         <para>
    54           Download (FTP): <ulink url="&qt5-download-ftp;"/>
    55         </para>
    56       </listitem>
    57       <listitem>
    58         <para>
    59           Download MD5 sum: &qt5-md5sum;
    60         </para>
    61       </listitem>
    62       <listitem>
    63         <para>
    64           Download size: &qt5-size;
    65         </para>
    66       </listitem>
    67       <listitem>
    68         <para>
    69           Estimated disk space required: &qt5-buildsize;
    70         </para>
    71       </listitem>
    72       <listitem>
    73         <para>
    74           Estimated build time: &qt5-time;
    75         </para>
    76       </listitem>
    77     </itemizedlist>
    78 
    79     <bridgehead renderas="sect3">Qt5 Dependencies</bridgehead>
     30  <para>
     31    After the <xref linkend="qtbase"/> has been installed, various modules
     32    can be added to provide more functionalities. They are divided in several
     33    groups, each of which depend on the precedent:
     34  </para>
     35
     36  <itemizedlist spacing="compact">
     37    <listitem>
     38      <para>
     39        <xref linkend="qt-basic"/> are used in almost all
     40        <application>Qt5</application> based applications, and
     41        must be built first.
     42      </para>
     43    </listitem>
     44    <listitem>
     45      <para>
     46        The <xref linkend="qt-kde"/> are needed for
     47        <xref linkend="kf5-frameworks"/> and <xref linkend="plasma5-build"/>.
     48      </para>
     49    </listitem>
     50    <listitem>
     51      <para>
     52        The huge <xref linkend="stwebengine"/> integrates
     53        <application>chromium</application>'s web capabilities into
     54        <application>Qt5</application>
     55      </para>
     56    </listitem>
     57    <listitem>
     58      <para>
     59        <xref linkend="qt-miscellaneous"/> are not needed for building
     60        packages in the book, but can be built for a complete installation
     61        of <application>Qt5</application>
     62      </para>
     63    </listitem>
     64  </itemizedlist>
     65
     66  &lfs10_checked;
     67
     68  <bridgehead renderas="sect3">Package Information</bridgehead>
     69  <itemizedlist spacing="compact">
     70    <listitem>
     71      <para>
     72        Download (HTTP): <ulink url="&qt5-download-http;"/>
     73      </para>
     74    </listitem>
     75    <listitem>
     76      <para>
     77        Download (FTP): <ulink url="&qt5-download-ftp;"/>
     78      </para>
     79    </listitem>
     80    <listitem>
     81      <para>
     82        Download MD5 sum: &qt5-md5sum;
     83      </para>
     84    </listitem>
     85    <listitem>
     86      <para>
     87        Download size: &qt5-size;
     88      </para>
     89    </listitem>
     90    <listitem>
     91      <para>
     92        Estimated disk space required: &qt5-buildsize;
     93      </para>
     94    </listitem>
     95    <listitem>
     96      <para>
     97        Estimated build time: &qt5-time;
     98      </para>
     99    </listitem>
     100  </itemizedlist>
     101
     102  <bridgehead renderas="sect3">Qt5 Dependencies</bridgehead>
    80103
    81104    <bridgehead renderas="sect4">Required</bridgehead>
     
    147170  </sect2>
    148171
    149   <sect2 role="qt5-prefix">
    150     <title>Setting the installation prefix</title>
    151 
    152     <bridgehead renderas="sect3">Installing in /opt/qt5</bridgehead>
    153 
    154     <para>
    155       The BLFS editors recommend installing <application>Qt5</application> in a
    156       directory other than <filename class="directory">/usr</filename>, ie
    157       <filename class="directory">/opt/qt5</filename>.  To do this,  set the
    158       following environment variable:
    159     </para>
    160 
    161 <screen><userinput>export QT5PREFIX=/opt/qt5</userinput></screen>
    162 
    163     <tip>
    164       <para>
    165         Sometimes, the installation paths are hardcoded into installed files.
    166         This is the reason why <filename class="directory">/opt/qt5</filename>
    167         is used as installation prefix instead of <filename
    168         class="directory">/opt/qt-&qt5-version;</filename>. To create a
    169         versioned <application>Qt5</application> directory after the
    170         installation is complete, you may rename the directory and create a symlink:
    171       </para>
    172 
    173 <screen role="root"><userinput>mkdir /opt/qt-&qt5-version;
    174 ln -sfnv qt-&qt5-version; /opt/qt5</userinput></screen>
    175 
    176       <para>
    177         Later on, you may want to install other versions of
    178         <application>Qt5</application>. To do that, just remove the symlink
    179         and use <filename class="directory">/opt/qt5</filename> as the
    180         prefix again. Which version of <application>Qt5</application> you
    181         use depends only on where the symlink points.
    182       </para>
    183     </tip>
    184 
    185     <note>
    186       <para>
    187         If <xref linkend="qca"/> has been installed and you are
    188         reinstalling or updating this package, then 
    189         <application>qca</application> will need to be reinstalled.
    190       </para>
    191     </note>
     172  <sect2>
     173    <title>Creating the module list and utility functions</title>
     174
     175    <para>
     176      Create the list of modules in the proper order as follows:
     177    </para>
     178
     179<screen><userinput>cat &gt; qt5-submodules-&qt5-version;.md5 &lt;&lt; "EOF"
     180<literal># Begin basic group
     181739403634e1326a3d52902a835015a4b  qttools-everywhere-src-5.15.2.tar.xz
     182c0f5c1c2cc1b66e56ce4ef13a2b7093a  qtsvg-everywhere-src-5.15.2.tar.xz
     18392cf72015788bb4dcab14494f2835b32  qtx11extras-everywhere-src-5.15.2.tar.xz
     18426577fbbe0d011b7034bca3c64bc38ae  qtwayland-everywhere-src-5.15.2.tar.xz
     185# End basic group
     186# Begin KDE group
     187# TODO
     188# End KDE group
     189# Begin qtwebengine
     190c88cbe3158feb20c4feb3d54262feb23  qtwebengine-everywhere-src-5.15.2.tar.xz
     191# End qtwebengine
     192# Begin optional group
     193# TODO
     194# End optional group</literal>
     195EOF</userinput></screen>
     196
     197    <para>
     198      Next create two utility functions, one for module building, the other
     199      for switching to user <systemitem class="username">root</systemitem>:
     200    </para>
     201
     202<screen><userinput>module_build() {
     203# MD5_ENTRY contains the md5sum entry from the .md5 file for this module
     204md5sum -c - <<< $MD5_ENTRY
    192205
    193206  </sect2>
Note: See TracChangeset for help on using the changeset viewer.