#69 Build failures on cygwin

v2.0.1
open
nobody
build (28)
6
2003-02-14
2003-02-14
Mike C. Fletcher
No

The cygwin build appears to be broken (not sure when
the last time it was run was). There are also lots of
warnings generated, mostly "warning: function
declaration isn't a prototype". Those should get
fixed. Note that I had to add /bin to the cygwin.cfg
lib-path, and /usr/include to the include path to get
anything at all to compile.

Discussion

  • Logged In: YES
    user_id=457326

    After much hair-pulling I got PyOpenGL-2.0.1.02 to build
    under cygwin. I had to make the following changes:
    1) Change all occurences of PyExc_WindowsError back to
    PyExc_OSError in the files
    interface/WGL/util.inc
    src/interface/WGL.ARB.buffer_region.0100.inc
    src/interface/WGL.ARB.extensions_string.0100.inc
    src/interface/WGL.EXT.extensions_string.0100.inc
    src/interface/WGL.EXT.swap_control.0103.in
    src/interface/WGL.__init___.0400.in
    2) I got a ton of errors in the file
    src/interface/GLU.__init___.0103.inc
    The first is that the function gluUnProject4 has an
    issue with its parameter list.
    The second theme is that for some reason a host of
    functions are not found at link time:
    gluCheckExtension
    __gluUnProject4
    gluBuild3DMipmaps
    gluBuild3DMipmapsb
    gluBuild3DMipmapsub
    gluBuild3DMipmapss
    gluBuild3DMipmapsus
    gluBuild3DMipmapsi
    gluBuild3DMipmapsui
    gluBuild3DMipmapsf
    gluBuild1DMipmapLevels
    gluBuild1DMipmapLevelsb
    gluBuild1DMipmapLevelsub
    gluBuild1DMipmapLevelss
    gluBuild1DMipmapLevelsus
    gluBuild1DMipmapLevelsi
    gluBuild1DMipmapLevelsui
    gluBuild1DMipmapLevelsf
    gluBuild2DMipmapLevels
    gluBuild2DMipmapLevelsb
    gluBuild2DMipmapLevelsub
    gluBuild2DMipmapLevelss
    gluBuild2DMipmapLevelsus
    gluBuild2DMipmapLevelsi
    gluBuild2DMipmapLevelsui
    gluBuild2DMipmapLevelsf
    gluBuild3DMipmapLevels
    gluBuild3DMipmapLevelsb
    gluBuild3DMipmapLevelsub
    gluBuild3DMipmapLevelss
    gluBuild3DMipmapLevelsus
    gluBuild3DMipmapLevelsi
    gluBuild3DMipmapLevelsui
    gluBuild3DMipmapLevelsf
    gluNurbsCallbackData
    __gluNurbsCallbackDataEXT
    My solution was, unsubtly, to remove these functions
    from the file; each is mentioned in three places:
    a) the _xxx function,
    b) the _wrap_xxx function,
    c) the appropriate line in the SwigMethods list.
    d) the shadow wrapper file
    src/shadow/GLU.__init__.0103.py

    This bone-saw and bloodletting approach seems to have left
    me a useable build; I am able to render simple scenes and
    run the demos.