Dear Monks,

after an enervating installation-process including recompilation of gcc-2.95.3 to support f77 and several problems with lib-references and glx i finally succeeded in the installation of PDL v2.4.0 on my Linux-2.4.20-Athlon-System with perl, v5.8.0 built for i686-linux-thread-multi.

As a reward i now want to enjoy a visual pleasant 3D-Plot which i saw in a PC-journal. The plot should show a 3d-function in three partially coloured lattice-levels on top of each other.

#!/usr/bin/perl use strict; use warnings; use PDL; use PDL::Graphics::TriD; my $size = 25; # compute coordinates of the surface my $x = (xvals zeroes $size+1, $size+1)/$size; my $y = (yvals zeroes $size+1, $size+1)/$size; my $z = 0.5 + 0.5 * (sin($x*6.3) * sin($y*6.3)) ** 3; # coordinates determ color my $r=$x; my $g=$y; my $b=$z; # create 3d-plot imag3d [$x,$y,$z]; hold3d(); # ... colored surface above imag3d_ns [$x,$y,$z], [$r,$g,$b]; # ... colored lattice below lattice3d [$x,$y,$z-1], [$r,$g,$b];
Unfortunately all i get is
# perl pdl perl: error while loading shared libraries: /usr/local/lib/perl5/site_ +perl/5.8.0/i686-linux-thread-multi/auto/PDL/Graphics/OpenGL/OpenGL.so +: undefined symbol: gluOrtho2D
Any suggestions ?

thanks in advance, tos

p.s.: which documation would you recommend for piddle-newbies ?


In reply to PDL-problem: undefined symbol: gluOrtho2D by tos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.