On 09/08/2009, Orion P wrote:
>
> On 09/06/2009 02:29 PM, Chris Marshall wrote:
> > OpenGL-0.58 has been released to PAUSE and
> > should be
>
> It appears to be impossible to build an RPM
> package of the perl OpenGL package because
> DISPLAY is not set:
>
> Executing(%build): /bin/sh -e /tmp/rpm/rpm-tmp.CwAQ7q
> + umask 022
> + cd /export/home/orion/redhat/perl-OpenGL-0.58
> + cd OpenGL-0.58
> + LANG=C
> + export LANG
> + unset DISPLAY
> + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -g -pipe -Wall 
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
> --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic 
> -fasynchronous-unwind-tables' dist=NO_EXCLUSIONS freeglut (./glversion): 
> failed to open display ''
> make: *** [glversion.txt] Error 1
>
> Is there some way around this?

The Perl OpenGL module does build-time OpenGL
configuration and uses the output from the
glversion program to determine which OpenGL
features to compile perl bindings to.

A hack-around that should work would be 

(1) Run the build manually on a redhat
    system with an active display to
    produce the needed utils/ glversion.txt
    info file.

(2) Extract a clean copy of OpenGL-0.58 and
    copy the above utils/glverson.txt file
    into that OpenGL-0.58/utils.
    
(3) Edit Makefile.PL to comment out the line
    unlinking a pre-existing utils/glversion.txt
    file, line #752 or thereabouts.
    
(4) Now the configure and build should be
    able to proceed using the offline generated
    glversion.txt file.
    
Plans for the future include enabling a link-only
build capability for OpenGL and, eventually,
dynamic probing for valid OpenGL extensions for
binding.

Hope this helps,
Chris
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to