Changeset 1b0d0188 for x/lib/qt5.xml


Ignore:
Timestamp:
06/24/2015 09:55:25 PM (9 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
8e6f4f8
Parents:
233a4949
Message:

Update qt4 and qt5 instructions
Prep for KF5
Temove some tab characters

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16163 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/qt5.xml

    r233a4949 r1b0d0188  
    44  <!ENTITY % general-entities SYSTEM "../../general.ent">
    55  %general-entities;
    6 
    7   <!-- Change for new minor releases !!! -->
    86
    97  <!ENTITY qt5-major "5.4">
     
    3634
    3735    <para>
    38       <application>Qt5</application> is a cross-platform application
    39       framework that is widely used for developing application software
    40       with a graphical user interface (GUI) (in which cases
    41       <application>Qt5</application> is classified as a widget toolkit), and
    42       also used for developing non-GUI programs such as command-line tools
    43       and consoles for servers.
     36      <application>Qt5</application> is a cross-platform application framework
     37      that is widely used for developing application software with a graphical
     38      user interface (GUI) (in which cases <application>Qt5</application> is
     39      classified as a widget toolkit), and also used for developing non-GUI
     40      programs such as command-line tools and consoles for servers. One of the
     41      major users of <application>Qt</application> is <application>KDE
     42      Frameworks 5 (KF5)</application>.
    4443    </para>
    4544
     
    139138    <title>Setting the installation prefix</title>
    140139
    141     <bridgehead renderas="sect3">Installing in /usr</bridgehead>
    142 
    143     <para>
    144       If you want to install <application>Qt5</application>
    145       in <filename class="directory">/usr</filename>, set the
     140    <bridgehead renderas="sect3">Installing in /opt/qt5</bridgehead>
     141
     142    <para>
     143      The BLFS editors recommend installing <application>Qt5</application> in a
     144      directory other than <filename class="directory">/usr</filename>, ie
     145      <filename class="directory">/opt/qt5</filename>.  To do this,  set the
    146146      following environment variable:
    147     </para>
    148 
    149 <screen><userinput>export QT5PREFIX=/usr</userinput></screen>
    150 
    151     <bridgehead renderas="sect3">Installing in /opt/qt5</bridgehead>
    152 
    153     <para>
    154       If you want to install <application>Qt5</application> in a directory
    155       other than <filename class="directory">/usr</filename>, ie <filename
    156       class="directory">/opt/qt4</filename>, set the following environment
    157       variable:
    158147    </para>
    159148
     
    175164      <para>
    176165        Later on, you may want to install other versions of
    177         <application>Qt4</application>. To do that, just remove the symlink
     166        <application>Qt5</application>. To do that, just remove the symlink
    178167        and use <filename class="directory">/opt/qt5</filename> as the
    179168        prefix again. Which version of <application>Qt5</application> you
     
    186175  <sect2 role="installation">
    187176    <title>Installation of Qt5</title>
    188 
    189     <caution>
    190       <para>
    191         If you did not install some of the recommended dependencies, examine
    192         <command>./configure --help</command> output to check how to disable
    193         them or use internal versions bundled in the source tarball.
    194       </para>
    195     </caution>
    196177
    197178    <warning>
     
    206187    </warning>
    207188
    208     <para>
    209       Install <application>Qt5</application> by running the
    210       following commands:
    211     </para>
    212 
    213 <screen><userinput>./configure -prefix         $QT5PREFIX                        \
    214             -sysconfdir     /etc/xdg                          \
    215             -bindir         $QT5BINDIR                        \
    216             -headerdir      $QT5PREFIX/include/qt5            \
    217             -archdatadir    $QT5PREFIX/lib/qt5                \
    218             -datadir        $QT5PREFIX/share/qt5              \
    219             -docdir         $QT5PREFIX/share/doc/qt5          \
    220             -translationdir $QT5PREFIX/share/qt5/translations \
    221             -examplesdir    $QT5PREFIX/share/doc/qt5/examples \
    222             -confirm-license  \
    223             -opensource       \
    224             -dbus-linked      \
    225             -openssl-linked   \
    226             -journald         \
    227             -system-harfbuzz  \
    228             -system-sqlite    \
    229             -nomake examples  \
    230             -no-rpath         \
    231             -optimized-qmake  \
    232             -skip qtwebengine &amp;&amp;
     189    <caution>
     190      <para>
     191        If you did not install some of the recommended dependencies, examine
     192        <command>./configure --help</command> output to check how to disable
     193        them or use internal versions bundled in the source tarball.
     194      </para>
     195    </caution>
     196
     197    <note>
     198      <para>
     199        The build time and space required for the full
     200        <application>Qt5</application> is quite long. The instructions below
     201        do not build the tutorials and examples. Removing the
     202        <parameter>-nomake</parameter> line will create a complete build.
     203      </para>
     204    </note>
     205
     206    <note>
     207      <para>
     208        The BLFS editors do not recommend installing <application>Qt5</application>
     209        into the /usr hierarchy because it becomes difficult to find
     210        components and to update to a new version.  If you do want to install
     211        <application>Qt5</application> in /usr, the directories need to
     212        be specified explicitly.  In this case, set QT5PREFIX=/usr and add
     213        the following to the configure arguments below:</para>
     214
     215        <screen><userinput>-bindir         /usr/bin/qt4                \
     216-plugindir      /usr/lib/qt5/plugins        \
     217-importdir      /usr/lib/qt5/imports        \
     218-headerdir      /usr/include/qt5            \
     219-datadir        /usr/share/qt5              \
     220-docdir         /usr/share/doc/qt5          \
     221-translationdir /usr/share/qt5/translations \
     222-demosdir       /usr/share/doc/qt5/demos    \
     223-examplesdir    /usr/share/doc/qt5/examples </userinput></screen>
     224    </note>
     225
     226    <para>
     227      Install <application>Qt5</application> by running the following commands:
     228    </para>
     229
     230<screen><userinput>./configure -prefix         $QT5PREFIX \
     231            -sysconfdir     /etc/xdg   \
     232            -confirm-license           \
     233            -opensource                \
     234            -dbus-linked               \
     235            -openssl-linked            \
     236            -journald                  \
     237            -system-harfbuzz           \
     238            -system-sqlite             \
     239            -nomake examples           \
     240            -no-rpath                  \
     241            -optimized-qmake           \
     242            -skip qtwebengine          &amp;&amp;
    233243
    234244make</userinput></screen>
     
    239249
    240250    <para>
    241       Remove references to the build directory from the
     251      Now, as the <systemitem class="username">root</systemitem> user:
     252    </para>
     253
     254<screen role="root"><userinput>make install</userinput></screen>
     255
     256    <para>
     257      Remove references to the build directory from the installed
    242258      <filename class="extension">.pc</filename> files by running
    243259      the following command:
    244260    </para>
    245261
    246 <screen><userinput>find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
    247 
    248     <para>
    249       Now, as the <systemitem class="username">root</systemitem> user:
    250     </para>
    251 
    252 <screen role="root"><userinput>make install</userinput></screen>
    253 
    254     <para>
    255       Remove references to the build directory from installed files by
    256       running the following commands as the
    257       <systemitem class="username">root</systemitem> user:
     262<screen><userinput>find $QT5PREFIX/lib/pkgconfig -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \;</userinput></screen>
     263
     264    <para>
     265      Remove references to the build directory from installed library dependency
     266      (prl) and profile include (pri) files by running the following commands as
     267      the <systemitem class="username">root</systemitem> user:
    258268    </para>
    259269
    260270<screen role="root"><userinput>sed -e "s:$PWD/qtbase:/usr/lib/qt5:g" \
    261     -i /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &amp;&amp;
    262 
    263 find /usr/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \
     271    -i $QT5PREFIX/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri &amp;&amp;
     272
     273find $QT5PREFIX/lib/lib{qgsttools_p,Qt5*}.prl -exec sed -i -r \
    264274     '/^QMAKE_PRL_BUILD_DIR/d;s/(QMAKE_PRL_LIBS =).*/\1/' {} \;</userinput></screen>
    265275
    266276    <para>
    267       Install images and create the menu entries
    268       for installed applications.  Be sure that the <envar>QT5PREFIX</envar>
    269       variable is defined in root's environment and
    270       as the <systemitem class="username">root</systemitem> user:
    271     </para>
    272 
    273 <screen role="root"><userinput>install -v -dm755 /usr/share/pixmaps/                  &amp;&amp;
     277      Install images and create the menu entries for installed applications.
     278      The <envar>QT4BINDIR</envar> variable is used here to point to the
     279      directory for the executable programs.  If you have changed the bindir
     280      above, <envar>QT4BINDIR</envar> will need to be adjusted below.  Be sure
     281      that the <envar>QT5BINDIR</envar> variable is defined in root's
     282      environment and as the <systemitem class="username">root</systemitem>
     283      user:
     284    </para>
     285
     286<screen role="root"><userinput>QT5BINDIR=$QT5PREFIX/bin
     287
     288install -v -dm755 /usr/share/pixmaps/                  &amp;&amp;
    274289
    275290install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
     
    291306Name=Qt5 Assistant
    292307Comment=Shows Qt5 documentation and examples
    293 Exec=$QT5PREFIX/bin/assistant
     308Exec=$QT5BINDIR/assistant
    294309Icon=assistant-qt5.png
    295310Terminal=false
     
    304319GenericName=Interface Designer
    305320Comment=Design GUIs for Qt5 applications
    306 Exec=$QT5PREFIX/bin/designer
     321Exec=$QT5BINDIR/designer
    307322Icon=designer-qt5.png
    308323MimeType=application/x-designer;
     
    317332Name=Qt5 Linguist
    318333Comment=Add translations to Qt5 applications
    319 Exec=$QT5PREFIX/bin/linguist
     334Exec=$QT5BINDOR/linguist
    320335Icon=linguist-qt5.png
    321336MimeType=text/vnd.trolltech.linguist;application/x-linguist;
     
    331346GenericName=D-Bus Debugger
    332347Comment=Debug D-Bus applications
    333 Exec=$QT5PREFIX/bin/qdbusviewer
     348Exec=$QT5BINDIR/qdbusviewer
    334349Icon=qdbusviewer-qt5.png
    335350Terminal=false
     
    339354EOF</userinput></screen>
    340355
     356    <para>Some packages such as <xref linkend='vlc'/> look for certain
     357    executables with a -qt5 suffix.  Run the following command as the root user
     358    to create the necessary symlinks:</para>
     359
     360<screen role="root"><userinput>for file in moc uic rcc qmake lconvert lrelease lupdate; do
     361  ln -sfrvn $QT5BINDIR/$file /usr/bin/$file-qt5
     362done</userinput></screen>
     363
    341364  </sect2>
    342365
     
    362385      <parameter>-nomake examples</parameter>: This switch
    363386      disables building of the example programs included
    364       in the source tarball. Remove it if you want to build
    365       them.
    366     </para>
    367 
    368     <para>
    369       <parameter>-nomake tests</parameter>: This switch
    370       disables building of the test programs included
    371387      in the source tarball. Remove it if you want to build
    372388      them.
     
    474490QT5DIR=/opt/qt5
    475491
    476 pathappend /opt/qt5/bin           PATH
    477 pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
     492pathappend $QT5DIR/bin           PATH
     493pathappend $QT5DIR/lib/pkgconfig PKG_CONFIG_PATH
    478494
    479495export QT5DIR
Note: See TracChangeset for help on using the changeset viewer.