Orion Poplawski wrote:
> On 10/14/2009 11:44 AM, Chris Marshall wrote:
>> The GLUT_INIT_STATE is a FreeGLUT specific parameter.
>> If it is not being defined, then either the freeglut include
>> files are not being found or a vanilla GLUT include is being
>> used instead.
> 
> I think the problem is that on Fedora, freeglut provides both freeglut.h 
> and glut.h, and the library is libglut.so, so both HAVE_FREEGLUT and 
> HAVE_GLUT are being defined when only HAVE_FREEGLUT should be.

The build process will use the best possible configuration
for the build.  With both HAVE_GLUT and HAVE_FREEGLUT defined
it should be picking FreeGLUT.  The actual problem is that
the code currently assumes, apparently incorrectly, that the
FreeGLUT include file is in glut.h.  On your system, that is
not the case.  Try replacing glut.h by freeglut.h in glut_util.h
and see if that works.  If so, I'll try to cook up something a
bit smarter on the GLUT vs FreeGLUT differences.

Thanks for testing,
Chris

> $ perl Makefile.PL verbose
> $verbose set to 1
> found libs:
>     GL = 'GL'
>     GLU = 'GLU'
>     GLUT = 'glut'
> Testing for OpenGL Extensions
> Testing GLUT version
> glversion: cd utils;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT 
> clean;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT
> Found FreeGLUT v20400
> Have Version Data
> 
> Using interface: FREEGLUT
> 
> resulting libs:
>     FREEGLUT = 'glut'
>     GL = 'GL'
>     GLU = 'GLU'
>     GLUT = 'glut'
> 
> MakeMaker configuration:
>   AUTHOR => q[Bob 'grafman' Free <grafman at graphcomp.com>]
>   DEFINE => q[-DHAVE_VER -DHAVE_FREEGLUT -DHAVE_GL -DHAVE_GLU 
> -DHAVE_GLUT -DHAVE_GLX -DGL_GLEXT_LEGACY]
>   EXE_FILES => []
>   INC => q[-I/usr/include -I/usr/local/include]
>   LDFROM => q[$(OBJECT) ]
>   LIBS => q[-L/usr/lib -L/usr/local/lib -lglut -lGL -lglut -lGLU -lXext 
> -lXmu -lXi -lICE -lX11 -lm]
>   NAME => q[OpenGL]
>   OBJECT => q[$(BASEEXT)$(OBJ_EXT) gl_util$(OBJ_EXT) 
> pogl_const$(OBJ_EXT) pogl_gl_top$(OBJ_EXT) pogl_glu$(OBJ_EXT) 
> pogl_rpn$(OBJ_EXT) pogl_glut$(OBJ_EXT) pogl_gl_Accu_GetM$(OBJ_EXT) 
> pogl_gl_GetP_Pass$(OBJ_EXT) pogl_gl_Mult_Prog$(OBJ_EXT) 
> pogl_gl_Pixe_Ver2$(OBJ_EXT) pogl_gl_Prog_Clam$(OBJ_EXT) 
> pogl_gl_Tex2_Draw$(OBJ_EXT) pogl_gl_Ver3_Tex1$(OBJ_EXT) 
> pogl_gl_Vert_Multi$(OBJ_EXT)]
>   OPTIMIZE => undef
>   PM => { OpenGL.pm=>q[$(INST_LIBDIR)/OpenGL.pm], 
> Config.pm=>q[$(INST_LIBDIR)/OpenGL/Config.pm], 
> OpenGL.pod=>q[$(INST_LIBDIR)/OpenGL.pod] }
>   PREREQ_PM => {  }
>   VERSION_FROM => q[OpenGL.pm]
>   XSPROTOARG => q[-noprototypes]
>   clean => { FILES=>q[Config.pm utils/glversion.txt utils/glversion 
> utils/glversion.o] }
>   dynamic_lib => {  }
> Using PERL=/usr/bin/perl
> Potential libraries are '-L/usr/lib -L/usr/local/lib -lglut -lGL -lglut 
> -lGLU -lXext -lXmu -lXi -lICE -lX11 -lm':
> '-lglut' found at /usr/lib/libglut.so.3.9.0
> '-lGL' found at /usr/lib/libGL.so.1.2
> '-lglut' found at /usr/lib/libglut.so.3.9.0
> '-lGLU' found at /usr/lib/libGLU.so.1.3.070700
> '-lXext' found at /usr/lib/libXext.so.6.4.0
> '-lXmu' found at /usr/lib/libXmu.so.6.2.0
> '-lXi' found at /usr/lib/libXi.so.6.1.0
> '-lICE' found at /usr/lib/libICE.so.6.3.0
> '-lX11' found at /usr/lib/libX11.so.6.3.0
> '-lm' found at /usr/lib/libm.so
> Writing Makefile for OpenGL
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.421 / Virus Database: 270.14.17/2436 - Release Date: 10/14/09 
> 18:32:00
> 


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to