Chris Marshall wrote:
> This is to announce the availability, via the PDL git
> repository, of a first cut version PDL with TriD using
> the perl OpenGL (a.k.a. POGL) module version 0.58_003
> to replace PDL::Graphics::OpenGL (the original, internal,
> PP version).
>
> The build configuration is hardwired with USE_POGL set
> in perldl.conf but it does compile correctly on cygwin/XP.
> I was able to run all the 3d demos from the perldl shell
> and even the Tk3d one (as long as I did not resize the
> window which caused the cygwin X server to crash).
>
> If you are interested in trying this out, some quick
> directions follow.  I would be *very* interested to
> hear feedback from build attempts and any tests you
> run.  It won't compile without an X infrastructure
> so MSWindows is out.  However, it should build and run
> on Mac OS X, linux, solaris, *bsd,... in theory.  Your
> feedback can make that a reality.
>
> STEPS:
>
> You need to install OpenGL-0.58_003 or later.  One place to download is
>    http://search.cpan.org/CPAN/authors/id/C/CH/CHM/OpenGL-0.58_003.tar.gz
>
>
> Get the latest pogl-merge branch from PDL git on sf.net:
>
> # Get a copy of the PDL repository
>    git clone git://pdl.git.sourceforge.net/gitroot/pdl/pdl PDL
>
> # Change to the clone
>    cd PDL
>
> # Checkout branch pogl-merge from sf.net repo to a local pogl-merge branch
>    git checkout --track -b pogl-merge origin/pogl-merge
>
> # Download the data
>    git pull
>
>
> Now you should be able to do the usual config/build process:
>
>    perl Makefile.PL
>    make
>    make test   # not all tests will pass due for new POGL/OpenGL
>
>
> Try to run some tests:
>
>    perl -Mblib 3dtest
>
>    perl -Mblib perldl
>      (then try demo 3d, 3d2, 3dgal, or Tk3d for the gutsy)
>
>
> Feedback welcome.  Enjoy!  --Chris
>   
32-bit Linux, Ubuntu Hardy (8.04) running Perl 5.8.8
========================
            Installing POGL (OpenGL-0.58_003):
$perl Makefile.PL
glversion.c:13:21: error: GL/glut.h: No such file or directory


freeglut3 2.4.0 package was already installed, so I added the -dev 
package.  This had a bunch of other -dev dependencies, X & mesa & the 
like.  I understand from the POGL docs that headers might not be 
required since they come with the module, but thought it might be useful 
anyway.

$ perl Makefile.PL verbose
$verbose set to 1
found libs:
    GL = 'GL'
    GLU = 'GLU'
    GLUT = 'glut'
    GLX = 'glx'
Testing for OpenGL Extensions
Testing GLUT version
glversion: cd utils;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT  
clean;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT
/usr/bin/ld: cannot find -lXi
collect2: ld returned 1 exit status
make: *** [glversion] Error 1

It can't find -lXi, but /usr/lib/libXi.so.6->/usr/lib/libXi.so.6.0.0 
exists.... ah, but for some reason there's no symlink libXi.so 
->libXi.so.6, so I added that.  Similar problem and solution for -lXmu.  
After that the Makefile was created just fine.

make was slow on my 4-year-old $300 desktop, but finished successfully.
make test was fun!

The only thing that didn't work as expected was that hitting the 'f' key 
didn't toggle the FBO field, whatever that does.  Otherwise rotation, 
lighting, zooming, blending, etc worked fine.  It went into fullscreen 
mode just fine, but didn't come out of it so well. After closing the 
window I had to drag my emacs window over some black spots it left on 
the screen.  But maybe that's just my crummy integrated graphics not 
being able to handle all that.

make install was fine.  I haven't installed OpenGL::Image or 
OpenGL::Shader yet.
========================
    Building PDL-2.4.4_09git pogl-merge branch

I moved my ~/.perldl.conf out of the way so it would use the one in the 
git repo.  Makefile and make were fine.

make test said:
t/vaffine...................ok  
t/xvals.....................ok  
All tests successful.
Files=109, Tests=1084, 56 wallclock secs ( 1.21 usr  0.16 sys + 36.76 
cusr  3.44 csys = 41.57 CPU)
Result: PASS

and then did the subdirs-test target:

make[3]: Entering directory `/home/derek/Build/PDL/Graphics/TriD/POGL'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, '../../../blib/lib', '../../../blib/arch')" t/*.t
t/00-load........1/1
#   Failed test 'use PDL::Graphics::OpenGL::Perl::OpenGL;'
#   at t/00-load.t line 6.
#     Tried to use 'PDL::Graphics::OpenGL::Perl::OpenGL'.
#     Error:  Can't locate auto/OpenGL/glpSetDebug.al in @INC (@INC 
contains: /home/derek/Build/PDL/Graphics/TriD/POGL/../../../blib/lib 
/home/derek/Build/PDL/Graphics/TriD/POGL/../../../blib/arch 
/home/derek/Build/PDL/Graphics/TriD/POGL/../../../blib/lib 
/home/derek/Build/PDL/Graphics/TriD/POGL/../../../blib/arch /etc/perl 
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 
/usr/local/lib/site_perl) at 
/home/derek/Build/PDL/Graphics/TriD/POGL/../../../blib/lib/PDL/Graphics/OpenGL/Perl/OpenGL.pm
 
line 52
# Compilation failed in require at (eval 2) line 2.
# BEGIN failed--compilation aborted at (eval 2) line 2.
# Testing PDL::Graphics::OpenGL::Perl::OpenGL 0.01_07, Perl 5.008008, 
/usr/bin/perl
# Looks like you failed 1 test of 1.
t/00-load........ Dubious, test returned 1 (wstat 256, 0x100)
 Failed 1/1 subtests
t/boilerplate....1/3 couldn't open Changes for reading: No such file or 
directory at t/boilerplate.t line 9.
# Looks like you planned 3 tests but only ran 1.
# Looks like your test died just after 1.
t/boilerplate.... Dubious, test returned 255 (wstat 65280, 0xff00)
 Failed 2/3 subtests
t/pod............skipped: Test::Pod 1.22 required for testing POD

Test Summary Report
-------------------
t/00-load    (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
t/boilerplate (Wstat: 65280 Tests: 1 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 3 tests but ran 1.
Files=3, Tests=2,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.16 cusr  
0.03 csys =  0.22 CPU)
Result: FAIL
Failed 2/3 test programs. 1/2 subtests failed.


$perl -Mblib 3dtest.pl

fails with the same "Can't locate auto/OpenGL/glpSetDebug.al in @INC" 
error, as does 'demo 3d', 3d2, etc.


Derek


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to