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.
I assume this is a result of Roman's last fix, when I had problems
with the Frustum class which shouldn't have been copyable. I'm not
sure that current fix is correct.
Let me explain:
I think that in the case of Frustum, it is Ogre which is at fault.
According to the C++ code for Frustum, it should be copyable, and
because pyplusplus is looking at the C++ code to generate the wrapper,
it was correct in saying that Frustum is Copyable.
In the case of ColourValue, it _is_ copyable, and Ogre is fine with
leaving out the CopyConstructor for the Compiler to generate. In this
case, pyplusplus should wrap ColourValue as copyable, right?
I can't upload files to my website from where I am, so I am attaching
the relevant ones to the email.
Lakin
|