[PyQt] PyQt 5.5: iOS Build undefined symbols: QMacCocoaViewContainer

Phil Thompson phil at riverbankcomputing.com
Mon Sep 7 10:55:02 BST 2015


On 4 Sep 2015, at 7:10 pm, David Morris <othalan at othalan.net> wrote:
> 
> I am building an iOS application using Qt 5.3.2 & PyQt 5.3.2.  This works.
> 
> However, if I build the app using Qt 5.5 & PyQt 5.5.1 (developer
> snapshot), I get a large list of undefined symbols when the
> application links, all related to QMacCocoaViewContainer.
> 
> I am guessing QMacCocoaViewContainer is related to OSX only and should
> not exist on iOS.  Searching for a solution, it appears this was added
> to PyQt in 5.4.1 or 5.4.2.
> 
> How can I either link in the missing library or remove it from the iOS build?

The easiest way is to comment out the %Include qmaccocoaviewcontainer.sip from QtWidgetsmod.sip.

Phil


More information about the PyQt mailing list