Horde3D

Next-Generation Graphics Engine
It is currently 28.11.2024, 00:41

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 24.08.2009, 16:42 
Offline

Joined: 24.08.2009, 15:26
Posts: 5
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


Top
 Profile  
Reply with quote  
PostPosted: 24.08.2009, 19:47 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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.


Top
 Profile  
Reply with quote  
PostPosted: 25.08.2009, 04:46 
Offline

Joined: 24.08.2009, 15:26
Posts: 5
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


Top
 Profile  
Reply with quote  
PostPosted: 08.12.2009, 12:44 
Offline

Joined: 15.02.2009, 02:13
Posts: 161
Location: Sydney Australia
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

_________________
-Alex
Website


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group