Hi ....
I just tried to install a glut-3.7 that i just got from opengl website.
My computer using Mandrake 8.2 with Nvidia Drivers : NVIDIA_GLX_3123 and
NVDIA_kernel 3123 too. It installed successfully on my system (I have test
with some openGl applications and they worked well).
Right now, I want to install glut (GL Tollkit Utility). I have been read the
manual (and also NVIDIA-OpenGL mini howto). But I have problem with my
previous Mesa, it was libMesaGLU1-devel-4.0.1-4mdk (actually with his glu.h
file)
everytime I tried to compile glut-3.7, I always got error message like :
-----------------------------------------------------------------------------------------------------
[here is brief of error when I tried to compile/execute
../glut3.7/lib/glut/Makefile ]
rm -f glut_8x13.o
gcc -c -O2 -m486 -ansi -fPIC -I../../include -I../.. -I/usr/X11R6/include
-Dlinux -D__i386__ -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
-DFUNCPROTO=15 -DNARROWPROTO glut_8x13.c
In file included from ../../include/GL/glut.h:59,
from glutbitmap.h:10,
from glut_8x13.c:5:
/usr/X11R6/include/GL/glu.h:261: parse error before `*'
/usr/X11R6/include/GL/glu.h:263: syntax error before `void'
/usr/X11R6/include/GL/glu.h:263: warning: data definition has no type or
storage class
/usr/X11R6/include/GL/glu.h:264: syntax error before `void'
/usr/X11R6/include/GL/glu.h:264: warning: data definition has no type or
storage class
/usr/X11R6/include/GL/glu.h:265: syntax error before `void'
/usr/X11R6/include/GL/glu.h:265: warning: data definition has no type or
storage class
/usr/X11R6/include/GL/glu.h:266: syntax error before `void'
/usr/X11R6/include/GL/glu.h:266: warning: data definition has no type or
storage class
/usr/X11R6/include/GL/glu.h:267: syntax error before `GLint'
/usr/X11R6/include/GL/glu.h:267: warning: data definition has no type or
storage class
[ .....etc etc ...so many error appear at here ]
--------------------------------------------------------------------------------------------------------
FYI :
Before I compile this I have already do (as said in Nvidia-opengl mini howto)
:
------------------------------------------------------------------------------------------
Read the file: README.linux
cd linux
READ the file: README
cp Glut.cf ..
cd ..
Edit Glut.cf: remove any Mesa references.
replace:
OPENGL = $(TOP)/../lib/libMesaGL.so
GLU = $(TOP)/../lib/libMesaGLU.so
with:
OPENGL = -lGL
GLU = -lGLU
./mkmkfiles.imake (no error ... success ! )
cd lib/glut
cp /usr/src/glut-3.7/linux/Makefile .
Edit the Makefile: remove any Mesa references.
replace:
OPENGL = $(TOP)/../lib/libMesaGL.so
GLU = $(TOP)/../lib/libMesaGLU.so
with:
OPENGL = -lGL
GLU = -lGLU
make depend (success ! no error ! no warning !)
make ---> stopped at here because of error that I got.
----------------------------------------------------------------------------------------
I think I got (big) problem with my glu.h that comes from libMesaGLU1-devel
package.
What should I do ? And what should I install / uninstall ?
--
./me
adwin
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs