> ahales% perl -v
>
> This is perl, v5.8.9 built for darwin-2level
>
> I installed this manually, following Matthew's notes. I could not
> install using the original perl built in my Mac Intel (Leopard).

What exactly did not build with the standard Perl binary?  OpenGL and  
PDL work fine for me with the Apple-provided Perl, but I don't need  
any fancy PDL options at the moment (such as the infamous PGPLOT, or  
special Fortran libs).

OpenGL is supposed to use the standard OpenGL library in

        /System/Library/Frameworks/OpenGL.framework/

that ships with every Mac.  However, I'm beginning to suspect that we  
still need X11 to be installed in order to build (I wouldn't notice  
because I'd never touch a Mac without X11 :-).

Antonio, could you check whether you've got X11?  Recent discussions  
suggest that it's a standard part of the system since Leopard (before,  
you had to download it separately), but perhaps it's an optional  
install.  In particular, you need the directory

        /usr/X11/include/GL/

in order to build the Perl OpenGL module.  BTW, do you have the latest  
version of Leopard?

Best,
Stefan


PS: Chris, I remembered the reason why we're relying on X11 headers.   
The gl.h and glu.h header files are present in the OpenGL framework,  
but they're not contained in a GL/ subdirectory.  If we just use

        -I /System/Library/Frameworks/OpenGL.framework/Versions/Current/ 
Headers/

they aren't found by includes such as #include <GL/glu.h>.  In order  
to remove the dependency on X11 entirely, I suppose that we'd have to  
wrap every relevant #include in an #ifdef.  If you're willing to try  
this, I can set the right include paths in Makefile.PL and see if it  
works.

PPS: Antonio, if you want to get OpenGL / PDL up and running quickly,  
you'll probably have to install X11.  Just grab the latest version  
from http://xquartz.macosforge.org/ and run the installer.  But if you  
can wait for a little while, we may be able to fix the OpenGL module  
and it would be good to have someone (i.e. you) to confirm that it  
actually builds without any prerequisites.




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

Reply via email to