Hello,

I've been using PDL for one day. Everything works, except for the 3D
features, and I was hoping someone could help me get that working.

I'm using Ubuntu. I installed the GLUT development libraries with
apt-get, and then the OpenGL module from CPAN:

sudo cpan OpenGL

The compilation was successful and I even saw the little demo with some
3D images moving about. In addition, 'perl -e "use OpenGL;"' doesn't
give any errors.

However, I cannot get PDL::Graphics::TriD to work:

perl -e 'use PDL::Graphics::TriD;'
Bareword "GLUT_BITMAP_8_BY_13" not allowed while "strict subs" in use
at /usr/local/lib/perl/5.10.0/PDL/Graphics/TriD/GL.pm line 651. BEGIN
not safe after errors--compilation aborted
at /usr/local/lib/perl/5.10.0/PDL/Graphics/TriD/GL.pm line 909.
Compilation failed in require
at /usr/local/lib/perl/5.10.0/PDL/Graphics/TriD/Window.pm line 70.
BEGIN failed--compilation aborted
at /usr/local/lib/perl/5.10.0/PDL/Graphics/TriD/Window.pm line 70.
Compilation failed in require
at /usr/local/lib/perl/5.10.0/PDL/Graphics/TriD.pm line 514. BEGIN
failed--compilation aborted
at /usr/local/lib/perl/5.10.0/PDL/Graphics/TriD.pm line 514.
Compilation failed in require at -e line 1. BEGIN failed--compilation
aborted at -e line 1.


I can't find any way to re-install a module from cpan:

* I tried moving /usr/local/.../PDL/Graphics to another location but
  then when I run 'sudo cpan PDL::Graphics::TriD' that does nothing,
  and it does not re-build anything.

* I tried removing ~/.cpan/build/PDL* but CPAN still thinks that I have
  it installed and doesn't need to be rebuilt.

* I tried removing ~/.cpan/Metadata but no change.

* I just removed the entire ~/.cpan directory and I moved
  /usr/local/.../PDL to another location and finally cpan is
  rebuilding PDL. But now this is taking forever...


Sigh... Trying to get 3D graphics working with PDL has been a real pain
in the butt. I've wasted half of my day on this issue.

Daniel.

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

Reply via email to