Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 4125

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<HTML
><HEAD
><TITLE
>Install Mesa</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
"><LINK
REL="HOME"
TITLE="Nvidia OpenGL Configuration mini-HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Install Software"
HREF="install.html"><LINK
REL="PREVIOUS"
TITLE="Install XFree86"
HREF="instx.html"><LINK
REL="NEXT"
TITLE="Install Nvidia OpenGL drivers"
HREF="instnvidia.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Nvidia OpenGL Configuration mini-HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="instx.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Install Software</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="instnvidia.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTMESA"
>3.3. Install Mesa</A
></H1
><P
>	Note: This gives you the <TT
CLASS="FILENAME"
>libGLU*</TT
> and <TT
CLASS="FILENAME"
>libglut*</TT
>
		files that may be missing in <SPAN
CLASS="PRODUCTNAME"
>XFree86</SPAN
>.
        <SPAN
CLASS="PRODUCTNAME"
>XFree86</SPAN
> used to only come with the OpenGL core library,
		<TT
CLASS="FILENAME"
>libGL</TT
> (based on Mesa).  This
        also installs Mesa's <TT
CLASS="FILENAME"
>libGL</TT
>, but we will delete that since it is to be replaced
        by the Nvidia libGL.
        </P
><P
>	You should look in <TT
CLASS="FILENAME"
>/usr/X11R6/lib</TT
> to see if you already have
	libglut.* and libGLU.*. If you do, you can skip installing Mesa. Recent releases
	of XFree86 have been including more of Mesa as standard.
	</P
><P
>	It's best to uninstall any old Mesa version you may have installed before
	installing a new Mesa.  Uninstalling software can be a dangerous operation,
	so know what you are doing! If you have software depending on your old Mesa,
	you might need to keep it and just install the new Mesa along with it.
	</P
><P
>	To completely uninstall any Mesa libs that may have come with Slackware:
	<TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>&#13;		removepkg mesa
	</PRE
></FONT
></TD
></TR
></TABLE
>
	For <B
CLASS="COMMAND"
>rpm</B
>-based systems (like RedHat and Mandrake), try:
	<TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>		# see what will be removed first
		rpm -e --test Mesa | less
		# if ok, proceed
		rpm -e Mesa
	</PRE
></FONT
></TD
></TR
></TABLE
>
	For Debian, you can try:
	<TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>		apt-get remove Mesa
	</PRE
></FONT
></TD
></TR
></TABLE
>
	Procedures vary for other distributions.  If there is no clear way to
	uninstall an existing Mesa, then at least confirm where it is installed:
	normally either under <TT
CLASS="FILENAME"
>/usr</TT
>
	or <TT
CLASS="FILENAME"
>/usr/local</TT
>.  The example below assumes that
	<SPAN
CLASS="APPLICATION"
>Mesa</SPAN
> is installed (or going to get installed) under
	<TT
CLASS="FILENAME"
>/usr</TT
>.  Installing
	over an old version is probably harmless.  Look for <TT
CLASS="FILENAME"
>/usr/lib/libMesa*</TT
>
	or <TT
CLASS="FILENAME"
>/usr/local/lib/libMesa*</TT
> and delete them unless you have programs that
        need them.
	</P
><P
>	<TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>&#13;	# IF you are going to use the project GLUT distribution of GLUT, then
        # unpack the Glut-3.7 packages ...
	# Mesa's compile looks for it
	cd /usr/src
	tar -xvzf glut-3.7.tar.gz
	tar -xvzf glut_data-3.7.tar.gz
        # IF you are using this GLUT, use the --with-glut=/usr/src/glut-3.7
        # parameter with Mesa's ./configure below in addition to the --prefix

	cd /usr/src
	tar -xvzf MesaLib-4.0.1.tar.gz
	tar -xvzf MesaDemos-4.0.1.tar.gz
	cd Mesa-4.0.1
	./configure --prefix=/usr
	make
	make install
        ldconfig
	</PRE
></FONT
></TD
></TR
></TABLE
>
	</P
><P
>	Important:
	At this point, <SPAN
CLASS="APPLICATION"
>Mesa</SPAN
> installed its own version of the
	<TT
CLASS="FILENAME"
>glx.h</TT
> include
	files over the ones that <B
CLASS="COMMAND"
>XFree86</B
> installed.  This will cause some
	programs to fail to compile and is corrected by copying the <B
CLASS="COMMAND"
>XFree86</B
>
	GL include files from the X source back to your system:
	<TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>&#13;	cp /usr/src/release/xc/include/GL/*.h /usr/X11R6/include/GL
	</PRE
></FONT
></TD
></TR
></TABLE
>
	</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="instx.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="instnvidia.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Install XFree86</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="install.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Install Nvidia OpenGL drivers</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>