Horde3D http://horde3d.org/forums/ |
|
Problem with python bindings http://horde3d.org/forums/viewtopic.php?f=2&t=926 |
Page 1 of 1 |
Author: | prashanthellina [ 24.08.2009, 16:42 ] |
Post subject: | Problem with python bindings |
Hi, I compiled Horde3D sources on linux and installed the .so's in my lib location (source from SVN HEAD). After this I got the python-ctypes bindings (from SVN HEAD of http://mm-werkstatt.informatik.uni-augs ... n/horde3d/). When I try this, python -c "import horde3d" I get the following error, Traceback (most recent call last): File "<string>", line 1, in <module> File "horde3d/__init__.py", line 253, in <module> getVersionString = h3d.getVersionString File "/usr/lib/python2.6/ctypes/__init__.py", line 366, in __getattr__ func = self.__getitem__(name) File "/usr/lib/python2.6/ctypes/__init__.py", line 371, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: /usr/local/lib/libHorde3D.so: undefined symbol: getVersionString in __init__.py, I see this, getVersionString = h3d.getVersionString However in Horde3D.h, I see, DLL const char *h3dGetVersionString(); Does that not mean that the line in __init__.py should be, getVersionString = h3d.h3dGetVersionString ? Am I doing something wrong? Thanks in advance, Prashanth |
Author: | Volker [ 24.08.2009, 19:47 ] |
Post subject: | Re: Problem with python bindings |
The community branch is still on Beta3 so you can't use the Python bindings in it with beta4, but we work on updating the editor and after that we will update the CB too. But I can't offer any time schedule yet. |
Author: | prashanthellina [ 25.08.2009, 04:46 ] |
Post subject: | Re: Problem with python bindings |
Volker, Thanks much. I tried with Beta3 and python bindinds work out of the box. The funny thing is that I tried Beta4, Beta2 and SVN HEAD but not Beta3! BTW, Is there any good resource for examples using the python bindings? Or should I look for examples in C++ and convert? If that is so, can you point me to C++ examples? (Apart from Chicago and Knight) thanks again, Prashanth |
Author: | MistaED [ 08.12.2009, 12:44 ] |
Post subject: | Re: Problem with python bindings |
viewtopic.php?f=1&t=313&start=30 At the bottom I've uploaded updated python bindings to support beta 4. They haven't been tested and probably have obvious mistakes, but it's better than nothing! -Alex |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |