#253 SciPDL 2.4.7 imag2d fails

closed-fixed
other (94)
3
2011-01-03
2010-12-18
Chris Marshall
No

Trying out new 2.4.7 features on OS X

I get

pdl> imag2d rvals(200,200)
Your vendor has not defined OpenGL macro GLUT_ACTION_ON_WINDOW_CLOSE, used at /Library/Perl/5.10.0/darwin-thread-multi-2level/PDL/Graphics2D.pm line 531.

Discussion

  • Chris Marshall
    Chris Marshall
    2010-12-18

    This is a FreeGLUT-ism but on the OS X platform
    we're using the native Apple GLUT implementation.
    If you comment out line 531 which reads:

    glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE,GLUT_ACTION_CONTINUE_EXECUTION);

    do things then work for you? It goes to show
    how difficult it is to debug even "easy" problems
    without on-platform testing...

     
  • Chris Marshall
    Chris Marshall
    2010-12-18

    • labels: --> other
    • priority: 5 --> 3
    • assigned_to: nobody --> marshallch
     
  • Chris Marshall
    Chris Marshall
    2010-12-18

    NOTE: the PDL OpenGL/TriD user should not need to
    conditionalize their code unless absolutely necessary.
    It should be possible to make this operation a NO-OP
    for OS X, transparently.

     
  • Yes commenting out that line fixes it.

     
  • Chris Marshall
    Chris Marshall
    2010-12-20

    Research into Apple GLUT vs FreeGLUT shows
    that these macro/constant values are FreeGLUT
    specific so checking for FreeGLUT in the
    program before using them is reasonable.

    The code is fixed in git and I've made a note
    to make specific the FreeGLUT versus Apple
    GLUT versus standard GLUT routines and
    constants in the future Perl OpenGL development.

     
  • Chris Marshall
    Chris Marshall
    2010-12-20

    • status: open --> pending-fixed
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-fixed --> closed-fixed