From: Patrick H. <pa...@13...> - 2004-08-16 18:44:23
|
On Mon, 2004-08-16 at 17:34 +0100, John Hodrien wrote: > On Mon, 16 Aug 2004, Patrick Hartling wrote: >=20 > > John Hodrien wrote: > >> How do you build the python bindings? I'm currently running: > >>=20 > >> scons EnablePython=3DTrue BoostPythonDir=3D/blah/ > >>=20 > >> But I'm not getting anything sensible built. What should I be running= to=20 > >> get > >> the python bindings out? > > > > That is the correct way to build the bindings. What results are you > > getting? >=20 > Right, I'm clearly not understanding what I'm doing enough, so I'll be mo= re > verbose. I'm not a python coder, that's something I'm needing to learn, = so > bear with any idiocy I put across. Sadly things are being done a little > backwards. >=20 > I've downloaded gmtl, untarred, and run > scons EnablePython=3DTrue BoostPythonDir=3D/blah/ >=20 > What should I expect to be created? I get a gmtl.so which is mammoth (16= 1Mb) > and nothing else I can see of merit. That's exactly what you should expect. That .so file can be loaded by Python as an extension. You just need to put it somewhere (/usr/lib/ pythonX.Y/site-packages is a likely place) that Python can find it at run time. You can also set the $PYTHONPATH environment variable to extend Python's module search path. -Patrick --=20 Patrick L. Hartling | Research Assistant, VRAC http://www.137.org/patrick/ | 2274 Howe Hall Room 2624 PGP: http://tinyurl.com/2oum9 | http://www.vrac.iastate.edu/ |