On Sat, Apr 24, 2010 at 1:49 AM, Thomas Berg <[email protected]> wrote:
> the following missing symbols, all of which seem to be protected pure
> virtual methods in QtCore classes. Any ideas or pointers on how to
> solve this?
Turns out this was easy to solve too.
I modified shiboken/headergenerator.cpp such that it doesn't prefix
the method call with the parent class name when calling these methods.
For example, in the QIODeviceWrapper header, shiboken has to generate
this:
inline qint64 writeData_protected(const char * data, qint64 len) {
return writeData(data, len); }
instead of this:
inline qint64 writeData_protected(const char * data, qint64 len) {
return QIODevice::writeData(data, len); }
So it seems that MSVC requires an exported symbol if you prefix the
call with the classname. Since it is abstract, there is no symbol for
it in the QtCore dll. Without the prefix it builds fine.
Anyway, I now have a linked QtCore.pyd file!
QtGui fails with this message, which I guess is another problem
related to the protected hack:
pyside\qtgui\pyside_qtgui_python.h(1864) : error C2248:
'QGraphicsItem::Extension' : cannot access
protected enum declared in class 'QGraphicsItem'
Regards,
Thomas
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside