Changeset fb28b3b for x


Ignore:
Timestamp:
09/08/2013 04:56:57 AM (11 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.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
7a792a0a
Parents:
402f23d3
Message:

Tag Qt4, Qt5, and qtchooser and add additional explanations.
Tag autofs and update it's boot script.

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

Location:
x/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • x/lib/qt4.xml

    r402f23d3 rfb28b3b  
    106106      <xref linkend="postgresql"/>,
    107107      <xref linkend="pulseaudio"/>,
    108       <xref linkend="qtchooser"/> (if also installing Qt5), and
    109       <xref linkend="unixodbc"/>
     108      <xref linkend="unixodbc"/>, and
     109      <xref linkend="qtchooser"/> (runtime, if also installing Qt5 and
     110      installing in /usr)
    110111    </para>
    111112
     
    119120
    120121    <para>
    121 
    122122       There are several ways to install a complicated package such as
    123123       <application>Qt</application>. The files are not completely position
     
    150150    </para>
    151151
     152       <para>
     153       The disadvantage of installing in <filename
     154       class='directory'>/usr</filename> is that the executable filenames
     155       for  <application>Qt4</application> and <application>Qt5</application>
     156       conflict if both packages are installed in the
     157       same directory.  The instructions below give a workaround for
     158       this problem using the helper program <xref linkend='qtchooser'/>.
     159       This requires renaming the Qt executables with a version suffix.
     160    </para>
     161
    152162    <para>
    153163       The advantage of installing <application>Qt4</application> in a custom
     
    159169       changing one symbolic link or merely changing the PATH variable.  It
    160170       also allows a developer to maintain multiple versions of
    161        <application>Qt4</application> for testing.
    162     </para>
    163 
    164     <warning>
     171       <application>Qt4</application> or <application>Qt5</application>
     172       for testing.
     173    </para>
     174
     175    <caution>
    165176      <para>
    166177        If you did not install some of the recommended dependencies, examine
     
    168179        them or use internal versions bundled in the source tarball.
    169180      </para>
    170     </warning>
    171 
    172     <caution>
     181    </caution>
     182
     183    <warning>
    173184      <para>
    174         If <application>Qt</application> is being reinstalled into the
     185        If <application>Qt4</application> is being reinstalled into the
    175186        same directory as an existing instance, run the
    176         following commands from a console or non-Qt based window manager.
    177         It overwrites <application>Qt</application> libraries that should
     187        following commands from a console or non-Qt4 based window manager.
     188        It overwrites <application>Qt4</application> libraries that should
    178189        not be in use during the install process.
    179190      </para>
    180     </caution>
     191    </warning>
    181192
    182193    <note>
     
    192203
    193204    <para>
    194       Install <application>Qt</application> by running the
     205      Install <application>Qt4</application> by running the
    195206      following commands:
    196207    </para>
     208
     209    <note><para>
     210      If <emphasis>not</emphasis> also installing <application>Qt5</application>
     211      into the /usr directory, change the entry for -bindir below to /usr/bin.
     212    </para></note>
     213
    197214
    198215<screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
     
    264281
    265282    <para>
    266       Symlink the <application>Qt</application> executables into
     283      If also installing Qt5 into /usr,
     284      symlink the <application>Qt4</application> executables into
    267285      <filename class="directory">/usr/bin</filename> by running the
    268286      following commands as the
     
    276294
    277295    <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt4-version;</bridgehead>
     296
     297    <para>
     298      This section provides an alternate way to install Qt4 by installing
     299      almost all of the files in the <filename class="directory">/opt</filename>
     300      directory. This allows management of all Qt4 related files in one unit.
     301      For instance, a new version of Qt4 can be installed without over-writing
     302      the existing installation and entire Qt4 instances can be easily removed.
     303      However, it has the disadvantage of needing some extra configuration.
     304    </para>
     305 
    278306
    279307    <para>
     
    445473   
    446474<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
    447    <literal># Begin Qt addition
     475<literal># Begin Qt addition
    448476   
    449477/opt/qt/lib
     
    454482ldconfig</userinput></screen>
    455483   
    456    <indexterm zone="qt4 qtconfig-qt4">
     484   <indexterm zone="qt4 qt4-config">
    457485      <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
    458486   </indexterm>
     
    464492   
    465493<screen role="root"><userinput>cat &gt; /etc/profile.d/qt.sh &lt;&lt; EOF
    466    <literal># Begin /etc/profile.d/qt.sh
     494<literal># Begin /etc/profile.d/qt.sh
    467495   
    468496QTDIR=/opt/qt
     
    477505
    478506      <para>
    479         For all methods, Create the menu entries for installed applications.
     507        For all methods, create the menu entries for installed applications.
    480508        As the <systemitem class="username">root</systemitem> user:
    481509      </para>
  • x/lib/qt5.xml

    r402f23d3 rfb28b3b  
    4242    </para>
    4343
    44     &lfs73_checked;
     44    &lfs74_checked;
    4545
    4646    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    8484      <xref linkend="alsa-lib"/>,
    8585      <xref linkend="mesalib"/>,
    86       <xref linkend="qtchooser"/>,
    8786      <xref linkend="xcb-util-image"/>,
    8887      <xref linkend="xcb-util-keysyms"/>,
     
    115114      <xref linkend="mysql"/>,
    116115      <xref linkend="postgresql"/>,
    117       <xref linkend="pulseaudio"/>, and
    118       <xref linkend="unixodbc"/>
     116      <xref linkend="pulseaudio"/>,
     117      <xref linkend="unixodbc"/>, and
     118      <xref linkend="qtchooser"/> (runtime, if also installing Qt4 and
     119      installing in /usr)
    119120    </para>
    120121
     
    127128    <title>Installation of Qt</title>
    128129
    129    <warning>
     130    <para>
     131       There are several ways to install a complicated package such as
     132       <application>Qt</application>. The files are not completely position
     133       independent. Installation procedures execute the program
     134       <command>pkg-config</command> to determine the location of package
     135       executables, libraries, headers, and other files. For
     136       <application>Qt</application>, <command>pkg-config</command> will look
     137       for the appropriate <filename>lib/pkgconfig/Qt*.pc</filename> files
     138       which must be modified if relocating the package. These files are set up
     139       correctly by the build process.
     140    </para>
     141
     142    <para>
     143       The default installation places the files in <filename
     144       class='directory'>/usr/local/qt/</filename>. Many commercial
     145       distributions place the files in the system's <filename
     146       class='directory'>/usr</filename> hierarchy. The package can also be
     147       installed in an arbitrary directory.
     148    </para>
     149
     150    <para>
     151       The advantage of installing in <filename
     152       class='directory'>/usr</filename> is that no updates to the
     153       <filename>/etc/ld.so.conf</filename> or
     154       <filename>/etc/man_db.conf</filename> files are required. The package
     155       files are distributed within several subdirectories of the <filename
     156       class='directory'>/usr</filename> hierarchy.  This is the method that
     157       most commercial distributions use.
     158    </para>
     159
     160    <para>
     161       The disadvantage of installing in <filename
     162       class='directory'>/usr</filename> is that the executable filenames
     163       for  <application>Qt4</application> and <application>Qt5</application>
     164       conflict if both packages are installed in the
     165       same directory.  The instructions below give a workaround for
     166       this problem using the helper program <xref linkend='qtchooser'/>.
     167       This requires renaming the Qt executables with a version suffix.
     168    </para>
     169
     170    <para>
     171       The advantage of installing <application>Qt4</application> in a custom
     172       directory such as <filename
     173       class='directory'>/opt/qt-&qt4-version;</filename> is that it keeps all
     174       the package files consolidated in a dedicated directory hierarchy. By
     175       using this method, an update can be made without overwriting a previous
     176       installation and users can easily revert to a previous version by
     177       changing one symbolic link or merely changing the PATH variable.  It
     178       also allows a developer to maintain multiple versions of
     179       <application>Qt4</application> or <application>Qt5</application>
     180       for testing.
     181    </para>
     182 
     183    <caution>
    130184      <para>
    131185        If you did not install some of the recommended dependencies, examine
     
    133187        them or use internal versions bundled in the source tarball.
    134188      </para>
     189    </caution>
     190
     191    <warning>
     192      <para>
     193        If <application>Qt5</application> is being reinstalled into the
     194        same directory as an existing instance, run the
     195        following commands from a console or non-Qt5 based window manager.
     196        It overwrites <application>Qt5</application> libraries that should
     197        not be in use during the install process.
     198      </para>
    135199    </warning>
    136 
    137     <para>
    138       Install <application>Qt</application> by running the
     200 
     201    <bridgehead renderas="sect3">Method 1: Installing in /usr</bridgehead>
     202
     203    <para>
     204      Install <application>Qt5</application> by running the
    139205      following commands:
    140206    </para>
     207
     208    <note><para>
     209      If <emphasis>not</emphasis> also installing <application>Qt4</application>
     210      into the /usr directory, change the entry for -bindir below to /usr/bin.
     211    </para></note>
    141212
    142213<screen><userinput>sed -i "s:Context\* context}:&amp;\n%lex-param {YYLEX_PARAM}:" \
     
    146217     qtimageformats/config.tests/libmng/libmng.cpp &amp;&amp;
    147218
    148 ./configure -prefix /usr                \
    149             -sysconfdir /etc/xdg        \
    150             -bindir /usr/lib/qt5/bin    \
    151             -headerdir /usr/include/qt5 \
    152             -archdatadir /usr/lib/qt5   \
    153             -datadir /usr/share/qt5     \
    154             -docdir /usr/share/doc/qt5 \
     219./configure -prefix         /usr               \
     220            -sysconfdir     /etc/xdg           \
     221            -bindir         /usr/lib/qt5/bin   \
     222            -headerdir      /usr/include/qt5  \
     223            -archdatadir    /usr/lib/qt5       \
     224            -datadir        /usr/share/qt5     \
     225            -docdir         /usr/share/doc/qt5 \
    155226            -translationdir /usr/share/qt5/translations \
    156             -examplesdir /usr/share/doc/qt5/examples    \
     227            -examplesdir    /usr/share/doc/qt5/examples \
    157228            -confirm-license   \
    158229            -opensource        \
     
    204275
    205276    <para>
    206       Symlink the <application>Qt</application> executables into
     277      If also installing Qt4 into /usr,
     278      Symlink the <application>Qt5</application> executables into
    207279      <filename class="directory">/usr/bin</filename> by running the
    208280      following commands as the
     
    215287done</userinput></screen>
    216288
    217   </sect2>
    218 
    219   <sect2 role="installation">
    220     <title>Alternate Qt Installation Instructions</title>
    221 
    222     <para>
    223       This section provides an alternate way to install Qt by installing
     289  <bridgehead renderas="sect3">Method 2: Installing in /opt/qt-&qt5-version;</bridgehead>
     290
     291    <para>
     292      This section provides an alternate way to install Qt4 by installing
    224293      almost all of the files in the <filename class="directory">/opt</filename>
    225294      directory. This allows management of all Qt related files in one unit.
     
    372441
    373442      <para>
    374         Create the menu entries for installed applications.
     443        If you installed <application>Qt</application> in /usr,
     444        create an environment variable needed by certain packages.
    375445        As the <systemitem class="username">root</systemitem> user:
    376446      </para>
     447
     448<screen role="root"><userinput>cat &gt; /etc/profile.d/qt.sh &lt;&lt; EOF
     449<literal># Begin /etc/profile.d/qt.sh
     450
     451QTDIR=/usr
     452
     453export QT5DIR
     454
     455# End /etc/profile.d/qt.sh</literal>
     456EOF</userinput></screen>
     457
     458   <para>
     459      If you installed <application>Qt5</application> in a location other
     460      than /usr, you need to update the following configuration files so
     461      that <application>Qt5</application> is correctly found by other packages
     462      and system processes.</para>
     463
     464      <para>As the <systemitem class="username">root</systemitem> user, update
     465      the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
     466      run-time cache file:
     467   </para>
     468
     469<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
     470<literal># Begin Qt addition
     471
     472/opt/qt5/lib
     473
     474# End Qt addition</literal>
     475EOF
     476
     477ldconfig</userinput></screen>
     478
     479   <indexterm zone="qt5 qt5-config">
     480      <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
     481   </indexterm>
     482
     483   <para>
     484      As the <systemitem class="username">root</systemitem> user, create
     485      the <filename>/etc/profile.d/qt.sh</filename> file:
     486   </para>
     487
     488<screen role="root"><userinput>cat &gt; /etc/profile.d/qt.sh &lt;&lt; EOF
     489<literal># Begin /etc/profile.d/qt.sh
     490
     491QT5DIR=/opt/qt5
     492
     493pathappend /opt/qt5/bin           PATH
     494pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
     495
     496export QT5DIR
     497
     498# End /etc/profile.d/qt.sh</literal>
     499EOF</userinput></screen>
     500
     501   <para>
     502     For all methods, create the menu entries for installed applications.
     503     As the <systemitem class="username">root</systemitem> user:
     504   </para>
    377505
    378506<screen role="root"><userinput>install -dm755 /usr/share/applications
     
    446574          qmlbundle-qt5, qmlmin-qt5, qmlplugindump-qt5, qmlprofiler-qt5, qmlscene-qt5,
    447575          qmltestrunner-qt5, qmlviewer-qt5, rcc-qt5, syncqt.pl-qt5, uic-qt5,
    448           xmlpatterns-qt5 and xmlpatternsvalidator-qt5
     576          xmlpatterns-qt5, and xmlpatternsvalidator-qt5
    449577        </seg>
    450578        <seg>
     
    458586          libQt5Sensors.so, libQt5SerialPort.so, libQt5Sql.so, libQt5Svg.so, libQt5Test.so,
    459587          libQt5UiTools.a, libQt5V8.so, libQt5WebKit.so, libQt5WebKitWidgets.so,
    460           libQt5Widgets.so, libQt5X11Extras.so, libQt5XmlPatterns.so and libQt5Xml.so
     588          libQt5Widgets.so, libQt5X11Extras.so, libQt5XmlPatterns.so, and libQt5Xml.so
    461589        </seg>
    462590        <seg>
    463591          /usr/include/qt5,
    464592          /usr/lib/qt5,
    465           /usr/share/doc/qt5 and
     593          /usr/share/doc/qt5, and
    466594          /usr/share/qt5
    467595        </seg>
Note: See TracChangeset for help on using the changeset viewer.