Hi Chris,
Thanks for the reply.
Sorry for my late reply. I was checking the versions with Kpackage (too)
late at night, I managed to completely remove KDE....
Anyhow, it is re-installed now.
Here are the data you requested to get more insight into the problem:
Please find the example script attached. I mainly copied the code from
the test.pl
perl polys1.pl gives:
freeglut (polys1.pl): font 0x949c6c20 not found
The font I call in the sample program is GLUT_BITMAP_HELVETICA_18
According to the GLUT specs this is:
-adobe-helvetica-medium-r-normal--18-180-75-75-p-98-iso8859-1
xfontsel shows me this font when I specify it. So it is on the system, I
presume.
Other opengl perl apps work fine.
kernel:
2.6.26-2-amd64
KDE:
5:48
OpenGL:
1.4 Mesa 7.0.4
Kernel module:
i915
GLU version:
1.3
freeglut3(-dev)
2.4.0-6.1
per -V:
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.26-1-vserver-amd64,
archname=x86_64-linux-gnu-thread-multi
uname='linux excelsior 2.6.26-1-vserver-amd64 #1 smp sat nov 8
20:24:14 utc 2008 x86_64 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN
-Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr
-Dprivlib=/usr/share/perl/5.10 -Darchlib=/usr/lib/perl/5.10
-Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5
-Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local
-Dsitelib=/usr/local/share/perl/5.10.0
-Dsitearch=/usr/local/lib/perl/5.10.0 -Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1
-Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl
-Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio
-Uusenm -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib
-Dlibperl=libperl.so.5.10.0 -Dd_dosuid -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O2 -g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing
-pipe -I/usr/local/include'
ccversion='', gccversion='4.3.2', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/libc-2.7.so, so=so, useshrplib=true, libperl=libperl.so.5.10.0
gnulibc_version='2.7'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Jan 1 2009 15:42:01
@INC:
/etc/perl
/usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.10.0
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.10
/usr/share/perl/5.10
* Full OpenGL module information especially the
value of $OpenGL::VERSION. Also good would
be the Config.pm file from the build/test/install
as that has arguments used to compile.
I had perl OpenGL installed with KPackage(manager)
version: libopengl-perl 0.56.dfsg.1-2+b1
source libopengl-perl (0.56.dfsg.1-2)
So this is too old.
I downloaded 0.57.
This is the output for
perl Makefile.PL interface=FREEGLUT verbose
found libs:
GL = 'GL'
GLU = 'GLU'
GLUT = 'glut'
GLX = 'glx'
MESA = 'OSMesa'
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
No protocol specified
freeglut (./glversion): failed to open display ':0.0'
make: *** [glversion.txt] Error 1
rm -f glversion.txt
rm -f glversion
rm -f glversion.o
cc -I/usr/include -I/usr/X11R6/include -I/usr/local/include
-I/usr/openwin/include -DHAVE_GLUT -c glversion.c
cc glversion.o -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib
-L/usr/openwin/lib -L/usr/lib/xorg/modules -L/usr/X11R6/lib/modules
-L/usr/lib/xorg/modules/extensions -L/usr/X11R6/lib/modules/extensions
-lGL -lglut -lGLU -lXi -lXmu -lXext -lX11 -lm -o glversion
chmod u+x glversion
./glversion > glversion.txt
FREEGLUT interface requires FreeGLUT
Falling back to the GLUT interface
Using interface: GLUT
resulting libs:
GL = 'GL'
GLU = 'GLU'
GLUT = 'glut'
GLX = 'glx'
MESA = 'OSMesa'
MakeMaker configuration:
AUTHOR => q[Bob 'grafman' Free <grafman at graphcomp.com>]
DEFINE => q[ -DHAVE_GL -DHAVE_GLU -DHAVE_GLUT -DHAVE_MESA
-DGL_GLEXT_LEGACY]
EXE_FILES => []
INC => q[-I/usr/include -I/usr/local/include]
LDFROM => q[$(OBJECT) ]
LIBS => q[-L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib
-L/usr/openwin/lib -L/usr/lib/xorg/modules -L/usr/X11R6/lib/modules
-L/usr/lib/xorg/modules/extensions -L/usr/X11R6/lib/modules/extensions
-lGL -lOSMesa -lglut -lGLU]
NAME => q[OpenGL]
OBJECT => q[$(BASEEXT)$(OBJ_EXT) gl_util$(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[utils/glversion.txt utils/glversion
utils/glversion.o] }
dynamic_lib => { }
Using PERL=/usr/bin/perl
Potential libraries are '-L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib
-L/usr/openwin/lib -L/usr/lib/xorg/modules -L/usr/X11R6/lib/modules
-L/usr/lib/xorg/modules/extensions -L/usr/X11R6/lib/modules/extensions
-lGL -lOSMesa -lglut -lGLU':
-L/usr/X11R6/lib ignored, directory does not exist
-L/usr/openwin/lib ignored, directory does not exist
-L/usr/X11R6/lib/modules ignored, directory does not exist
-L/usr/X11R6/lib/modules/extensions ignored, directory does not exist
'-lGL' found at /usr/lib/libGL.so.1.2
'-lOSMesa' found at /usr/lib/libOSMesa.so.6.5.3
'-lglut' found at /usr/lib/libglut.so.3.8.0
'-lGLU' found at /usr/lib/libGLU.so.1.3.070004
Writing Makefile for OpenGL
I hope that this info helps a bit ....
Thanks agian.
Regards,
Wim de Vries
Chris Marshall via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=47767 >
>
> Please confirm that you are using OpenGL-0.57_01
> If not, then you'll need to install that version
> as it may have a fix for your problem.
>
> If you still have a problem, you'll need to
> submit more complete information for diagnosis.
> A bug report should include (at a minimum):
>
> * A minimal way to reproduce the problem, such
> as sample code (as short as possible). If
> we cannot reproduce the problem we cannot help.
>
> * Full perl configuration information from the
> output of perl -V
>
> * Full OpenGL module information especially the
> value of $OpenGL::VERSION. Also good would
> be the Config.pm file from the build/test/install
> as that has arguments used to compile.
>
> Good luck,
> Chris
>
> P.S. Is this still test.pl failing?
>
> On Wed Aug 19 11:42:51 2009, wsvries@xs4all.nl wrote:
>
>> Hi Chris,
>> After solving another OpenGL problem I went back to the fonts.
>> I am now getting glutBitmapCharacter(GLUT_HELVETICA_10,'3')
>>
>>> "Bareword "GLUT_HELVETICA_10" not allowed
>>> while "strict subs" in use".
>>>
>> Still functions like glutInit() do work.
>>
>
>