[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] BUG: PyQt 5.6 Build Error for iOS
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2016-04-21 18:03:42
Message-ID: 9C73F8D9-1422-4C25-8027-2F4B2CD7316E () riverbankcomputing ! com
[Download RAW message or body]

On 5 Apr 2016, at 9:06 am, David Morris <othalan@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
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic