beproudstandupcom / pyglet

Automatically exported from code.google.com/p/pyglet
0 stars 0 forks source link

LD_LIBRARY_PATH ignored on Linux #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ctypes.utils.find_library appears not to use LD_LIBRARY_PATH.  If someone
else can confirm this (i.e. on a non-Gentoo/64 box) I'll write an
alternative find function for pyglet like we did with OS X.

Original issue reported on code.google.com by Alex.Hol...@gmail.com on 5 Aug 2007 at 1:46

GoogleCodeExporter commented 9 years ago
The trick is to use dlopen (cdll.LoadLibrary) directly, rather than calling
find_library.  pyglet.lib now attempts to LoadLibrary, and only uses 
find_library if
that fails (fixed in r1107).  For this to be useful, libraries should be 
specified as
"libfoo.so", rather than "foo" (fixed in r1108).

Original comment by Alex.Hol...@gmail.com on 6 Aug 2007 at 12:28