mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
Corrected mesalib instructions to account for X11R6.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6045 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
f2cae5f154
commit
78f4c3e980
@ -48,6 +48,10 @@
|
||||
<para>[randy] - Added commands to the cpio instructions to create
|
||||
alternate forms of the documentation.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[dj] - Corrected MesaLib instructions to account for
|
||||
X11R6.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
||||
|
@ -64,8 +64,11 @@
|
||||
<bridgehead renderas="sect3">MesaLib Dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect4">Required</bridgehead>
|
||||
<para><xref linkend="x-window-system"/> or
|
||||
<xref linkend="xorg7"/> Libs and Utilities, <xref linkend="libdrm"/> and
|
||||
<para>
|
||||
<!--<xref linkend="x-window-system"/> -->
|
||||
<xref linkend="xorg"/> or
|
||||
<xref linkend="xorg7-lib"/> and <xref linkend="xorg7-util"/>,
|
||||
<xref linkend="libdrm"/>, and
|
||||
<xref linkend="pkgconfig"/></para>
|
||||
|
||||
<bridgehead renderas="sect3">Recommended Download</bridgehead>
|
||||
@ -94,13 +97,19 @@
|
||||
<sect2 role="installation">
|
||||
<title>Installation of MesaLib</title>
|
||||
|
||||
<para>If you've installed the X Window System into any prefix other than
|
||||
<filename class="directory">/usr</filename>, then you'll need to adjust the
|
||||
commands below for your system. Correct several hard coded directories
|
||||
in the source files with the following commands:</para>
|
||||
<para>You will need to adjust the commands below to reflect the
|
||||
installation prefix of the X Window System. First, correct several
|
||||
hard coded directories in the source files with the following
|
||||
command (you can skip this first command if the prefix is
|
||||
<filename class="directory">/usr/X11R6</filename>):</para>
|
||||
|
||||
<screen><userinput>find . -type f -exec sed -i 's@/usr/X11R6@/usr@g' {} \; &&
|
||||
sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c</userinput></screen>
|
||||
<screen><userinput>find . -type f -exec sed -i 's@/usr/X11R6@<replaceable><PREFIX></replaceable>@g' {} \;</userinput></screen>
|
||||
|
||||
<para>If building for <application>Xorg-&xorg7-version;</application>,
|
||||
issue the following command to correct for the default module path in the
|
||||
new build system:</para>
|
||||
|
||||
<screen><userinput>sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c</userinput></screen>
|
||||
|
||||
<para>Build <application>MesaLib</application>
|
||||
by running the following command:</para>
|
||||
@ -115,9 +124,9 @@ sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c</userinput></scree
|
||||
System into any prefix other than
|
||||
<filename class="directory">/usr</filename>:</para>
|
||||
|
||||
<screen role="root"><userinput>bin/installmesa /usr &&
|
||||
mkdir -v -p /usr/lib/X11/modules/dri &&
|
||||
install -v -m755 lib/*dri* /usr/lib/X11/modules/dri</userinput></screen>
|
||||
<screen role="root"><userinput>bin/installmesa <replaceable><PREFIX></replaceable> &&
|
||||
mkdir -v -p <replaceable><PREFIX></replaceable>/lib/X11/modules/dri &&
|
||||
install -v -m755 lib/*dri* <replaceable><PREFIX></replaceable>/lib/X11/modules/dri</userinput></screen>
|
||||
|
||||
<para>If you've extracted the Demos package as well, then
|
||||
build the test programs with the following commands:</para>
|
||||
@ -130,7 +139,7 @@ make PROGS='glxinfo glxgears'</userinput></screen>
|
||||
<systemitem class="username">root</systemitem> user, again adjusting for
|
||||
the prefix of your X Window System:</para>
|
||||
|
||||
<screen role="root"><userinput>install -v -m755 glxinfo glxgears /usr/bin</userinput></screen>
|
||||
<screen role="root"><userinput>install -v -m755 glxinfo glxgears <replaceable><PREFIX></replaceable>/bin</userinput></screen>
|
||||
|
||||
<note>
|
||||
<para>If building <xref linkend="xorg7"/>, do not
|
||||
@ -151,8 +160,9 @@ make PROGS='glxinfo glxgears'</userinput></screen>
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para><command>find...sed -i 's@/usr/X11R6@/usr@'...</command>: This
|
||||
command corrects several hard coded references to the X11R6 default
|
||||
<para><command>find...sed -i
|
||||
's@/usr/X11R6@/<replaceable><PREFIX></replaceable>@'...</command>:
|
||||
This command corrects several hard coded references to the X11R6 default
|
||||
installation path.</para>
|
||||
|
||||
<para><command>sed -i 's@lib/modules@lib/X11/modules@'
|
||||
@ -164,7 +174,8 @@ make PROGS='glxinfo glxgears'</userinput></screen>
|
||||
target.</para>
|
||||
|
||||
<para><command>install -v -m755 lib/*dri*
|
||||
/usr/lib/X11/modules/dri</command>: installs the DRI modules.</para>
|
||||
<replaceable><PREFIX></replaceable>/lib/X11/modules/dri</command>:
|
||||
installs the DRI modules.</para>
|
||||
|
||||
<para><command>sed -i 's@-l$(GLUT_LIB)@@g' configs/default</command>:
|
||||
disables linking against GLUT libraries for the demo programs.</para>
|
||||
@ -172,7 +183,8 @@ make PROGS='glxinfo glxgears'</userinput></screen>
|
||||
<para><command>make PROGS='glxinfo glxgears'</command>: build only
|
||||
the glxinfo and glxgears programs.</para>
|
||||
|
||||
<para><command>install -v -m755 glxinfo glxgears /usr/bin</command>:
|
||||
<para><command>install -v -m755 glxinfo glxgears
|
||||
<replaceable><PREFIX></replaceable>/bin</command>:
|
||||
Installs only the glxinfo and glxgears programs.</para>
|
||||
|
||||
</sect2>
|
||||
|
Loading…
Reference in New Issue
Block a user