[blfs-dev] [blfs-book] r11681 - trunk/BOOK/x/lib

Armin K. krejzi at email.com
Fri Aug 23 16:40:24 PDT 2013


On 08/24/2013 12:54 AM, bdubbs at higgs.linuxfromscratch.org wrote:
> Author: bdubbs
> Date: Fri Aug 23 15:54:33 2013
> New Revision: 11681
> 
> Log:
> Restore alternate install method for Qt4
> 
> Modified:
>    trunk/BOOK/x/lib/qt4.xml
> 
> Modified: trunk/BOOK/x/lib/qt4.xml
> ==============================================================================
> --- trunk/BOOK/x/lib/qt4.xml	Fri Aug 23 13:56:44 2013	(r11680)
> +++ trunk/BOOK/x/lib/qt4.xml	Fri Aug 23 15:54:33 2013	(r11681)
> @@ -39,7 +39,7 @@
>        of <application>Qt</application> is <application>KDE</application>.
>      </para>
>  
> -    &lfs73_checked;
> +    &lfs74_checked;
>  
>      <bridgehead renderas="sect3">Package Information</bridgehead>
>      <itemizedlist spacing="compact">
> @@ -79,9 +79,8 @@
>  
>      <bridgehead renderas="sect4">Required</bridgehead>
>      <para role="required">
> -      <xref linkend="alsa-lib"/>,
> -      <xref linkend="mesalib"/> and
> -      <xref linkend="qtchooser"/>
> +      <xref linkend="alsa-lib"/> and
> +      <xref linkend="mesalib"/> 
>      </para>
>  
>      <bridgehead renderas="sect4">Recommended</bridgehead>
> @@ -94,7 +93,7 @@
>        <xref linkend="libmng"/>,
>        <xref linkend="libpng"/>,
>        <xref linkend="libtiff"/>,
> -      <xref linkend="openssl"/> and
> +      <xref linkend="openssl"/>, and
>        <xref linkend="sqlite"/>
>      </para>
>  
> @@ -105,7 +104,8 @@
>        <xref linkend="gst-plugins-base"/> (For QtWebKit HTML5 Video),
>        <xref linkend="mysql"/>,
>        <xref linkend="postgresql"/>,
> -      <xref linkend="pulseaudio"/> and
> +      <xref linkend="pulseaudio"/>,
> +      <xref linkend="qtchooser"/> (if also installing Qt5), and

Now, this is required. Without this package there will be no qmake, uic,
rcc and moc binary anywhere, just the -qt4 version.

>        <xref linkend="unixodbc"/>
>      </para>
>  
> @@ -117,7 +117,51 @@
>    <sect2 role="installation">
>      <title>Installation of Qt</title>
>  
> -   <warning>
> +    <para>
> +
> +       There are several ways to install a complicated package such as
> +       <application>Qt</application>. The files are not completely position
> +       independent. Installation procedures execute the program
> +       <command>pkg-config</command> to determine the location of package
> +       executables, libraries, headers, and other files. For
> +       <application>Qt</application>, <command>pkg-config</command> will look
> +       for the appropriate <filename>lib/pkgconfig/Qt*.pc</filename> files
> +       which must be modified if relocating the package. These files are set up
> +       correctly by the build process.
> +    </para>
> +    
> +    <para>
> +       The default installation places the files in <filename
> +       class='directory'>/usr/local/qt/</filename>. Many commercial
> +       distributions place the files in the system's <filename
> +       class='directory'>/usr</filename> hierarchy. The package can also be
> +       installed in an arbitrary directory.
> +    </para>
> +    
> +    <para>
> +       The advantage of installing in <filename
> +       class='directory'>/usr</filename> is that no updates to the
> +       <filename>/etc/ld.so.conf</filename> or
> +       <filename>/etc/man_db.conf</filename> files are required. The package
> +       files are distributed within several subdirectories of the <filename
> +       class='directory'>/usr</filename> hierarchy.  This is the method that
> +       most commercial distributions use.  It is also supported by the 
> +       optional <application>qtchooser</application> application.
> +    </para>
> +

If it's not problem with you, please use double quotes, since we use
them everywhere else (just to be consistent).

> +./configure -prefix         /usr                 \
> +            -bindir         /usr/lib/qt4/bin     \
> +            -plugindir      /usr/lib/qt4/plugins \
> +            -importdir      /usr/lib/qt4/imports \
> +            -headerdir      /usr/include/qt4     \
> +            -datadir        /usr/share/qt4       \
> +            -sysconfdir     /etc/xdg             \
> +            -docdir         /usr/share/doc/qt4   \
> +            -demosdir       /usr/share/doc/qt4/demos    \
> +            -examplesdir    /usr/share/doc/qt4/examples \
>              -translationdir /usr/share/qt4/translations \

And again, I did say again why is this ugly. Please, just please don't
add spaces between a option and its parameter.



More information about the blfs-dev mailing list