Hi Chris,
thanks for the great work on the OpenGL module!
On my Mac (Intel, OS X 10.5.8), the Makefile.PL bombs out when trying
to compile glversion in order to check available extensions. This is
due to the following line in utils/Makefile.macosx:
CCFLAGS=-I../include -I/usr/X11/include
which forces the compiler to use Microsoft header files (in particular
glu.h) from local include/GL/ to be used instead of the proper system
header files. If I change the line to
CCFLAGS=-I/usr/X11/include -I../include
configuration and compilation run through without any problems. Is
the "-I../include" really needed? On my system, glversion builds
without it.
There's a second problem I didn't understand at first: "make test"
fails both available tests. Here's the relevant part of the error
message:
> t/01_use........1/1
> # Failed test 'use OpenGL;'
> # at t/01_use.t line 3.
> # Tried to use 'OpenGL'.
> # Error: Can't load '/Users/severt/.cpanplus/5.8.8/build/
> OpenGL-0.58/blib/arch/auto/OpenGL/OpenGL.bundle' for module OpenGL:
> dlopen(/Users/severt/.cpanplus/5.8.8/build/OpenGL-0.58/blib/arch/
> auto/OpenGL/OpenGL.bundle, 2): Symbol not found: _glutBitmapHeight
> # Referenced from: /Users/severt/.cpanplus/5.8.8/build/OpenGL-0.58/
> blib/arch/auto/OpenGL/OpenGL.bundle
> # Expected in: dynamic lookup
> # at (eval 2) line 2
>
This appears to be triggered by the setting "PERL_DL_NONLAZY=1" passed
by "make test". If I just load the module from the command line
perl -Mblib -e 'use OpenGL'
everything is fine, and "test.pl" as well as the other sample programs
in the main directory work as expected.
The "make test" failure is inconvenient because it prevents automatic
installation with CPANPLUS. Do you have an idea how critical the
error is? If it's a shortcoming in the OS X version of GLUT, would
there be a way to work around it?
Best regards,
Stefan Evert
[ [email protected] | http://purl.org/stefan.evert ]
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl