On Fri, Oct 23, 2009 at 10:31:30AM -0400, Chris Marshall wrote:
> Henning Glawe writes:
> > In case of 'glut', I found two problems:
> >
> >  - no mouse interaction with the scene
> >  - window not resizable
> [...]
> * What version of FreeGLUT are you using?

freeglut3-dev 2.4.0-8


> * Could you please send the OpenGL-0.60/Config.pm file?

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
$OpenGL::Config = {
                    'NAME' => 'OpenGL',
                    'LIBS' => '-L/usr/lib -L/usr/local/lib -lGL -lglut -lGLU 
-lXext -lXmu -lXi -lICE -lX11 -lm',
                    'INC' => '-I/usr/include -I/usr/local/include',
                    'AUTHOR' => 'Bob \'grafman\' Free <grafman at 
graphcomp.com>',
                    'DEFINE' => '-DHAVE_VER -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' => undef,
                    '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'
                  };

1;
__END__
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

> * Did you try to run 3dtest.pl and line3d.pl with
>   the built PDL (e.g. perl -Mblib 3dtest.pl)?

same problems as with 'demo 3d': window not resizable, no interaction with
mouse in glut mode.


> * You can set $debug = 1 in PDL/Graphics/TriD/POGL/OpenGL.pm
>   to get more diagnostics.

done that in the copy in the blib tree, only lines are:

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
Creating GLUT OO window
freeglut (line3d.pl): Unable to create direct context rendering for window
'GLUT TriD'
This may hurt performance.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

(the chroot doesn't contain the fglrx/dri part, so this is not a problem).
what I realized just now: leaving the program running, then switching to
another virtual desktop (to continue this mail), then switching back results
in an non-redrawn GLUT TriD window.
Maybe theres a problem in the X event handling.


>   Uncommenting the debug_trid and
>   verbose lines in 3dtest.pl and line3d.pl will give still
>   more diagnostics.

here's the output for line3d.pl:
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
GObject new.. calling SUPER::new...
GObject new - back (SUPER::new returned 
PDL::Graphics::TriD::LineStrip=HASH(0x2feddd8))
GObject new - calling realcoords
DUMPING 0x1eafe70     datatype: 5
   State: (134) PARENTDATACHANGED|PARENTDIMSCHANGED|MYDIMS_TRANS
   transvtable: 0xd594e620, trans: 0x301afb0, sv: 0x2fe5e30
   Data SV: 0x2ba4000, Svlen: 1, data: 0x32df7a0, nvals: 0
   Dims: 0x1eaff44 (0)
   ThreadIds: 0x1eaff74 (1)
   (not allocated)
   DUMPTRANS 0x301afb0 (pdl_combcoords_vtable)
      State: (2) DO_DATAFLOW_F
      INPUTS: (0x1eb0550 0x32d7360 0x2fee880)     OUTPUTS: ( 0x1eafe70)
   CHILDREN:
GObject new - back from  realcoords
FETCHOPT: PDL::Graphics::TriD::LineStrip=HASH(0x2feddd8) 
LineWidth,1,UseDefcols,0
GObject new - returning
line3d: object is PDL::Graphics::TriD::LineStrip=HASH(0x2feddd8)
graph_object: calling get_new_graph
get_new_graph: calling PDL::Graphics::TriD::get_current_window...
get_current_window - creating window...
PDL::Graphics::TriD::Window - calling SUPER::new...
PDL::Graphics::TriD::Window - got back 
PDL::Graphics::TriD::Window=HASH(0x3002668)
PDL::Graphics::TriD::Window: calling gdriver....
GL gdriver...
STARTING OPENGL 300 300
gdriver: Calling OpengGL::OO(HASH(0x30495a0))...
Creating GLUT OO window
freeglut (line3d.pl): Unable to create direct context rendering for window 
'GLUT TriD'
This may hurt performance.
gdriver: Got OpenGL::OO object(GLUT window ID# 1)
gdriver: Calling glClearColor...
gdriver: Calling glpRasterFont...
gdriver: window_type => 'glut' so not actually setting the rasterfont
STARTED OPENGL!
PDL::Graphics::TriD::Window: gdriver gave back 1....
        It's interactive... calling ev_defaults...
        calling new_viewport...
Adding viewport 0,0,300,300
ARC: 300,300
PDL::Graphics::TriD::ArcCone 300,300
ARC: 300,300
Resized window: 300,300
PDL::Graphics::TriD::SimpleScaler 300,300
new_viewport: PDL::Graphics::TriD::ViewPort 0
get_current_window - calling set_material...
AUTOLOAD: set_material at 
/srv/pbuilder/persistent/pdl-glut/pdl-2.4.5~rc2/blib/lib/PDL/Graphics/TriD/Window.pm
 line 224.
Window AUTOLOADing 'set_material': 
self=PDL::Graphics::TriD::Window=HASH(0x3002668), 
args='PDL::Graphics::TriD::Material=HASH(0x2ffd410)'
get_new_graph: calling get_current_graph...
get_new_graph: back get_current_graph returned 
PDL::Graphics::TriD::Graph=HASH(0x30047f0)...
graph_object: back from get_new_graph
ADDED TO GRAPH: 'Data0'
display: calling glClear()
do_perspective 300 300
PDL::Graphics::TriD::Window 
(/srv/pbuilder/persistent/pdl-glut/pdl-2.4.5~rc2/blib/lib/PDL//Graphics//TriD//GL.pm,
 line 846)
PDL::Graphics::TriD::Window 
(/srv/pbuilder/persistent/pdl-glut/pdl-2.4.5~rc2/blib/lib/PDL//Graphics//TriD//GL.pm,
 line 751)
PDL::Graphics::TriD 
(/srv/pbuilder/persistent/pdl-glut/pdl-2.4.5~rc2/blib/lib/PDL/Graphics/TriD.pm, 
line 810)
PDL::Graphics::TriD 
(/srv/pbuilder/persistent/pdl-glut/pdl-2.4.5~rc2/blib/lib/PDL/Graphics/TriD.pm, 
line 652)
PDL::Graphics::TriD 
(/srv/pbuilder/persistent/pdl-glut/pdl-2.4.5~rc2/blib/lib/PDL/Graphics/TriD.pm, 
line 689)
main (line3d.pl, line 19)
 (, line )

display: transforming viewport!
CALLIST !
CHECKVALID PDL::Graphics::TriD::ViewPort=HASH(0x2febc08)
GENLIST 1
togl_axis: got object type PDL::Graphics::TriD::EuclidAxes
EGENLIST 1
VALID1 PDL::Graphics::TriD::ViewPort=HASH(0x2febc08)
display: SwapBuffers() call on return
EVENT!
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

that's all.


> > observed in 'perldl> demo 3d'
> >
> > My test environment:
> >
> > - Debian Lenny host system, fglrx drivers, window
> >   manager: awesome 3.4 (manually compiled)
> 
> * Could you please send perldl -V output from the glut
>   build system?

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
gl...@ruprecht:~/pdl-glut/pdl-2.4.5~rc2$ blib/script/perldl -Mblib -V 
perlDL shell v1.352
 PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file
 'COPYING' in the PDL distribution. This is free software and you
 are welcome to redistribute it under certain conditions, see
 the same file for details.

Summary of my PDL configuration

VERSION: PDL v2.4.5 (supports bad values)

$%PDL::Config = {
                  'BADVAL_PER_PDL' => '0',
                  'WITH_PROJ' => undef,
                  'FFTW_TYPE' => 'double',
                  'FFTW_LIBS' => [
                                   '/lib',
                                   '/usr/lib',
                                   '/usr/local/lib'
                                 ],
                  'WITH_FFTW' => undef,
                  'GSL_LIBS' => undef,
                  'GL_BUILD' => '0',
                  'WITH_IO_BROWSER' => '0',
                  'PROJ_INC' => undef,
                  'WHERE_PLPLOT_INCLUDE' => undef,
                  'WITH_KARMA' => '0',
                  'WHERE_KARMA' => undef,
                  'HTML_DOCS' => '1',
                  'WHERE_PLPLOT_LIBS' => undef,
                  'WITH_3D' => '1',
                  'FFTW_INC' => [
                                  '/usr/include/',
                                  '/usr/local/include'
                                ],
                  'POGL_VERSION' => '0.6',
                  'WITH_POSIX_THREADS' => '1',
                  'HIDE_TRYLINK' => '1',
                  'HDF_INC' => [
                                 '/usr/include/hdf'
                               ],
                  'WITH_HDF' => undef,
                  'POGL_WINDOW_TYPE' => 'glut',
                  'WITH_GD' => undef,
                  'WITH_BADVAL' => '1',
                  'FITS_LEGACY' => '1',
                  'F77CONF' => 
'/srv/pbuilder/persistent/pdl-glut/pdl-2.4.5~rc2/debian/f77conf.pl',
                  'WITH_SLATEC' => '1',
                  'BADVAL_USENAN' => '0',
                  'TEMPDIR' => '/tmp',
                  'PROJ_LIBS' => undef,
                  'USE_POGL' => '1',
                  'GD_LIBS' => undef,
                  'GSL_INC' => undef,
                  'GD_INC' => undef,
                  'OPTIMIZE' => undef,
                  'WITH_GSL' => undef,
                  'HDF_LIBS' => undef,
                  'MALLOCDBG' => {},
                  'WITH_PLPLOT' => '1',
                  'WITH_MINUIT' => '1',
                  'MINUIT_LIB' => undef
                };
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
   
  Platform:
    osname=linux, osvers=2.6.31-trunk-amd64, 
archname=x86_64-linux-gnu-thread-multi
    uname='linux madeleine 2.6.31-trunk-amd64 #1 smp tue sep 22 22:33:08 eest 
2009 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.1 
-Dsitearch=/usr/local/lib/perl/5.10.1 -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.1 
-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 -fstack-protector -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 
-fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.3.4', 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 =' -fstack-protector -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.9.so, so=so, useshrplib=true, libperl=libperl.so.5.10.1
    gnulibc_version='2.9'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib 
-fstack-protector'
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

> > - PDL build in a debian sid(unstable) chroot, /tmp
> >   bind-mounted in order to have the X11-socket
> >   available inside
> 
> * Is this a 64bit OS by any chance?

yes, I am both compiling and running on amd64/x86_64.

-- 
c u
henning

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

Reply via email to