|
|
Perl OpenGL Installation
POGL depends on Perl; 5.8.x is recommended.
On X11 platforms, update your X11 libs.
Install the latest OpenGL drivers for your platform and video card.
Install FreeGLUT (or compatible); FreeGLUT libraries may be downloaded from
freeglut.sourceforge.net.
Build/install POGL.
If you plan to use ImageMagick with OpenGL::Image, you need to install
ImageMagick first.
Version 6.3.5 or newer is strongly recommended to leverage new POGL APIs added to PerlMagick.
Note: If you simply need to load/save Targa files (uncompressed RGBA),
you can use the default Targa driver that comes with OpenGL-Image (v0.00_2 or newer) -
there's no need to install ImageMagick.
Build/Install OpenGL-Image.
Build/Install OpenGL-Shader.
Windows:
It is recommended that you install POGL via
ActivePerl PPM Binaries,
and skip all the steps below.
If you prefer to build from source, you'll need VC++ 6.
Download the source; extract as appropriate.
Read the and the files applicable to your installation.
For standard installations on supported platforms,
use the following instructions for all POGL packages (OpenGL, OpenGL-Image. OpenGL-Shader):
Note: for Windows, use instead of , and omit .
Read the following for more detailed build information.
OpenGL libraries and GPU drivers are named and located in different places on various platforms;
The POGL team has made every effort to support a broad range of platforms and
OpenGL installations... however - for some older cards, and for
platforms that have not been tested with POGL,
you may need to modify library names and locations in .
You can add libs to .
You can add lib search directories to .
You can add include file search directories to .
You may also need to modify the function.
If you succeed in getting to work on an unsupported platform,
please send notes, patches and test.pl console output to the
POGL team.
If you wish to install POGL to an alternate location, you can add the following Makefile.PL options:
Where is the alternative location.
Note: if you use alternative installations, you need to let Perl know where they are.
This can be done through any of the following methods:
Reconfiguring Perl global variable
Setting your environment variable
If using mod_perl, add in your startup code
Adding use lib 'DESTFOLDER'; to your Perl code
Run:
If you have GLUT installed, this will build a utility, which will query your
OpenGL installation and determine what version and extensions it supports.
From this, will create a header file that will be
used to exclude features not supported by your installation. You can edit this file
to override or add feature support.
If you intend to build a distributable binary (eg: an ActivePerl PPM), delete the contents of this
file (but do not delete the file).
At this point, you may see a bunch of warnings indicating possible missing files.
This is atempting to guess where all your libs are.
Unless you see , you are probably OK. If you see this message,
or if no makefile is created, then was unable to locate your OpenGL libs;
try the steps for Unsupported Platforms and Cards above.
If you get past this point, has created a makefile appropriate for
your platform and OpenGL installation.
Run: (use on Windows)
Depending on your libs and header files, you may see some compile warnings during the
build process. If you get a build error, try the steps for Unsupported Platforms and Cards above.
If you get a link error, send your console output, OS/version, and OpenGL lib names/locations
to the POGL team
for investigation.
Run: (use on Windows)
This will attempt to run test.pl - which depends on GLUT; if you do not have GLUT
installed, this will fail.
Note: if you have an X11-based system, you may be able to use POGL with
glpOpenWindow instead of GLUT. Most of the sample code in the
folder of POGL's source distribution (eg: ) use glpOpenWindow, instead
of GLUT. If these run, you can still use POGL, but won't be able to use any of
the GLUT APIs. It is strongly recommended that you install GLUT to simplify
the installation and testing process.
If you have the latest version of GLUT installed and fails to run,
send your console output, OS/version, and OpenGL lib names/locations
to the POGL team
for investigation.
If runs (you should see a spinning cube), then hit or
(note: the test window must have keyboard focus).
Run: (use on Windows)
If you encounter installation problems,
send your console output, OS/version, and OpenGL lib names/locations
to the POGL team
for investigation.
|
|
|
|
|
|