Re: [ctypes-users] LoadLibrary fails with libglut.so on linux
Brought to you by:
theller
From: Leonard \paniq\ R. <pa...@pa...> - 2005-10-25 17:38:01
|
i just installed ctypes fresh from anon cvs, but your example code isnt working. ctypes.util.find_library seems to be ctypes.util.findLib now, ctypes.RTLD_GLOBAL does not exist. ctypes.CDLL does not have a keyword named 'name' On Tue, 2005-10-25 at 12:52 -0400, Mike C. Fletcher wrote: > > > You need to load the dependencies with the global loading flag. This > will require a CVS version of ctypes: > > GL = OpenGL = ctypes.CDLL( > ctypes.util.find_library('GL'), > mode=ctypes.RTLD_GLOBAL > ) > GLU = ctypes.CDLL( > ctypes.util.find_library('GLU'), > mode=ctypes.RTLD_GLOBAL > ) > # glut shouldn't need to be global, but just in case a dependent library > makes > # the same assumption GLUT does... > GLUT = ctypes.CDLL( > ctypes.util.find_library('glut'), > mode=ctypes.RTLD_GLOBAL > ) > GLE = ctypes.CDLL( > ctypes.util.find_library('gle'), > mode=ctypes.RTLD_GLOBAL > ) > > HTH, > Mike > -- -- leonard "paniq" ritter -- http://www.mjoo.org -- http://www.paniq.org |