Changeset 74d76938


Ignore:
Timestamp:
08/11/2013 09:24:18 PM (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:
7d4a6df
Parents:
8e29d97
Message:

Add alternate Qt5 build instructions

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/qt5.xml

    r8e29d97 r74d76938  
    9797      <xref linkend="xcb-util-image"/>,
    9898      <xref linkend="xcb-util-keysyms"/>,
    99       <xref linkend="xcb-util-renderutil"/> and
     99      <xref linkend="xcb-util-renderutil"/>, and
    100100      <xref linkend="xcb-util-wm"/>
    101101    </para>
     
    113113      <xref linkend="libtiff"/>,
    114114      <xref linkend="openssl"/>,
    115       <xref linkend="pcre"/> and
     115      <xref linkend="pcre"/>, and
    116116      <xref linkend="sqlite"/>
    117117    </para>
     
    124124      <xref linkend="mysql"/>,
    125125      <xref linkend="postgresql"/>,
    126       <xref linkend="pulseaudio"/> and
     126      <xref linkend="pulseaudio"/>, and
    127127      <xref linkend="unixodbc"/>
    128128    </para>
     
    150150
    151151<screen><userinput>patch -Np1 -i ../qt-&qt5-version;-bison_fixes-1.patch &amp;&amp;
    152 ./configure -confirm-license \
    153             -opensource \
    154             -prefix /usr \
    155             -bindir /usr/lib/qt5/bin \
    156             -headerdir /usr/include/qt5 \
    157             -archdatadir /usr/lib/qt5 \
    158             -datadir /usr/share/qt5 \
     152
     153./configure -prefix         /usr                \
     154            -sysconfdir     /etc/xdg            \
     155            -bindir         /usr/lib/qt5/bin    \
     156            -headerdir      /usr/include/qt5    \
     157            -archdatadir    /usr/lib/qt5        \
     158            -datadir        /usr/share/qt5      \
     159            -docdir         /usr/share/doc/qt5  \
    159160            -translationdir /usr/share/qt5/translations \
    160             -sysconfdir /etc/xdg \
    161             -docdir /usr/share/doc/qt5 \
    162             -examplesdir /usr/share/doc/qt5/examples \
    163             -dbus-linked \
    164             -openssl-linked \
    165             -system-sqlite \
     161            -examplesdir    /usr/share/doc/qt5/examples \
     162            -confirm-license  \
     163            -opensource        \
     164            -dbus-linked       \
     165            -openssl-linked    \
     166            -system-sqlite     \
    166167            -plugin-sql-sqlite \
    167             -no-nis \
    168             -nomake examples \
    169             -opengl es2 \
    170             -optimized-qmake &amp;&amp;
     168            -no-nis            \
     169            -nomake examples   \
     170            -opengl es2        \
     171            -optimized-qmake   &amp;&amp;
    171172make</userinput></screen>
    172173
     
    218219  ln -sfv ../lib/qt5/bin/$(basename $file) /usr/bin/$(basename $file)-qt5
    219220done</userinput></screen>
     221
     222  </sect2>
     223
     224  <sect2 role="installation">
     225    <title>Alternate Qt Installation Instructions</title>
     226
     227    <para>This section provides an alternate way to install Qt by installing
     228    almost all of the files in the <filename class='directory'>/opt</filename>
     229    directory.  This allows management of all Qt related files in one unit.
     230    For instance, a new version of Qt5 can be installed without over-writing
     231    the existing installation and entire Qt5 instances can be easily removed.
     232    However, it has the disadvantage of needing some extra configuration.</para>
     233
     234<screen><userinput>patch -Np1 -i ../qt-&qt5-version;-bison_fixes-1.patch &amp;&amp;
     235
     236QT5DIR=/opt/qt-&qt5-version;
     237
     238./configure -prefix     $QT5DIR  \
     239            -sysconfdir /etc/xdg \
     240            -confirm-license     \
     241            -opensource          \
     242            -dbus-linked         \
     243            -openssl-linked      \
     244            -system-sqlite       \
     245            -plugin-sql-sqlite   \
     246            -no-nis              \
     247            -nomake examples     \
     248            -opengl es2          \
     249            -optimized-qmake     &amp;&amp;
     250make</userinput></screen>
     251
     252    <para>
     253      Now, as the <systemitem class="username">root</systemitem> user:
     254    </para>
     255
     256<screen role="root"><userinput>make install &amp;&amp;
     257
     258install -v -Dm644 qttools/src/assistant/assistant/images/assistant-128.png \
     259                  /usr/share/pixmaps/assistant-qt5.png &amp;&amp;
     260install -v -Dm644 qttools/src/designer/src/designer/images/designer.png \
     261                  /usr/share/pixmaps/designer-qt5.png &amp;&amp;
     262install -v -Dm644 qttools/src/linguist/linguist/images/icons/linguist-128-32.png \
     263                  /usr/share/pixmaps/linguist-qt5.png &amp;&amp;
     264install -v -Dm644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
     265                  /usr/share/pixmaps/qdbusviewer-qt5.png</userinput></screen>
     266
     267    <para>
     268      Remove references to the build directory from installed files by
     269      running the following commands as the
     270      <systemitem class="username">root</systemitem> user:
     271    </para>
     272
     273<screen role="root"><userinput>find $QT5DIR -name qt_lib_bootstrap.pri \
     274   -exec sed -i -e "s:$PWD/qtbase:/$QT5DIR/lib/:g" {} \; &amp;&amp;
     275
     276find $QT5DIR -name \*.prl \
     277   -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;</userinput></screen>
     278
     279    <para>
     280      Symlink the <application>Qt</application> executables into
     281      <filename class="directory">/usr/bin</filename> by running the
     282      following commands as the
     283      <systemitem class="username">root</systemitem> user:
     284    </para>
     285
     286<screen role="root"><userinput>ln -svf $QT5DIR /opt/qt5  &amp;&amp;
     287
     288for file in /opt/qt5/bin/*; do
     289  ln -sfv $file /usr/bin/$(basename $file)-qt5
     290done</userinput></screen>
     291
     292    <para>At this point is is useful to add some configuration items as
     293    the <systemitem class="username">root</systemitem> user:</para>
     294
     295<screen role="root"><userinput>echo /opt/qt5 &gt;&gt; /etc/ld.so.conf &amp;&amp;
     296ldconfig                         &amp;&amp;
     297
     298cat &gt;&gt; /etc/profile.d/qt5.sh &lt;&lt; "EOF"
     299pathappend /opt/qt5/lib/pkgconfig PKG_CONFIG_PATH
     300EOF</userinput></screen>
    220301
    221302  </sect2>
Note: See TracChangeset for help on using the changeset viewer.