Changeset 14db7cc for x/lib


Ignore:
Timestamp:
04/19/2005 06:43:04 AM (19 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 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:
e8a29f69
Parents:
962d208
Message:

Update to qt and other minor changes.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/qt.xml

    r962d208 r14db7cc  
    77  <!ENTITY qt-download-http "http://sunsite.rediris.es/mirror/Qt/source/qt-x11-free-&qt-version;.tar.bz2">
    88  <!ENTITY qt-download-ftp  "ftp://ftp.trolltech.com/qt/source/qt-x11-free-&qt-version;.tar.bz2">
    9   <!ENTITY qt-md5sum        "3e0a0c8429b0a974b39b5f535ddff01c">
    10   <!ENTITY qt-size          "14.4 MB">
     9  <!ENTITY qt-md5sum        "027f4e82fbe592b39d2f160bfb3a73af">
     10  <!ENTITY qt-size          "13.8 MB">
    1111  <!ENTITY qt-buildsize     "250 MB">
    12   <!ENTITY qt-time          "19.3 SBU (full), 13.4 SBU (sub-tools)">
     12  <!ENTITY qt-time          "15.5 SBU (full), 10.9 SBU (sub-tools)">
    1313]>
    1414
    1515<sect1 id="qt" xreflabel="Qt-&qt-version;">
    1616<sect1info>
    17 <othername>$LastChangedBy$</othername>
    18 <date>$Date$</date>
     17  <othername>$LastChangedBy$</othername>
     18  <date>$Date$</date>
    1919</sect1info>
     20
    2021<?dbhtml filename="qt.html" ?>
    2122<title>Qt-&qt-version;</title>
     23
     24<indexterm zone="qt">
     25  <primary sortas="a-qt">Qt</primary>
     26</indexterm>
    2227
    2328<sect2>
     
    3338<sect3><title>Package information</title>
    3439<itemizedlist spacing='compact'>
    35 <listitem><para>Download (HTTP): <ulink url="&qt-download-http;"/></para></listitem>
    36 <listitem><para>Download (FTP): <ulink url="&qt-download-ftp;"/></para></listitem>
    37 <listitem><para>Download MD5 Sum: &qt-md5sum;</para></listitem>
    38 <listitem><para>Download size: &qt-size;</para></listitem>
    39 <listitem><para>Estimated disk space required: &qt-buildsize;</para></listitem>
    40 <listitem><para>Estimated build time: &qt-time;</para></listitem></itemizedlist>
     40  <listitem><para>Download (HTTP): <ulink url="&qt-download-http;"/></para></listitem>
     41  <listitem><para>Download (FTP): <ulink url="&qt-download-ftp;"/></para></listitem>
     42  <listitem><para>Download MD5 Sum: &qt-md5sum;</para></listitem>
     43  <listitem><para>Download size: &qt-size;</para></listitem>
     44  <listitem><para>Estimated disk space required: &qt-buildsize;</para></listitem>
     45  <listitem><para>Estimated build time: &qt-time;</para></listitem></itemizedlist>
    4146</sect3>
    4247
    43 <sect3><title><application>Qt</application> dependencies</title>
    44 <sect4><title>Required</title>
     48<sect3>
     49<title><application>Qt</application> dependencies</title>
     50
     51<sect4>
     52<title>Required</title>
    4553<para><xref linkend="x-installing"/></para>
    4654</sect4>
    4755
    48 <sect4><title>Recommended</title>
     56<sect4>
     57<title>Recommended</title>
    4958<para><xref linkend="libjpeg"/> and <xref linkend="libmng"/></para>
    5059</sect4>
    5160
    52 <sect4><title>Optional</title>
     61<sect4>
     62<title>Optional</title>
    5363<para><xref linkend="nas"/>, <xref linkend="cups"/>, <xref linkend="mysql"/>,
    5464<xref linkend="postgresql"/>, <ulink url="http://sqlite.org/">SQLite</ulink>,
     
    97107This is the method that most commercial distributions use.</para>
    98108
    99 <screen><userinput><command>sed -i "s:cp -f:install:" mkspecs/linux-g++/qmake.conf &amp;&amp;
     109<screen><userinput><command>sed -i -e 's:cp -f:install:
     110       -e 's:$(QTDIR)/include:&amp;/qt:' \
     111       -e 's:$(QTDIR)/lib:&amp;/qt:' \
     112       mkspecs/linux*/qmake.conf   &amp;&amp;   
    100113bash
    101114export PATH=$PWD/bin:$PATH &amp;&amp;
     
    108121    -system-libjpeg -system-libpng &amp;&amp;
    109122find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib@@g" &amp;&amp;
    110 make &amp;&amp;
    111 make install &amp;&amp;
     123make &amp;&amp;</command></userinput></screen>
     124
     125<para>Now, as the root user:</para>
     126
     127<screen><userinput role='root'><command>make install &amp;&amp;
    112128ln -sf libqt-mt.so /usr/lib/libqt.so &amp;&amp;
    113129rm /usr/bin/qmake &amp;&amp;
    114130install -m755 -oroot -groot qmake/qmake /usr/bin &amp;&amp;
    115131cp -r doc/man /usr/share &amp;&amp;
    116 cp -r examples /usr/share/doc/qt &amp;&amp;
    117 exit</command></userinput></screen>
     132cp -r examples /usr/share/doc/qt &amp;&amp;</command></userinput></screen>
     133
     134<para>And finally back as regular user:</para>
     135<screen><userinput><command>exit</command></userinput></screen>
    118136
    119137</sect3>
     
    140158    -system-libmng -system-zlib -system-libjpeg -no-exceptions \
    141159    -thread -plugin-imgfmt-png &amp;&amp;
    142 make &amp;&amp;
    143 make install &amp;&amp;
     160make</command></userinput></screen>
     161
     162<para>Now, as the root user:</para>
     163
     164<screen><userinput role='root'><command>make install &amp;&amp;
    144165ln -sfn qt-&qt-version; /opt/qt &amp;&amp;
    145166ln -s libqt-mt.so /opt/qt/lib/libqt.so &amp;&amp;
     
    147168install -m755 -oroot -groot qmake/qmake /opt/qt-&qt-version;/bin &amp;&amp;
    148169cp -r doc/man /opt/qt/doc &amp;&amp;
    149 cp -r examples /opt/qt/doc
    150 exit</command></userinput></screen>
     170cp -r examples /opt/qt/doc</command></userinput></screen>
     171
     172<para>And finally back as regular user:</para>
     173<screen><userinput><command>exit</command></userinput></screen>
    151174
    152175<note><para>If you pass the
     
    162185<title>Command explanations</title>
    163186
    164 <para><command>sed -i "s:cp -f:install:" mkspecs/linux-g++/qmake.conf</command>:
     187<para><command>sed -i -e 's:cp -f:install:
     188       -e 's:$(QTDIR)/include:&amp;/qt:'
     189       -e 's:$(QTDIR)/lib:&amp;/qt:'
     190       mkspecs/linux*/qmake.conf</command>:
    165191<command>install</command> is safer than <command>cp</command> when
    166 libraries are in use.</para>
     192libraries are in use.  Also, directories need to be adjusted to match
     193the BLFS Method 1 installation directories.</para>
    167194
    168195<para><command>bash</command>: This command enters a sub-shell to isolate
     
    227254<title>Configuring <application>Qt</application></title>
    228255
    229 <sect3><title>Configuration Information</title>
    230 <para>If you installed <application>Qt</application> using Method 2, you need
    231 to update some configuration files so that <application>Qt</application> is
    232 correctly found by other packages and system processes.</para>
    233 
    234 <para>Update the <filename>/etc/ld.so.conf</filename> and
    235 <filename>/etc/man.conf</filename> files:</para>
    236 
    237 <screen><userinput><command>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
    238 # Begin qt addition to /etc/ld.so.conf
    239 
    240 /opt/qt/lib
    241 
    242 # End qt addition
    243 EOF
    244 ldconfig
    245 
    246 cat &gt;&gt; /etc/man.conf &lt;&lt; "EOF"
    247 # Begin qt addition to man.conf
    248 
    249 MANPATH /opt/qt/doc/man
    250 
    251 # End qt addition to man.conf
    252 EOF</command></userinput></screen>
    253 
    254 <para>Update the <envar>PKG_CONFIG_PATH</envar> environment variable in your
    255 <filename>~/.bash_profile</filename> or <filename>/etc/profile</filename> with
    256 the following:</para>
    257 
    258 <screen><userinput>PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/qt/lib/pkgconfig</userinput></screen>
     256<sect3 id='qt-config'>
     257<title>Configuration Information</title>
    259258
    260259<para>The <envar>QTDIR</envar> environment variable needs to be set when
     
    265264<filename>/etc/profile</filename> file.</para>
    266265
     266<para>For Method 1:</para>
     267<screen><userinput>export QTDIR=/usr</userinput></screen>
     268
     269<para>or for Method 2:</para>
    267270<screen><userinput>export QTDIR=/opt/qt</userinput></screen>
     271
     272<para>If you installed <application>Qt</application> using Method 2, you also
     273need to update the following configuration files so that
     274<application>Qt</application> is correctly found by other packages and system
     275processes.</para>
     276
     277<para>Update the <filename>/etc/ld.so.conf</filename> and
     278<filename>/etc/man.conf</filename> files:</para>
     279
     280<screen><userinput><command>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
     281# Begin qt addition to /etc/ld.so.conf
     282
     283/opt/qt/lib
     284
     285# End qt addition
     286EOF
     287ldconfig
     288
     289cat &gt;&gt; /etc/man.conf &lt;&lt; "EOF"
     290# Begin qt addition to man.conf
     291
     292MANPATH /opt/qt/doc/man
     293
     294# End qt addition to man.conf
     295EOF</command></userinput></screen>
     296
     297<indexterm zone="qt qt-config">
     298  <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
     299</indexterm>
     300
     301<indexterm zone="qt qt-config">
     302  <primary sortas="e-etc-man.conf">/etc/man.conf</primary>
     303</indexterm>
     304
     305<indexterm zone="qt qt-config">
     306  <primary sortas="e-etc-profile">/etc/profile</primary>
     307</indexterm>
     308
     309<indexterm zone="qt qt-config">
     310  <primary sortas="e-AA.bash_profile">~/.bash_profile</primary>
     311</indexterm>
     312       
     313
     314<para>Update the <envar>PKG_CONFIG_PATH</envar> environment variable in your
     315<filename>~/.bash_profile</filename> or <filename>/etc/profile</filename> with
     316the following:</para>
     317
     318<screen><userinput>PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/qt/lib/pkgconfig</userinput></screen>
    268319
    269320<para>If you want the <application>Qt</application> executables in your shell
     
    285336
    286337<para>The <application>Qt</application>/<application>X11</application>
    287 library contains <acronym>API</acronym>s necessary to use
     338library contains <acronym>API</acronym>s necessary to build and use
    288339programs based on the <application>Qt</application> <acronym>GUI</acronym>
    289340toolkit.</para>
    290341
    291 <para>The <application>Qt</application> package contains
    292 <command>assistant</command>,
    293 <command>designer</command>,
    294 <command>linguist</command>,
    295 <command>lrelease</command>,
    296 <command>lupdate</command>,
    297 <command>moc</command>,
    298 <command>qm2ts</command>,
    299 <command>qmake</command>,
    300 <command>qtconfig</command>,
    301 <command>uic</command>, and the
    302 <filename class="libraryfile">libqt-mt</filename> and
    303 <filename class="libraryfile">libqui</filename> libraries.</para>
     342<segmentedlist>
     343  <segtitle>Installed Programs</segtitle>
     344  <segtitle>Installed Libraries</segtitle>
     345  <segtitle>Installed Directories</segtitle>
     346
     347  <seglistitem>
     348    <seg>assistant, designer, linguist, lrelease, lupdate, moc,
     349         qm2ts, qmake, qtconfig, and uic</seg>
     350    <seg>libqt-mt.so, libqt.so libqui.so, libdesignercore.a,
     351         libeditor.a, and libqassistantclient.a</seg>
     352    <seg>/opt/qt-&qt-version; or /usr/lib/qt, /usr/share/qt,
     353         /usr/share/doc/qt, /usr/include/qt, and /etc/qt</seg>
     354  </seglistitem>
     355</segmentedlist>
     356
     357<variablelist>
     358  <bridgehead renderas="sect3">Short Descriptions</bridgehead>
     359  <?dbfo list-presentation="list"?>
     360
     361<varlistentry id="assistant">
     362  <term><command>assistant</command></term>
     363  <listitem>
     364    <para>is a tool for presenting on-line documentation.</para>
     365    <indexterm zone="qt assistant">
     366      <primary sortas="b-assistant">assistant</primary>
     367    </indexterm>
     368  </listitem>
     369</varlistentry>
     370
     371<varlistentry id="designer">
     372  <term><command>designer</command></term>
     373  <listitem>
     374    <para>is a full-fledged GUI builder. It includes
     375    powerful features such as preview mode, automatic widget
     376    layout, support for custom widgets, and an advanced
     377    property editor.</para>
     378    <indexterm zone="qt designer">
     379      <primary sortas="b-designer">designer</primary>
     380    </indexterm>
     381  </listitem>
     382</varlistentry>
     383
     384<varlistentry id="linguist">
     385  <term><command>linguist</command></term>
     386  <listitem>
     387    <para>provides support for translating applications into
     388    local languages. </para>
     389    <indexterm zone="qt linguist">
     390      <primary sortas="b-linguist">linguist</primary>
     391    </indexterm>
     392  </listitem>
     393</varlistentry>
     394
     395<varlistentry id="lrelease">
     396  <term><command>lrelease</command></term>
     397  <listitem>
     398    <para>is a simple command line tool. It reads a Qt project
     399    file and produces message files used by the application.</para>
     400    <indexterm zone="qt lrelease">
     401      <primary sortas="b-lrelease">lrelease</primary>
     402    </indexterm>
     403  </listitem>
     404</varlistentry>
     405
     406<varlistentry id="lupdate">
     407  <term><command>lupdate</command></term>
     408  <listitem>
     409    <para>reads a Qt project file, finds the translatable
     410    strings in the specified source, header and Qt Designer
     411    interface files, and produces or updates the translation
     412    files listed in the project file.</para>
     413    <indexterm zone="qt lupdate">
     414      <primary sortas="b-lupdate">lupdate</primary>
     415    </indexterm>
     416  </listitem>
     417</varlistentry>
     418
     419<varlistentry id="moc">
     420  <term><command>moc</command></term>
     421  <listitem>
     422    <para>generates Qt meta object support code.</para>
     423    <indexterm zone="qt moc">
     424      <primary sortas="b-moc">moc</primary>
     425    </indexterm>
     426  </listitem>
     427</varlistentry>
     428
     429<varlistentry id="qm2ts">
     430  <term><command>qm2ts</command></term>
     431  <listitem>
     432    <para>is a tool for converting Qt message file formats.</para>
     433    <indexterm zone="qt qm2ts">
     434      <primary sortas="b-qm2ts">qm2ts</primary>
     435    </indexterm>
     436  </listitem>
     437</varlistentry>
     438
     439<varlistentry id="qmake">
     440  <term><command>qmake</command></term>
     441  <listitem>
     442    <para>qmake uses information stored in project files to
     443    determine what should go in the makefiles it generates.</para>
     444    <indexterm zone="qt qmake">
     445      <primary sortas="b-qmake">qmake</primary>
     446    </indexterm>
     447  </listitem>
     448</varlistentry>
     449
     450<varlistentry id="qtconfig">
     451  <term><command>qtconfig</command></term>
     452  <listitem>
     453    <para>is used to customize the appearance of Qt applications.</para>
     454    <indexterm zone="qt qtconfig">
     455      <primary sortas="b-qtconfig">qtconfig</primary>
     456    </indexterm>
     457  </listitem>
     458</varlistentry>
     459
     460<varlistentry id="uic">
     461  <term><command>uic</command></term>
     462  <listitem>
     463    <para>is a Qt user interface compiler.</para>
     464    <indexterm zone="qt uic">
     465      <primary sortas="b-uic">uic</primary>
     466    </indexterm>
     467  </listitem>
     468</varlistentry>
     469</variablelist>
    304470
    305471</sect2>
Note: See TracChangeset for help on using the changeset viewer.