[PyQt] BUG: PyQt 5.6 Build Error for iOS

Phil Thompson phil at riverbankcomputing.com
Thu Apr 21 19:03:42 BST 2016


On 5 Apr 2016, at 9:06 am, David Morris <othalan at othalan.net> wrote:
> 
> I am attempting to build PyQt 5.6 for iOS (development snapshot
> PyQt5_gpl-5.6.dev1604021410) and have encountered a compile error:
> 
> QtWidgets/sipQtWidgetsQMenu.cpp:2848:21: error: no member named
> 'setAsDockMenu' in 'QMenu'
>            sipCpp->setAsDockMenu();
>            ~~~~~~  ^
> 1 error generated.
> 
> Looking into this further, this seems to originate from the file
> sip/QtWidgets/qmenu.sip (lines 150 - 154), where new code was added
> for OSX.  The code checks for WS_MACX.
> 
> Tracing the problem back further, I have found WS_MACX is set because
> pyqtdeploy sets the following platform configuration:
> 
> py_platform = darwin
> 
> Unfortunately, "darwin" is the platform identified for BOTH OSX and
> iOS (iPhone and iPad), but these two platforms have different
> capabilities.  I do not see any mechanism available for
> differentiating between these platforms within the PyQt build.
> 
> As a temporary solution to work around this error, I commented out the
> relevant lines of code  in the qmenu.sip noted above and did not
> encounter any other build errors.
> 
> I am guessing this is a bug in pyqtdeploy, PyQt5 or both, but am
> uncertain where to make changes for a fix.  Any chance of a fix for
> this bug?

Should be fixed in the current PyQt5 snapshot.

Thanks,
Phil


More information about the PyQt mailing list