Changeset a07e9eb for x


Ignore:
Timestamp:
10/09/2012 07:44:44 AM (12 years ago)
Author:
Krejzi <krejzi@…>
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:
a7aa5be
Parents:
d18db05
Message:

libdrm 2.4.39 and MesaLib 9.0.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/installing/mesalib.xml

    rd18db05 ra07e9eb  
    77  <!ENTITY mesalib-download-http " ">
    88  <!ENTITY mesalib-download-ftp  "ftp://ftp.freedesktop.org/pub/mesa/&mesalib-version;/MesaLib-&mesalib-version;.tar.bz2">
    9   <!ENTITY mesalib-md5sum        "d546f988adfdf986cff45b1efa2d8a46">
    10   <!ENTITY mesalib-size          "5.5 MB">
    11   <!ENTITY mesalib-buildsize     "485 MB">
    12   <!ENTITY mesalib-time          "4.2 SBU">
     9  <!ENTITY mesalib-md5sum        "60e557ce407be3732711da484ab3db6c">
     10  <!ENTITY mesalib-size          "5.6 MB">
     11  <!ENTITY mesalib-buildsize     "1.7 GB">
     12  <!ENTITY mesalib-time          "5.5 SBU">
     13
     14  <!ENTITY glu-download-http " ">
     15  <!ENTITY glu-download-ftp  "ftp://ftp.freedesktop.org/pub/mesa/glu/glu-&glu-version;.tar.bz2">
     16  <!ENTITY glu-md5sum        "be9249132ff49275461cf92039083030">
     17  <!ENTITY glu-size          "484 KB">
     18  <!ENTITY glu-buildsize     "13 MB">
     19  <!ENTITY glu-time          "0.2 SBU">
    1320]>
    1421
     
    7582      <listitem>
    7683        <para>
    77           Required patch:
    78           <ulink url="&patch-root;/MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch"/>
    79         </para>
     84          GLU Download (HTTP): <ulink url="&glu-download-http;"/>
     85        </para>
     86      </listitem>
     87      <listitem>
     88        <para>
     89          GLU Download (FTP): <ulink url="&glu-download-ftp;"/>
     90        </para>
     91      </listitem>
     92      <listitem>
     93        <para>
     94          GLU Download MD5 sum: &glu-md5sum;
     95        </para>
     96      </listitem>
     97      <listitem>
     98        <para>
     99          GLU Download size: &glu-size;
     100        </para>
     101      </listitem>
     102      <listitem>
     103        <para>
     104          Estimated GLU disk space required: &glu-buildsize;
     105        </para>
     106      </listitem>
     107      <listitem>
     108        <para>
     109          Estimated GLU build time: &glu-time;
     110        </para>
     111      </listitem>
     112    </itemizedlist>
     113
     114    <bridgehead renderas="sect3">Additional Patches</bridgehead>
     115    <itemizedlist spacing="compact">
     116      <listitem>
    80117        <para>
    81118          Recommended patch:
    82           <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-3.patch"/>
    83           (Needed if testing the Xorg installation per BLFS instructions)
     119          <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-4.patch"/>
     120          (Needed if testing the Xorg installation per BLFS instructions).
    84121        </para>
    85122      </listitem>
     
    93130      <xref linkend="libdrm"/>,
    94131      <xref linkend="libxml2"/>,
     132      <xref linkend="llvm"/>,
    95133      <xref linkend="makedepend"/> and
    96134      <xref linkend="xorg7-lib"/>
    97135    </para>
    98136
    99     <bridgehead renderas="sect4">Recommended</bridgehead>
     137<!--    <bridgehead renderas="sect4">Recommended</bridgehead>
    100138    <para role="recommended">
    101139      <xref linkend="llvm"/>
    102     </para>
     140    </para> -->
    103141
    104142    <note>
     
    130168
    131169    <para>
     170      If you have downloaded recommended patch, apply it by running the
     171      following command:
     172    </para>
     173
     174<screen><userinput>patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-4.patch</userinput></screen>
     175
     176    <para>
    132177      Install <application>MesaLib</application> by running the following
    133178      commands:
    134179    </para>
    135180
    136 <screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure                &amp;&amp;
    137 patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-3.patch        &amp;&amp;
    138 patch -Np1 -i ../MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch    &amp;&amp;
    139 ./configure --prefix=$XORG_PREFIX   \
    140             --enable-texture-float  \
    141             --enable-gles1          \
    142             --enable-gles2          \
    143             --enable-xa             \
    144             --enable-shared-glapi   \
    145             --enable-shared-dricore \
    146             --enable-glx-tls        \
    147             --with-gallium-drivers="nouveau,r300,r600,svga,swrast" &amp;&amp;
     181<screen><userinput>autoreconf -fi &amp;&amp;
     182./configure --prefix=/usr                  \
     183            --sysconfdir=/etc              \
     184            --enable-texture-float         \
     185            --enable-gles1                 \
     186            --enable-gles2                 \
     187            --enable-openvg                \
     188            --enable-xa                    \
     189            --enable-gbm                   \
     190            --enable-gallium-egl           \
     191            --enable-gallium-gbm           \
     192            --enable-r600-llvm-compiler    \
     193            --enable-glx-tls               \
     194            --with-egl-platforms="drm,x11" \
     195            --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast" &amp;&amp;
    148196make</userinput></screen>
    149197
    150198    <para>
     199      If you have applied recommended patch, build the demo programs by
     200      running the following command:
     201    </para>
     202
     203<screen><userinput>make -c xdemos DEMOS_PREFIX=/usr</userinput></screen>
     204
     205    <para>
    151206      This package does not come with a test suite.
    152207    </para>
     
    156211    </para>
    157212
    158 <screen role="root"><userinput>make install &amp;&amp;
    159 mkdir -pv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; &amp;&amp;
    160 cp -rfv docs/* ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen>
    161 
    162     <para>
    163       Finally, if installing to any prefix other than
    164       <filename class="directory">/usr</filename>, you should create symlinks
    165       to the GL headers in <filename class="directory">/usr/include</filename>.
    166       Execute the following command as the
     213<screen role="root"><userinput>make install</userinput></screen>
     214
     215    <para>
     216      If you have built demo programs, install them by running the
     217      following command as the
    167218      <systemitem class="username">root</systemitem> user:
    168219    </para>
    169220
    170 <screen role="root"><userinput>for GLHEADER in EGL GL GLES GLES2 KHR xa_composite.h xa_context.h xa_tracker.h
    171 do
    172   ln -sfv ${XORG_PREFIX}/include/${GLHEADER} /usr/include/${GLHEADER}
    173 done</userinput></screen>
     221<screen role="root"><userinput>make -C xdemos DEMOS_PREFIX=/usr install</userinput></screen>
     222
     223    <para>
     224      If you would like to save some space, strip the installed libraries
     225      by running the following commands as the
     226      <systemitem class="username">root</systemitem> user:
     227    </para>
     228
     229<screen role="root"><userinput>strip --strip-unneeded /usr/lib/{dri,egl,gbm}/*.so   &amp;&amp;
     230strip --strip-unneeded /usr/lib/libdricore9.0.0.so.* &amp;&amp;
     231strip --strip-unneeded /usr/lib/libxatracker.so.*</userinput></screen>
     232
     233    <para>
     234      If desired, install the optional documentation by running
     235      the following commands as the
     236      <systemitem class="username">root</systemitem> user:
     237    </para>
     238
     239<screen role="root"><userinput>install -v -dm755 /usr/share/doc/MesaLib-&mesalib-version; &amp;&amp;
     240cp -rfv docs/* /usr/share/doc/MesaLib-&mesalib-version;</userinput></screen>
     241
     242  </sect2>
     243
     244  <sect2 role="installation">
     245    <title>Installation of GLU</title>
     246
     247    <para>
     248      Install <application>GLU</application> by running the following
     249      commands:
     250    </para>
     251
     252<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
     253make</userinput></screen>
     254
     255    <para>
     256      This package does not come with a test suite.
     257    </para>
     258
     259    <para>
     260      Now, as the <systemitem class="username">root</systemitem> user:
     261    </para>
     262
     263<screen role="root"><userinput>make install</userinput></screen>
    174264
    175265  </sect2>
     
    179269
    180270    <para>
    181       <command>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure</command>: by default,
    182       Mesa builds with debugging symbols. Remove the -g switch from both
    183       <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> with this command.
    184     </para>
    185 
    186     <para>
    187271      <option>--enable-texture-float</option>: This switch enables
    188       floating-point textures and renderbuffers. Please consult
     272      floating-point textures and render buffers. Please consult
    189273      <filename>docs/patents.txt</filename> to see if there are
    190274      any legal issues if you use this feature.
     
    202286
    203287    <para>
     288      <option>--enable-openvg</option>: This switch enables support for
     289      OpenVG API.
     290    </para>
     291
     292    <para>
    204293      <option>--enable-xa</option>: This switch enables building of the
    205294      XA X Acceleration API (Required for VMware 3D Driver).
     
    207296
    208297    <para>
    209       <option>--enable-shared-glapi</option>: This switch enables building
    210       of the shared glapi library.
    211     </para>
    212 
    213     <para>
    214       <option>--enable-shared-dricore</option>: This switch enables linking
    215       of the DRI modules with shared core DRI routines.
     298      <option>--enable-gbm</option>: This switch enables building of the
     299      <application>Mesa</application> Graphics Buffer Manager library.
     300    </para>
     301
     302    <para>
     303      <option>--enable-gallium-egl</option>: This switch enables optional
     304      EGL state tracker for Gallium.
     305    </para>
     306
     307    <para>
     308      <option>--enable-gallium-gbm</option>: This switch enables optional
     309      GBM state tracker for Gallium.
     310    </para>
     311
     312    <para>
     313      <option>--enable-r600-llvm-compiler</option>: This switch enables
     314      experimental LLVM backend for graphics shaders.
    216315    </para>
    217316
     
    222321
    223322    <para>
     323      <parameter>--with-egl-platforms="..."</parameter>: This parameter
     324      controls for which platforms EGL should be built. Available
     325      platforms are drm, x11 and wayland.
     326    </para>
     327
     328    <para>
    224329      <parameter>--with-gallium-drivers="..."</parameter>: This parameter
    225       controls which Gallium drivers should be built. Available drivers are:
    226       i915, nouveau, r300, r600, swrast and svga. Note that you will need to
    227       remove r300 and r600 from the list if you haven't installed
    228       <xref linkend="llvm"/>.
    229     </para>
     330      controls which Gallium drivers should be built. Available drivers
     331      are: i915, nouveau, r300, r600, radeonsi, svga and swrast.
     332    </para>
     333
     334    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     335      href="../../xincludes/static-libraries.xml"/>
    230336
    231337  </sect2>
     
    244350        </seg>
    245351        <seg>
    246           libEGL.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so,
    247           libGL.so, libGLU.so and libxatracker.so
     352          libdricore9.0.0.so, libEGL.so, libgbm.so, libglapi.so,
     353          libGLESv1_CM.so, libGLESv2.so, libGL.so, libGLU.so,
     354          libOpenVG.so and libxatracker.so
    248355        </seg>
    249356        <seg>
    250           <envar>$XORG_PREFIX</envar>/include/{EGL,GL,GLES,GLES2,KHR},
    251           <envar>$XORG_PREFIX</envar>/lib/dri, and
    252           <envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;
     357          /usr/include/EGL,
     358          /usr/include/GL,
     359          /usr/include/GLES,
     360          /usr/include/GLES2,
     361          /usr/include/KHR,
     362          /usr/include/VG and
     363          /usr/lib/dri
    253364        </seg>
    254365      </seglistitem>
     
    286397      </varlistentry>
    287398
     399      <varlistentry id="libdricore">
     400        <term><filename class="libraryfile">libdricore9.0.0.so</filename></term>
     401        <listitem>
     402          <para>
     403            contains common DRI routines used by <application>Mesa</application>
     404            DRI drivers.
     405          </para>
     406          <indexterm zone="mesalib libdricore">
     407            <primary sortas="c-libdricore">libdricore9.0.0.so</primary>
     408          </indexterm>
     409        </listitem>
     410      </varlistentry>
     411
    288412      <varlistentry id="libEGL">
    289         <term><filename class='libraryfile'>libEGL.so</filename></term>
    290         <listitem>
    291           <para>
    292             provides a native platform graphics interface as defined by
    293             the EGL-1.4 specification.
     413        <term><filename class="libraryfile">libEGL.so</filename></term>
     414        <listitem>
     415          <para>
     416            provides a native platform graphics interface as
     417            defined by the EGL-1.4 specification.
    294418          </para>
    295419          <indexterm zone="mesalib libEGL">
     
    299423      </varlistentry>
    300424
     425      <varlistentry id="libgbm">
     426        <term><filename class="libraryfile">libgbm.so</filename></term>
     427        <listitem>
     428          <para>
     429            is the <application>Mesa</application> Graphics Buffer
     430            Manager library.           
     431          </para>
     432          <indexterm zone="mesalib libgbm">
     433            <primary sortas="c-libgbm">libgbm.so</primary>
     434          </indexterm>
     435        </listitem>
     436      </varlistentry>
     437
     438      <varlistentry id="libGLESv1_CM">
     439        <term><filename class="libraryfile">libGLESv1_CM.so</filename></term>
     440        <listitem>
     441          <para>
     442            is the <application>Mesa</application> OpenGL ES 1.1 library.
     443          </para>
     444          <indexterm zone="mesalib libGLESv1_CM">
     445            <primary sortas="c-libGLESv1_CM">libGLESv1_CM.so</primary>
     446          </indexterm>
     447        </listitem>
     448      </varlistentry>
     449
     450      <varlistentry id="libGLES2">
     451        <term><filename class="libraryfile">libGLES2.so</filename></term>
     452        <listitem>
     453          <para>
     454            is the <application>Mesa</application> OpenGL ES 2.0 library.
     455          </para>
     456          <indexterm zone="mesalib libGLES2">
     457            <primary sortas="c-libGLES2">libGLES2.so</primary>
     458          </indexterm>
     459        </listitem>
     460      </varlistentry>
     461
    301462      <varlistentry id="libGL">
    302         <term><filename class='libraryfile'>libGL.so</filename></term>
    303         <listitem>
    304           <para>
    305             is the main OpenGL library.
     463        <term><filename class="libraryfile">libGL.so</filename></term>
     464        <listitem>
     465          <para>
     466            is the main <application>Mesa</application> OpenGL library.
    306467          </para>
    307468          <indexterm zone="mesalib libGL">
     
    312473
    313474      <varlistentry id="libGLU">
    314         <term><filename class='libraryfile'>libGLU.so</filename></term>
    315         <listitem>
    316           <para>
    317             is the OpenGL Utility library.
     475        <term><filename class="libraryfile">libGLU.so</filename></term>
     476        <listitem>
     477          <para>
     478            is the <application>Mesa</application> OpenGL
     479            Utility library.
    318480          </para>
    319481          <indexterm zone="mesalib libGLU">
     
    323485      </varlistentry>
    324486
     487      <varlistentry id="libOpenVG">
     488        <term><filename class="libraryfile">libOpenVG.so</filename></term>
     489        <listitem>
     490          <para>
     491            is the <application>Mesa</application> OpenVG 1.0 library.
     492          </para>
     493          <indexterm zone="mesalib libOpenVG">
     494            <primary sortas="c-libOpenVG">libOpenVG.so</primary>
     495          </indexterm>
     496        </listitem>
     497      </varlistentry>
     498
    325499      <varlistentry id="libxatracker">
    326         <term><filename class='libraryfile'>libxatracker.so</filename></term>
    327         <listitem>
    328           <para>
    329             is the library that provides XA X Acceleration API.
     500        <term><filename class="libraryfile">libxatracker.so</filename></term>
     501        <listitem>
     502          <para>
     503            is the Xorg Gallium3D acceleration library.
    330504          </para>
    331505          <indexterm zone="mesalib libxatracker">
Note: See TracChangeset for help on using the changeset viewer.