Changeset eb425b4 for x/installing
- Timestamp:
- 07/17/2012 08:17:38 PM (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:
- a205fd0
- Parents:
- e0f14b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/installing/mesalib.xml
re0f14b5 reb425b4 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 " cc5ee15e306b8c15da6a478923797171">9 <!ENTITY mesalib-md5sum "d546f988adfdf986cff45b1efa2d8a46"> 10 10 <!ENTITY mesalib-size "5.5 MB"> 11 <!ENTITY mesalib-buildsize " 386MB">12 <!ENTITY mesalib-time "4. 1SBU">11 <!ENTITY mesalib-buildsize "485 MB"> 12 <!ENTITY mesalib-time "4.2 SBU"> 13 13 ]> 14 14 … … 30 30 <title>Introduction to MesaLib</title> 31 31 32 <para><application>Mesa</application> is an OpenGL compatible 3D graphics 33 library.</para> 32 <para> 33 <application>Mesa</application> is an OpenGL compatible 3D graphics 34 library. 35 </para> 34 36 35 37 &lfs71_checked; … … 72 74 <itemizedlist spacing="compact"> 73 75 <listitem> 74 <para>Required patch: <ulink 75 url="&patch-root;/MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch"/> 76 </para> 77 <para>Recommended patch: <ulink 78 url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-2.patch"/> 79 (Needed if testing the Xorg installation per BLFS instructions)</para> 76 <para> 77 Required patch: 78 <ulink url="&patch-root;/MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch"/> 79 </para> 80 <para> 81 Recommended patch: 82 <ulink url="&patch-root;/MesaLib-&mesalib-version;-add_xdemos-2.patch"/> 83 (Needed if testing the Xorg installation per BLFS instructions) 84 </para> 80 85 </listitem> 81 86 </itemizedlist> … … 90 95 <xref linkend="makedepend"/> and 91 96 <xref linkend="xorg7-lib"/> 92 </para> 93 94 <bridgehead renderas="sect4">Optional</bridgehead> 95 <para role="optional"> 96 <xref linkend="talloc"/> and 97 </para> 98 99 <bridgehead renderas="sect4">Recommended</bridgehead> 100 <para role="recommended"> 97 101 <xref linkend="llvm"/> 98 102 </para> 99 103 100 104 <note> 101 <para>The <application>libxml2</application> 102 <application>Python</application> module must have been built 103 during the installation of <application>libxml2</application> 104 or else <application>MesaLib</application> build will fail.</para> 105 <para> 106 The <application>libxml2</application> 107 <application>Python</application> module must have been built 108 during the installation of <application>libxml2</application> 109 or else <application>MesaLib</application> build will fail. 110 </para> 105 111 </note> 106 112 … … 113 119 <title>Installation of MesaLib</title> 114 120 115 <note><para>Unlike other packages, the 116 <filename>MesaLib-&mesalib-version;.tar.bz2</filename> 117 archive will extract to the 118 <filename class="directory">Mesa-&mesalib-version;</filename> 119 directory.</para></note> 120 121 <para>Install <application>MesaLib</application> by running the following 122 commands:</para> 121 <note> 122 <para> 123 Unlike other packages, the 124 <filename>MesaLib-&mesalib-version;.tar.bz2</filename> 125 archive will extract to the 126 <filename class="directory">Mesa-&mesalib-version;</filename> 127 directory. 128 </para> 129 </note> 130 131 <para> 132 Install <application>MesaLib</application> by running the following 133 commands: 134 </para> 123 135 124 136 <screen><userinput>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure && … … 126 138 patch -Np1 -i ../MesaLib-&mesalib-version;-llvm-3.1-fixes-1.patch && 127 139 ./configure --prefix=$XORG_PREFIX \ 140 --enable-texture-float \ 141 --enable-gles1 \ 142 --enable-gles2 \ 143 --enable-xa \ 144 --enable-shared-glapi \ 128 145 --enable-shared-dricore \ 129 --enable- xa\130 --with-gallium-drivers="nouveau, svga,swrast" &&146 --enable-glx-tls \ 147 --with-gallium-drivers="nouveau,r300,r600,svga,swrast" && 131 148 make</userinput></screen> 132 149 133 <para>This package does not come with a test suite.</para> 134 135 <para>Now, as the <systemitem class="username">root</systemitem> user:</para> 150 <para> 151 This package does not come with a test suite. 152 </para> 153 154 <para> 155 Now, as the <systemitem class="username">root</systemitem> user: 156 </para> 136 157 137 158 <screen role="root"><userinput>make install && 138 159 mkdir -pv ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version; && 139 cp -rv docs/* ${XORG_PREFIX}/share/doc/MesaLib-&mesalib-version;</userinput></screen> 140 141 <para>Finally, if installing to any prefix other than 142 <filename class="directory">/usr</filename>, you should create symlinks 143 to the GL headers in <filename class="directory">/usr/include</filename>. 144 Execute the following command as the 145 <systemitem class="username">root</systemitem> user:</para> 146 147 <screen role="root"><userinput>ln -s -v ${XORG_PREFIX}/include/GL /usr/include && 148 ln -s -v ${XORG_PREFIX}/include/EGL /usr/include && 149 ln -s -v ${XORG_PREFIX}/include/KHR /usr/include && 150 151 for HEADER in xa_{composite,context,tracker}.h 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 167 <systemitem class="username">root</systemitem> user: 168 </para> 169 170 <screen role="root"><userinput>for GLHEADER in EGL GL GLES GLES2 KHR xa_composite.h xa_context.h xa_tracker.h 152 171 do 153 ln -s -v ${XORG_PREFIX}/include/$HEADER /usr/include172 ln -sfv ${XORG_PREFIX}/include/${GLHEADER} /usr/include/${GLHEADER} 154 173 done</userinput></screen> 155 174 … … 159 178 <title>Command Explanations</title> 160 179 161 <para><command>sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure</command>: by 162 default, Mesa builds with debugging symbols. Remove the -g switch from 163 both <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> with this 164 command.</para> 165 166 <para><command>--enable-shared-dricore</command>: link DRI modules with 167 shared core DRI routines.</para> 168 169 <para><command>--enable-xa</command>: enables building of the XA X 170 Acceleration API (Required for VMware 3D Driver).</para> 171 172 <para><command>--with-gallium-drivers="..."</command>: controls building 173 of gallium drivers. Available drivers are: i915, nouveau, r300, r600, 174 swrast and svga. Note that r300 and r600 require <xref linkend="llvm"/> 175 to be installed.</para> 180 <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> 187 <option>--enable-texture-float</option>: This switch enables 188 floating-point textures and renderbuffers. Please consult 189 <filename>docs/patents.txt</filename> to see if there are 190 any legal issues if you use this feature. 191 </para> 192 193 <para> 194 <option>--enable-gles1</option>: This switch enables support for 195 OpenGL ES 1.x API. 196 </para> 197 198 <para> 199 <option>--enable-gles2</option>: This switch enables support for 200 OpenGL ES 2.x API. 201 </para> 202 203 <para> 204 <option>--enable-xa</option>: This switch enables building of the 205 XA X Acceleration API (Required for VMware 3D Driver). 206 </para> 207 208 <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. 216 </para> 217 218 <para> 219 <option>--enable-glx-tls</option>: This switch enables TLS support 220 in GLX. 221 </para> 222 223 <para> 224 <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> 176 230 177 231 </sect2> … … 186 240 187 241 <seglistitem> 188 <seg>glxgears and glxinfo</seg> 189 <seg>libEGL.so, libGL.so, libGLU.so, libxatracker.so, and *_dri.so</seg> 190 <seg><envar>$XORG_PREFIX</envar>/include/{EGL,GL,KHR}, 191 <envar>$XORG_PREFIX</envar>/lib/dri, and 192 <envar>$XORG_PREFIX</envar>/share/doc/MesaLib-&mesalib-version;</seg> 242 <seg> 243 glxgears and glxinfo 244 </seg> 245 <seg> 246 libEGL.so, libglapi.so, libGLESv1_CM.so, libGLESv2.so, 247 libGL.so, libGLU.so and libxatracker.so 248 </seg> 249 <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; 253 </seg> 193 254 </seglistitem> 194 255 </segmentedlist> … … 202 263 <term><filename>glxgears</filename></term> 203 264 <listitem> 204 <para>is a GL demo useful for troubleshooting graphics 205 problems.</para> 265 <para> 266 is a GL demo useful for troubleshooting graphics 267 problems. 268 </para> 206 269 <indexterm zone="mesalib glxgears"> 207 270 <primary sortas="b-glxgears">glxgears</primary> … … 213 276 <term><filename>glxinfo</filename></term> 214 277 <listitem> 215 <para>is a diagnostic program that displays information about the 216 graphics hardware and installed GL libraries.</para> 278 <para> 279 is a diagnostic program that displays information about the 280 graphics hardware and installed GL libraries. 281 </para> 217 282 <indexterm zone="mesalib glxinfo"> 218 283 <primary sortas="b-glxinfo">glxinfo</primary> … … 224 289 <term><filename class='libraryfile'>libEGL.so</filename></term> 225 290 <listitem> 226 <para>provides a native platform graphics interface as defined by 227 the EGL-1.4 specification.</para> 291 <para> 292 provides a native platform graphics interface as defined by 293 the EGL-1.4 specification. 294 </para> 228 295 <indexterm zone="mesalib libEGL"> 229 296 <primary sortas="c-libGL">libEGL.so</primary> … … 235 302 <term><filename class='libraryfile'>libGL.so</filename></term> 236 303 <listitem> 237 <para>is the main OpenGL library.</para> 304 <para> 305 is the main OpenGL library. 306 </para> 238 307 <indexterm zone="mesalib libGL"> 239 308 <primary sortas="c-libGL">libGL.so</primary> … … 245 314 <term><filename class='libraryfile'>libGLU.so</filename></term> 246 315 <listitem> 247 <para>is the OpenGL Utility library.</para> 316 <para> 317 is the OpenGL Utility library. 318 </para> 248 319 <indexterm zone="mesalib libGLU"> 249 320 <primary sortas="c-libGLU">libGLU.so</primary> … … 255 326 <term><filename class='libraryfile'>libxatracker.so</filename></term> 256 327 <listitem> 257 <para>is the XA X Acceleration API library.</para> 328 <para> 329 is the library that provides XA X Acceleration API. 330 </para> 258 331 <indexterm zone="mesalib libxatracker"> 259 332 <primary sortas="c-libxatracker">libxatracker.so</primary>
Note:
See TracChangeset
for help on using the changeset viewer.