Re: [pygccxml-development] More questions on the Ogre Binding
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-05-29 05:02:33
|
On 5/29/06, Lakin Wecker <lak...@gm...> wrote: > Hi list, > > This question is probably more for Roman, than the list directly, but > I'm sending it to the list for archival purposes. > > First off, I'm using revision 178. And I've uploaded the scripts > I'm using to: > http://lakin.weckers.net/ogre/ > > generate_code.py doesn't show any errors, but trying to compile the > resulting code results in an error of: > > for both Vector3.pypp.cpp, and Quaternion.pypp.cpp for the line which > looks similar to: > > .def_readonly( "", &Ogre::Vector3 ) Fixed, committed. The problem was unnamed member variable within Vector3 cl= ass. For the time being, those variables will not be exported to Python. Solutio= n: mb =3D module_builder_t(...) Vector3 =3D mb.class_( "Vector3" ) Vector3.add_code( 'add_property( "x", &Ogre::Vector3::x)' ) Or something like this. I did not test the code. --=20 Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |