Chris, 
        See below...

On Thu, 2009-10-15 at 15:45 -0400, Chris Marshall wrote:

> On Thu 10/15/2009 2:31 PM, Judd Taylor wrote:
> >
> > I'm finally getting to testing this stuff
> > out, but now I'm getting the 'freeglut ...
> > font not found' error. I'm not even into the
> > PDL build yet. I get the error, and there is
> > no text displayed on the window. No point in
> > moving on to the PDL build if I won't be able
> > to render text...
> >
> > So some cruising online has made me think
> > that this is a problem with the freeglut lib
> > installed on my system. But, then I went and
> > found my build and test tree for freeglut
> > (2.4.0), and the fonts work fine on those
> > tests. I even went and modified the freeglut
> > test program on my system to use exactly the
> > same font as used on the test.pl script, and
> > that worked fine as well.
> 
> Judd-
> 
> Thanks for the testing.  I had been assuming that
> the problem was missing fonts on the problem systems
> but your check seems to eliminate that possibility.
> 
> I'm sort of leaning towards a version skew problem
> either between multiple GLUT and FreeGLUT installs
> on the same system or perhaps between 32bit and
> 64bit versions of the same or both...  Here are some
> questions/ideas to try:
> 
> (1) Do you have both GLUT and FreeGLUT on your system?
>     If so, freeglut.h might need to be substituted for
>     glut.h in OpenGL/glut_utils.h
> 

I think I just have GLUT. My /usr/include/GL/glut.h file just points to
freeglut_std.h. There's no other glut.h file on my system.



> (2) Do you have both 32 and 64 bit libraries on
>     your system?  If so, I would doubt that a 32-bit
>     pointer value would match the 64-bit stuff
> 


I have both, but I don't think there's much chance of a mixup there, the
pointers aren't even the same size, and I get no warnings about wrong
sized pointers in compiling any of this.



> (3) Could you try compilng PDL-2.4.4_136/bitmap.c
>     using the LIBS and INC flags from OpenGL::Config.pm?
>     If that fails then the problem is likely some
>     type of version skew between headers, libraries,
>     or both.
> 

[j...@black PDL]$ gcc -o bitfont -march=opteron -O3 -fPIC -I/usr/include
-I/usr/X11R6/include -I/usr/local/include -L/usr/lib64 -
L/usr/X11R6/lib64 -L/usr/local/lib64 -lglut -lGL -lglut -lGLU -lXext -
lXmu -lXi -lICE -lX11 -lm bitfont.c
[j...@black PDL]$ ./bitfont

Seems to work just fine.

Then I went in and added the other 4 fonts that I see defined in the
POGL pogl_const.h file: 
8 by 13
Helvetica 10
Helvetica 12
Helvetica 18

Then I recompiled, and it worked fine on all of the fonts as well.

Do you have a POGL version of that program to try?


> (4) Could you send me your OpenGL-0.59/Config.pm file
>     as well as the output of perl -V?  Maybe I can
>     glean something from there.
> 

$OpenGL::Config = {
                    'NAME' => 'OpenGL',
                    'LIBS' => '-L/usr/lib64 -L/usr/X11R6/lib64 -
L/usr/local/lib64 -lglut -lGL -lglut -lGLU -lXext -lXmu -lXi -lICE -lX11
-lm',
                    'INC' => '-I/usr/include -I/usr/X11R6/include -
I/usr/local/include',
                    'AUTHOR' => 'Bob \'grafman\' Free <grafman at
graphcomp.com>',
                    'DEFINE' => '-DHAVE_VER -DHAVE_FREEGLUT -DHAVE_GL -
DHAVE_GLU -DHAVE_GLUT -DHAVE_GLX -DGL_GLEXT_LEGACY',
                    'dynamic_lib' => {},
                    'OBJECT' => '$(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)',
                    'clean' => {
                                 'FILES' => 'Config.pm
utils/glversion.txt utils/glversion utils/glversion.o'
                               },
                    'LDFROM' => '$(OBJECT) ',
                    'OPTIMIZE' => '-march=opteron -O3 -fPIC',
                    'PM' => {
                              'OpenGL.pm' => '$(INST_LIBDIR)/OpenGL.pm',
                              'Config.pm' =>
'$(INST_LIBDIR)/OpenGL/Config.pm',
                              'OpenGL.pod' =>
'$(INST_LIBDIR)/OpenGL.pod'
                            },
                    'EXE_FILES' => [],
                    'VERSION_FROM' => 'OpenGL.pm',
                    'XSPROTOARG' => '-noprototypes'
                  };

Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.6.9-22.0.1.el, archname=x86_64-linux-thread-
multi
    uname='linux x8664-build.centos.org 2.6.9-22.0.1.el #1 thu oct 27
14:29:45 cdt 2005 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -m64 -Dversion=5.8.5 -
Dmyhostname=localhost -dperladmin=r...@localhost -Dcc=gcc -Dcf_by=Red
Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -
Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -
Dprivlib=/usr/lib/perl5/5.8.5 -Dsitelib=/usr/lib/perl5/site_perl/5.8.5 -
Dvendorlib=/usr/lib/perl5/vendor_perl/5.8.5 -
Darchlib=/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi -
Dsitearch=/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi -
Dvendorarch=/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
-Darchname=x86_64-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -
Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -
Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -
Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -
Uversiononly -Dpager=/usr/bin/less -isr -Dinc_version_list=5.8.4 5.8.3
5.8.2 5.8.1 5.8.0'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef 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='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-
strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -g -pipe -m64',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-
aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='3.4.4 20050721 (Red Hat 3.4.4-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='gcc', ldflags =''
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.4.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -
Wl,-rpath,/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Dec 20 2005 19:07:47
  @INC:
    /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi
    /usr/lib/perl5/5.8.5
    /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.5
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl/5.8.3
    /usr/lib/perl5/site_perl/5.8.2
    /usr/lib/perl5/site_perl/5.8.1
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.5
    /usr/lib/perl5/vendor_perl/5.8.4
    /usr/lib/perl5/vendor_perl/5.8.3
    /usr/lib/perl5/vendor_perl/5.8.2
    /usr/lib/perl5/vendor_perl/5.8.1
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl


> Apologies for the lack of insight.  It is remakably
> difficult (he remarks) to debug a problem that one
> cannot reproduce.
> 
> > So this has got to be a POGL issue, not
> > freeglut. Any ideas on what the cause might
> > be, or on how to fix it?
> >
> > I don't see anything special happening on the
> > linking and includes used for the freeglut
> > demo program, but I suspect the issue may lie
> > in how xsubpp is compiling POGL...
> 
> Perhaps, but my money is still on configuration
> issues since the rest of the module is just bindings
> to a C library.
> 
> Look forward to hearing from you.
> 
> Cheers,
> Chris

-- 
____________________________
Judd Taylor
Software Engineer

Orbital Systems, Ltd.
3807 Carbon Rd.
Irving, TX 75038-3415

[email protected]
(972) 915-3669 x127
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to