Orion P wrote: > > On 10/05/2009 02:56 PM, Chris Marshall wrote: > > > > Announcing the release to CPAN of the > >Perl OpenGL-0.59 release supporting > >PDL::Graphics::TriD. It has improved robustness, > >portability, a number of bug fixes, and (did I > >mention) it support the new PDL::Graphics::TriD > >visualization code. > > > > I'm getting: > > + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -g -pipe > -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom > -fasynchronous-unwind-tables' > Found FreeGLUT v20400 > > Using interface: FREEGLUT > > ...snip... > > gl_util.c:1062: warning: value computed is not used > /usr/bin/perl /usr/lib/perl5/5.10.0/ExtUtils/xsubpp > -noprototypes -typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap > -typemap typemap pogl_const.xs > pogl_const.xsc && > mv pogl_const.xsc pogl_const.c gcc -c -I/usr/include > -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE > -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector --param=ssp-buffer-size=4 > -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables > -DVERSION=\"0.59\" -DXS_VERSION=\"0.59\" -fPIC > "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" > -DHAVE_VER -DHAVE_FREEGLUT -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT > -DHAVE_GLX -DGL_GLEXT_LEGACY pogl_const.c In file included from > pogl_const.xs:51: > > glut_const.h: In function 'neoconstant': > glut_const.h:183: error: 'GLUT_INIT_STATE' undeclared (first use in this > function) > glut_const.h:183: error: (Each undeclared identifier is reported only once > glut_const.h:183: error: for each function it appears in.)
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. Could you check the include path for glut.h and freeglut.h? The one with GLUT_INIT_STATE defined in it is the one that needs to be used. Thanks, Chris
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
