- Timestamp:
- 10/09/2012 07:44:44 AM (12 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/installing/mesalib.xml
rd18db05 ra07e9eb 7 7 <!ENTITY mesalib-download-http " "> 8 8 <!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"> 13 20 ]> 14 21 … … 75 82 <listitem> 76 83 <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> 80 117 <para> 81 118 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). 84 121 </para> 85 122 </listitem> … … 93 130 <xref linkend="libdrm"/>, 94 131 <xref linkend="libxml2"/>, 132 <xref linkend="llvm"/>, 95 133 <xref linkend="makedepend"/> and 96 134 <xref linkend="xorg7-lib"/> 97 135 </para> 98 136 99 <bridgehead renderas="sect4">Recommended</bridgehead>137 <!-- <bridgehead renderas="sect4">Recommended</bridgehead> 100 138 <para role="recommended"> 101 139 <xref linkend="llvm"/> 102 </para> 140 </para> --> 103 141 104 142 <note> … … 130 168 131 169 <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> 132 177 Install <application>MesaLib</application> by running the following 133 178 commands: 134 179 </para> 135 180 136 <screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure && 137 patch -Np1 -i ../MesaLib-&mesalib-version;-add_xdemos-3.patch && 138 patch -Np1 -i ../MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch && 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" && 181 <screen><userinput>autoreconf -fi && 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" && 148 196 make</userinput></screen> 149 197 150 198 <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> 151 206 This package does not come with a test suite. 152 207 </para> … … 156 211 </para> 157 212 158 <screen role="root"><userinput>make install && 159 mkdir -pv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; && 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 167 218 <systemitem class="username">root</systemitem> user: 168 219 </para> 169 220 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 && 230 strip --strip-unneeded /usr/lib/libdricore9.0.0.so.* && 231 strip --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; && 240 cp -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 && 253 make</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> 174 264 175 265 </sect2> … … 179 269 180 270 <para> 181 <command>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure</command>: by default,182 Mesa builds with debugging symbols. Remove the -g switch from both183 <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> with this command.184 </para>185 186 <para>187 271 <option>--enable-texture-float</option>: This switch enables 188 floating-point textures and render buffers. Please consult272 floating-point textures and render buffers. Please consult 189 273 <filename>docs/patents.txt</filename> to see if there are 190 274 any legal issues if you use this feature. … … 202 286 203 287 <para> 288 <option>--enable-openvg</option>: This switch enables support for 289 OpenVG API. 290 </para> 291 292 <para> 204 293 <option>--enable-xa</option>: This switch enables building of the 205 294 XA X Acceleration API (Required for VMware 3D Driver). … … 207 296 208 297 <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. 216 315 </para> 217 316 … … 222 321 223 322 <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> 224 329 <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"/> 230 336 231 337 </sect2> … … 244 350 </seg> 245 351 <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 248 355 </seg> 249 356 <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 253 364 </seg> 254 365 </seglistitem> … … 286 397 </varlistentry> 287 398 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 288 412 <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 by293 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. 294 418 </para> 295 419 <indexterm zone="mesalib libEGL"> … … 299 423 </varlistentry> 300 424 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 301 462 <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. 306 467 </para> 307 468 <indexterm zone="mesalib libGL"> … … 312 473 313 474 <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. 318 480 </para> 319 481 <indexterm zone="mesalib libGLU"> … … 323 485 </varlistentry> 324 486 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 325 499 <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. 330 504 </para> 331 505 <indexterm zone="mesalib libxatracker">
Note:
See TracChangeset
for help on using the changeset viewer.