Skip Menu |

This queue is for tickets about the OpenGL-Simple-GLUT CPAN distribution.

Report information
The Basics
Id: 50350
Status: open
Priority: 0/
Queue: OpenGL-Simple-GLUT

People
Owner: Nobody in particular
Requestors: bitcard [...] skewray.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.03
Fixed in: (no value)



Subject: Unable to compile
I am unable to compile on Ubuntu 9.04, perl 5.10.0. The output of "perl Makefile.PL verbose" is attached as E1.txt. The output of the resulting Makefile is attached as E2.txt. Please let me know if I can aid in any debugging. Brian
Subject: E1.txt
ABSTRACT_FROM => q[GLUT.pm] AUTHOR => q[Jonathan Chin <jon-opengl-simple-glut@earth.li>] LIBS => q[-lglut] NAME => q[OpenGL::Simple::GLUT] PREREQ_PM => { ExtUtils::Constant=>q[0] } VERSION_FROM => q[GLUT.pm] Using PERL=/usr/bin/perl Potential libraries are '-lglut': glut not found in /usr/local/lib glut not found in /lib '-lglut' found at /usr/lib/libglut.so.3.8.0 Writing Makefile for OpenGL::Simple::GLUT
Subject: E2.txt
cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fPIC "-I/usr/lib/perl/5.10/CORE" GLUT.c In file included from GLUT.xs:5: ppport.h:227:1: warning: "PERL_UNUSED_DECL" redefined In file included from GLUT.xs:2: /usr/lib/perl/5.10/CORE/perl.h:299:1: warning: this is the location of the previous definition GLUT.xs:8:21: error: GL/glut.h: No such file or directory GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutUseLayer’: GLUT.c:944: error: ‘GLenum’ undeclared (first use in this function) GLUT.c:944: error: (Each undeclared identifier is reported only once GLUT.c:944: error: for each function it appears in.) GLUT.c:944: error: expected ‘;’ before ‘layer’ GLUT.c:946: error: ‘layer’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutSetColor’: GLUT.c:1753: error: ‘GLfloat’ undeclared (first use in this function) GLUT.c:1753: error: expected ‘;’ before ‘red’ GLUT.c:1754: error: expected ‘;’ before ‘green’ GLUT.c:1755: error: expected ‘;’ before ‘blue’ GLUT.c:1757: error: ‘red’ undeclared (first use in this function) GLUT.c:1757: error: ‘green’ undeclared (first use in this function) GLUT.c:1757: error: ‘blue’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutGetColor’: GLUT.c:1774: error: ‘GLfloat’ undeclared (first use in this function) GLUT.c:1774: error: expected ‘;’ before ‘RETVAL’ GLUT.c:1779: error: ‘RETVAL’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutGet’: GLUT.c:1818: error: ‘GLenum’ undeclared (first use in this function) GLUT.c:1818: error: expected ‘;’ before ‘state’ GLUT.c:1820: error: ‘state’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutLayerGet’: GLUT.c:1840: error: ‘GLenum’ undeclared (first use in this function) GLUT.c:1840: error: expected ‘;’ before ‘info’ GLUT.c:1842: error: ‘info’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutDeviceGet’: GLUT.c:1862: error: ‘GLenum’ undeclared (first use in this function) GLUT.c:1862: error: expected ‘;’ before ‘info’ GLUT.c:1864: error: ‘info’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutSolidSphere’: GLUT.c:1925: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:1925: error: expected ‘;’ before ‘radius’ GLUT.c:1926: error: ‘GLint’ undeclared (first use in this function) GLUT.c:1926: error: expected ‘;’ before ‘slices’ GLUT.c:1927: error: expected ‘;’ before ‘stacks’ GLUT.c:1929: error: ‘radius’ undeclared (first use in this function) GLUT.c:1929: error: ‘slices’ undeclared (first use in this function) GLUT.c:1929: error: ‘stacks’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutWireSphere’: GLUT.c:1946: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:1946: error: expected ‘;’ before ‘radius’ GLUT.c:1947: error: ‘GLint’ undeclared (first use in this function) GLUT.c:1947: error: expected ‘;’ before ‘slices’ GLUT.c:1948: error: expected ‘;’ before ‘stacks’ GLUT.c:1950: error: ‘radius’ undeclared (first use in this function) GLUT.c:1950: error: ‘slices’ undeclared (first use in this function) GLUT.c:1950: error: ‘stacks’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutSolidCube’: GLUT.c:1967: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:1967: error: expected ‘;’ before ‘size’ GLUT.c:1969: error: ‘size’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutWireCube’: GLUT.c:1986: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:1986: error: expected ‘;’ before ‘size’ GLUT.c:1988: error: ‘size’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutSolidCone’: GLUT.c:2005: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:2005: error: expected ‘;’ before ‘base’ GLUT.c:2006: error: expected ‘;’ before ‘height’ GLUT.c:2007: error: ‘GLint’ undeclared (first use in this function) GLUT.c:2007: error: expected ‘;’ before ‘slices’ GLUT.c:2008: error: expected ‘;’ before ‘stacks’ GLUT.c:2010: error: ‘base’ undeclared (first use in this function) GLUT.c:2010: error: ‘height’ undeclared (first use in this function) GLUT.c:2010: error: ‘slices’ undeclared (first use in this function) GLUT.c:2010: error: ‘stacks’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutWireCone’: GLUT.c:2027: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:2027: error: expected ‘;’ before ‘base’ GLUT.c:2028: error: expected ‘;’ before ‘height’ GLUT.c:2029: error: ‘GLint’ undeclared (first use in this function) GLUT.c:2029: error: expected ‘;’ before ‘slices’ GLUT.c:2030: error: expected ‘;’ before ‘stacks’ GLUT.c:2032: error: ‘base’ undeclared (first use in this function) GLUT.c:2032: error: ‘height’ undeclared (first use in this function) GLUT.c:2032: error: ‘slices’ undeclared (first use in this function) GLUT.c:2032: error: ‘stacks’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutSolidTorus’: GLUT.c:2049: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:2049: error: expected ‘;’ before ‘innerRadius’ GLUT.c:2050: error: expected ‘;’ before ‘outerRadius’ GLUT.c:2051: error: ‘GLint’ undeclared (first use in this function) GLUT.c:2051: error: expected ‘;’ before ‘nsides’ GLUT.c:2052: error: expected ‘;’ before ‘rings’ GLUT.c:2054: error: ‘innerRadius’ undeclared (first use in this function) GLUT.c:2054: error: ‘outerRadius’ undeclared (first use in this function) GLUT.c:2054: error: ‘nsides’ undeclared (first use in this function) GLUT.c:2054: error: ‘rings’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutWireTorus’: GLUT.c:2071: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:2071: error: expected ‘;’ before ‘innerRadius’ GLUT.c:2072: error: expected ‘;’ before ‘outerRadius’ GLUT.c:2073: error: ‘GLint’ undeclared (first use in this function) GLUT.c:2073: error: expected ‘;’ before ‘nsides’ GLUT.c:2074: error: expected ‘;’ before ‘rings’ GLUT.c:2076: error: ‘innerRadius’ undeclared (first use in this function) GLUT.c:2076: error: ‘outerRadius’ undeclared (first use in this function) GLUT.c:2076: error: ‘nsides’ undeclared (first use in this function) GLUT.c:2076: error: ‘rings’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutSolidTeapot’: GLUT.c:2237: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:2237: error: expected ‘;’ before ‘size’ GLUT.c:2239: error: ‘size’ undeclared (first use in this function) GLUT.c: In function ‘XS_OpenGL__Simple__GLUT_glutWireTeapot’: GLUT.c:2256: error: ‘GLdouble’ undeclared (first use in this function) GLUT.c:2256: error: expected ‘;’ before ‘size’ GLUT.c:2258: error: ‘size’ undeclared (first use in this function) make: *** [GLUT.o] Error 1
I already figured out the problem. The freeglut development files were not installed. I would like to suggest that the build process look for the appropriate header files ahead of time, and report to the user which are missing.