Skip to contentSkip to conversation

installing glut-3.7.tar.gz

DISCUSSION Adwin 2 participants 2 messages Sep 29, 2002

lore
Share & tools
lore

Adwin

author
#0 lore raw

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 ?

Signature · 8 lines
./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
#1 lore raw
Quoted 24 lines · Adwin

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

(quoted diff) +0 -2
-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:
Quoted 16 lines

/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

parse error means a syntax error, it means that something is wrong on or before line 261 and it is before an asterisk.

I lookinto my glu.h i have version 1.2 from 2001/04/03 (see top of glu.h) lines 258 to 264 look like;

/* Internal convenience typedefs */
typedef GLvoid (*_GLUfuncptr)(GLvoid);

extern void gluBeginCurve (GLUnurbs* nurb); extern void gluBeginPolygon (GLUtesselator* tess); extern void gluBeginSurface (GLUnurbs* nurb); extern void gluBeginTrim (GLUnurbs* nurb);

Hope this helps.

Signature · 9 lines
Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
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