Re: python library linkage with ctypes

2012-03-20 Thread Edd Barrett
On Tue, Mar 20, 2012 at 10:33:46AM +0100, Jonathan Armani wrote: > I think you want RTLD_GLOBAL flag, by default RTDL_LOCAL is used. > > >>> ctypes.CDLL("libGL.so", ctypes.RTLD_GLOBAL) > > >>> ctypes.CDLL("libGLU.so", ctypes.RTLD_GLOBAL) > That appears to be the ticket. Cheers -- Best Regards

Re: python library linkage with ctypes

2012-03-20 Thread Jonathan Armani
On Tue, Mar 20, 2012 at 09:02:13AM +, Edd Barrett wrote: > Hi, > > Having spoken to sthen and djm, I am still stuck on this, so I am posting on > ports, incase someone here knows. > > Im looking at porting something which uses ctypes to load first libGL and then > libGLU. Once we strip the gu

Re: python library linkage with ctypes

2012-03-20 Thread Marc Espie
On Tue, Mar 20, 2012 at 09:02:13AM +, Edd Barrett wrote: > Hi, > > Having spoken to sthen and djm, I am still stuck on this, so I am posting on > ports, incase someone here knows. > > Im looking at porting something which uses ctypes to load first libGL and then > libGLU. Once we strip the gu

python library linkage with ctypes

2012-03-20 Thread Edd Barrett
Hi, Having spoken to sthen and djm, I am still stuck on this, so I am posting on ports, incase someone here knows. Im looking at porting something which uses ctypes to load first libGL and then libGLU. Once we strip the gunk away, the library loading looks like this: ---8<--- import ctypes ctype