PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 476 - Building git-HEAD fails with -DAVOID_PROTECTED_HACK
: Building git-HEAD fails with -DAVOID_PROTECTED_HACK
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: All All
: P2 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-11-20 07:39 EET by Andy Kittner
Modified: 2010-11-25 17:48 EET (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Kittner 2010-11-20 07:39:10 EET
The current git HEAD fails to compile pyside with the following error if
-DAVOID_PROTECTED_HACK=TRUE is given to cmake for building shiboken:

/home/andkit/vcs/python/pyside/pyside/build/PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp:
In function ‘PyObject*
Sbk_QAbstractEventDispatcherFunc_registerTimer(PyObject*, PyObject*)’:
/home/andkit/vcs/python/pyside/pyside/build/PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp:1000:76:
error: no matching function for call to
‘QAbstractEventDispatcherWrapper::registerTimer(int&, QObject*&)’
/home/andkit/vcs/python/pyside/pyside/build/PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp:347:6:
note: candidate is: virtual void
QAbstractEventDispatcherWrapper::registerTimer(int, int, QObject*)
gmake[2]: ***
[PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp.o]
Error 1

Since this is forced on when building shiboken on Windows, it is currently
impossible to get a current Windows build of pyside. (See also the "[PySide]
Windows GIT Head build"
thread on the mailing list, starting with this message:
http://lists.openbossa.org/pipermail/pyside/2010-November/001371.html)

Manually changing the generated code from
  int cppResult = cppSelf->registerTimer(cppArg0, cppArg1);
to
  int cppResult = cppSelf->QAbstractEventDispatcher::registerTimer(cppArg0,
cppArg1);
(as well as another instance of the same problem a little later) allows to
continue the build a bit further, but ultimately fails with:

/home/andkit/vcs/python/pyside/pyside/build/PySide/QtCore/PySide/QtCore/qbuffer_wrapper.cpp:997:85:
error: ‘class QBufferWrapper’ has no member named
‘QBufferWrapperconnectNotify_protected’

A similar error is produced during the build of the sample bindings if shiboken
is configured with -DBUILD_TESTS=TRUE
Comment 1 Matti Airas 2010-11-22 16:44:33 EET
Increasing priority to have this fixed before the next release.
Comment 2 Ryan Kelly 2010-11-23 04:47:24 EET
I think I just posted two bugs that duplicate the errors reported here: bug 490
and bug 492.  They contain some preliminary patches that were enough to get the
build working for me on windows.
Comment 3 Matti Airas 2010-11-23 05:04:34 EET
*** Bug 490 has been marked as a duplicate of this bug. ***
Comment 4 Matti Airas 2010-11-23 05:05:39 EET
*** Bug 492 has been marked as a duplicate of this bug. ***
Comment 5 renato filho 2010-11-23 11:58:42 EET
fixed on shiboken commit:

commit 81a8bd714bf4ea7783277052da932d8a7a909fd1
Author: Renato Araujo Oliveira Filho <renato.filho@openbossa.org>
Date:   Tue Nov 23 11:42:08 2010 -0300
Comment 6 renato filho 2010-11-25 17:48:25 EET
released on 1.0.0~beta1