On 5/30/06, Lakin Wecker <lak...@gm...> wrote:
> Well, I've succeeded in compiling the ogre module. But when I try to
> import it I get:
>
> TypeError: No to_python (by-value) converter found for C++ type:
> Ogre::ColourValue
>
>
> According to: http://mail.python.org/pipermail/c++-sig/2004-August/007973.html
>
> This might be due to ColourValue being non-copyable. I checked the
> ColourValue Generated code, and sure enough, it's non-copyable. But I
> don't know why. It doesn't define a Copy Constructor, but it also
> doesn't explicitly define one.
Sorry for the confusion. I meant to say: It doesn't explicitly
disable the copy constructor.
In the meantime I am going to use something like:
copyable_list = [ 'Vector3', 'Vector4', 'ColourValue', 'Vector2', ]
for copyable in copyable_list:
classes = ogre_ns.classes (copyable, allow_empty=True)
classes.noncopyable = False
To get around it.
Lakin
|