Menu

#63 Unable to get the 3d demos

critical
closed-fixed
nobody
other (94)
5
2014-08-17
2003-06-16
Anonymous
No

When I run demo under perldl, I got the followin message:
---- Code:
# Number of subdivisions for lines / surfaces.
$size = 25;

$cz = (xvals zeroes $size+1) / $size; # interval 0..1
$cx = sin($cz*12.6); # Corkscrew
$cy = cos($cz*12.6);
line3d [$cx,$cy,$cz]; # Draw a line
# [press 'q' in the graphics window when done]
---- Output:
----
----
OOPS!!! Something went wrong, please make a bug report!:
Undefined subroutine
&PDL::Graphics::TriD::ViewPort::gluOrtho2D called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/PDL//Graphics//TriD//GL.pm
line 903, <> line 1.

PDL::Graphics::TriD::ViewPort::highlight('PDL::Graphics::TriD::ViewPort=ARRAY(0x8b7d4a8)')
called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/PDL//Graphics//TriD//GL.pm
line 928

PDL::Graphics::TriD::ViewPort::do_perspective('PDL::Graphics::TriD::ViewPort=ARRAY(0x8b7d4a8)')
called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/PDL//Graphics//TriD//GL.pm
line 776

PDL::Graphics::TriD::Window::display('PDL::Graphics::TriD::Window=ARRAY(0x8b7cce0)')
called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/PDL//Graphics//TriD//GL.pm
line 692

PDL::Graphics::TriD::Window::twiddle('PDL::Graphics::TriD::Window=ARRAY(0x8b7cce0)')
called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/PDL/Graphics/TriD.pm
line 797
PDL::Graphics::TriD::twiddle_current() called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/PDL/Graphics/TriD.pm
line 647

PDL::Graphics::TriD::graph_object('PDL::Graphics::TriD::LineStrip=ARRAY(0x8b7d2ec)')
called at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/PDL/Graphics/TriD.pm
line 681

Which repeats for every itme of the demo.

PDL versrion 2.4.0, downloaded fro cpan.
Running on i586 machine:
Perl version 5.8.0
Linux Mandrake 9.0

Thanks for this wonderfulll module!

Submitted by edepagne@eso.org

Discussion

  • Jim Edwards

    Jim Edwards - 2003-06-16

    Logged In: YES
    user_id=28222

    When I've seen this in the past, its helped to look back at
    the output from configure. It looks like the connection to
    your opengl package wasn't properly built.

     
  • Nobody/Anonymous

    Logged In: NO

    add

    OPENGL_DEFINE => '-DGLAPI=extern',
    to your perldl.conf and rebuild.

    The mesa-GLU headers define GLAPI to empty per default, so
    that the opengl.pd script in Graphics/TriD/OPENGL decides
    not to export any functions defined in glu.h

    Bjoern.Pedersen@frm2.tum.de

     
  • Craig DeForest

    Craig DeForest - 2003-11-22
    • status: open --> closed-fixed
     
  • Craig DeForest

    Craig DeForest - 2003-11-22

    Logged In: YES
    user_id=20200

    Bug fixed in CVS.
    Thanks for reporting the problem!

     
  • Craig DeForest

    Craig DeForest - 2003-11-22

    Logged In: YES
    user_id=20200

    I added a 'strings' check to the Makefile.PL in
    Graphics::TriD -- if you have not set the OPENGL options in
    perldl.conf, and it appears that the located library is Mesa
    rather than some external GL driver, OPENGL_DEFINE defaults
    to '-DGLAPI=extern'.

    This is sort of a kludge since I don't have firsthand
    experience of the bug. Here's hoping it avoids this sort of
    thing in future.

     

Log in to post a comment.