Menu

#32 freeglut lacks GLUT_XLIB_IMPLEMENTATION on fedora

v2.1
closed
GLUT (2)
5
2004-09-11
2004-09-08
Anonymous
No

i added to "glut.h" from freeglut-2.2.0 on fedora:
#define GLUT_XLIB_IMPLEMENTATION 15
because only GLUT_API_VERSION is defined
and then all worked fine ( PyCg :) )

perhaps something like

#ifdef __FREEGLUT_STD_H__
#define GLUT_XLIB_IMPLEMENTATION 15
#endif

is needed somewhere ?

paul ( admin@robinson.ma )

Discussion

  • Mike C. Fletcher

    • assigned_to: nobody --> mcfletch
    • status: open --> closed
     
  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    I'd prefer to make it a functional test, so:

    #ifndef GLUT_XLIB_IMPLEMENTATION
    #define GLUT_XLIB_IMPLEMENTATION 15
    #endif

    but I'd rather not do that without knowing what is going on.
    You see, the definition of GLUT_XLIB_IMPLEMENTATION is:

    #define GLUT_XLIB_IMPLEMENTATION API_VERSION

    in glut.i *of PyOpenGL*, so the most likely reason for
    failure is that compilation of the API-version test-script
    has failed due to not finding freeglut headers/libraries.

    I checked in a fix yesterday that may very well have fixed
    this problem, basically it just adds the configured lib and
    header libraries to the API-version test-script compilation.

    Marking this pending for right now, as if my guess is
    correct it should be fixed by that change.

     

Log in to post a comment.