|parrotcode: Probe for OpenGL, GLU, and GLUT libraries|
|Contents | Configuration|
config/auto/opengl.pm - Probe for OpenGL, GLU, and GLUT libraries
Determines whether the platform supports OpenGL, GLU and GLUT. The optimal result at this time is to find OpenGL 2.1, GLU 1.3, and GLUT API version 4.
You will typically need to install the headers and libraries required for compiling OpenGL/GLU/GLUT applications as a separate step in addition to the base development tools for your platform. The following sections detail the steps needed to add OpenGL support for each platform for which we have received this information -- details for additional platforms are welcome!
You will need to install the OpenGL Framework and the GLUT Framework. With these in place, everything else should be autodetected. Mac OS X uses a proprietary GLUT variant that supports more functions than standard GLUT 3.7, but fewer than freeglut.
Linux distributions typically use freeglut (http://freeglut.sourceforge.net/) for GLUT support, and Mesa (http://www.mesa3d.org/) for GLU support. Either the Mesa headers (for open source drivers) or the vendor headers (for closed source drivers) can be used for core OpenGL/GLX support. Here are the package names for various distributions; installing each of these will typically pull in a number of prerequisites as well:
On Windows, Parrot supports three different compiler environments, each of which has different requirements for OpenGL support:
XXXX: No details yet
The Cygwin/w32api for native opengl support
-lglut32 -lglu32 -lopengl32
Requires a X server.