Henning Glawe wrote:
>
>> $DEFS .= " -DHAVE_FREEGLUT -DHAVE_FREEGLUT_H";
>>
>> works ok as well. That seems like it might address some of the
>> other freeglut.h include file problems that have been seen.
>
> works; attached a new version of the patch, which also overrides
> $found_libs->{FREEGLUT} only in case it was not defined before.
Ok.
> a small cosmetical problem that I observed is: the option interface=FREEGLUT
> leads nevertheless to a message 'FREEGLUT interface requires FreeGLUT,
> Falling back to the GLUT interface' (although freeglut is actually used).
Yes, the interface argument handling (existence) needs work.
They were put in before the config detection got more reliable.
Now, they are pretty much obsolete and should not be required.
> Reason for this is: my patch is in a section of the Makefile.PL that comes
> _after_ the interface selection, but contains all necessary infrastructure
> for the header check. For a cleaner solution, the Makefile.PL would have to
> be restructured.
I'm planning to clean up the OpenGL Makefile.PL a bit more, along
the lines of adding the ability to explicitly set the required
defines, libs, etc. Beyond that, I'm looking at moving to a
Module::Build implementation to simplify the makefile juggling.
The headers and libraries detection could use something like
Devel::CheckLib (soon to be a more generic version of our PDL
trylink() utilities). The OpenGL library interface would be
structured around GLee or GLEW.
Thanks much for the feedback and patches,
Chris
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl