if lib_glu:\r
self.glu = CDLL(lib_glu, RTLD_GLOBAL)\r
if lib_glut:\r
- self.glut = CDLL(lib_glut)\r
+ # On some systems, additional libraries seem to be\r
+ # required, loading glut fails with\r
+ # "OSError: /usr/lib/libglut.so.3: undefined symbol: XGetExtensionVersion"\r
+ # I cannot figure out how to repair the test on these\r
+ # systems (red hat), so we ignore it when the glut or gle\r
+ # libraries cannot be loaded. See also:\r
+ # https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1478253&group_id=5470\r
+ # http://mail.python.org/pipermail/python-dev/2006-May/064789.html\r
+ try:\r
+ self.glut = CDLL(lib_glut)\r
+ except OSError:\r
+ pass\r
if lib_gle:\r
- self.gle = CDLL(lib_gle)\r
+ try:\r
+ self.gle = CDLL(lib_gle)\r
+ except OSError:\r
+ pass\r
\r
if lib_gl:\r
def test_gl(self):\r