Thanks for the feedback.  The issue is whether you
are using the old PDL::PP OpenGL code, or the new PDL + POGL
code *and* whether the OpenGL windows are created with
X11+GLX style or with GLUT.

Since OpenGL built and tested ok, you have that.  The
running test.pl indicates that you have GLUT working
with POGL.

PDL is currently set with USE_POGL => 1 for testing so
you'll be trying the new code.  However, the code is still
opening windows with X11+GLX rather than GLUT.  As a
result, if you don't have GLX installed on your Mac,
then the PDL won't work yet...  (Although, if you grab
the git from my latest push there is the first cut with
the GLUT windows.  On my test machine, the 3dtest.pl
window opens and displays but the twiddle() is not
working yet.)

I'll post to perldl when the event handling is finished.

Thanks for the testing and feedback,
Chris

P.S.  Look in Graphics/TriD/POGL/OpenGL.pm for the code
that sets OO window types with either glx or glut if you
want to see what is set where.


Matthew Kenworthy wrote:
> Hi Chris,
> 
> I thought I'd give the developer's version of PDL and TriD a go on a MacBook.
> 
> I've hit a bug in compiling PDL with OpenGL and TriD - since I messed
> up my mac perl installation somehow (my @INC contains references to
> perl 5.8.6 ad 5.8.8...) I decided to compile a local copy of perl from
> scratch and also pull down the latest PDL and POGL. I've documented
> the whole thing at:
> 
> http://mmtao.as.arizona.edu/~mattk/nelse/2009/09/28/compile_perl_from_scratch/
> 
> Essentially OpenGL compiles, and tests fine with the rotating teapots,
> but trying:
> 
> ../bin/perl -Mblib 3dtest.pl
> 
> gives:
> 
> $im3 has dims of 3 640 480
> get_current_window - creating window...
> PDL::Graphics::TriD::Window - calling SUPER::new...
> PDL::Graphics::TriD::Window - got back
> PDL::Graphics::TriD::Window=ARRAY(0xc9a5e0)
> PDL::Graphics::TriD::Window: calling gdriver....
> GL gdriver...
> Your vendor has not defined OpenGL macro GLX_DOUBLEBUFFER, used at
> /Users/mattk/myperl/PDL/blib/lib/PDL//Graphics//TriD//GL.pm line 601.
> AUTOLOAD: DESTROY at
> /Users/mattk/myperl/PDL/blib/lib/PDL/Graphics/TriD/Window.pm line 224.
> Window AUTOLOADing 'DESTROY':
> self=PDL::Graphics::TriD::Window=ARRAY(0xc9a5e0), args=''
> 
> ...so I'm not sure what to look for next.
> 
> Cheers,
> 
> Matt
> 
> --
> Matthew Kenworthy / Assistant Astronomer / Steward Observatory
> 933 N. Cherry Ave. / Tucson AZ 85721 / vox 520 626 6720
> 
> 
> ------------------------------------------------------------------------
> 
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.409 / Virus Database: 270.13.114/2401 - Release Date: 09/28/09 
> 17:53:00
> 


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

Reply via email to