Opened 8 years ago

Last modified 8 years ago

#52069 closed defect

wxWidgets-3.0: is not building in 10.12 Sierra beta due to missing QuickTime.h — at Version 11

Reported by: reactortrip@… Owned by: mojca@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: sierra Cc: jwa@…
Port: wxWidgets-3.0 wxPython-3.0

Description (last modified by mojca (Mojca Miklavec))

I am attempting to install HackRF/GNURadio, wxPython-3.0 is failing to build.

:info:build ../src/osx/core/bitmap.cpp:39:10: fatal error: 'QuickTime/QuickTime.h' file not found
:info:build #include <QuickTime/QuickTime.h>
:info:build          ^

Upstream ticket: http://trac.wxwidgets.org/ticket/17639

Change History (15)

Changed 8 years ago by reactortrip@…

Attachment: main.log added

comment:1 Changed 8 years ago by mojca (Mojca Miklavec)

Cc: mojca@… removed
Description: modified (diff)
Keywords: sierra added
Owner: changed from macports-tickets@… to mojca@…
Port: wxWidgets-3.0 wxPython-3.0 added; wxpython-3.0 removed
Summary: wxpython-3.0 is not building in 10.12 Sierra betawxWidgets-3.0: is not building in 10.12 Sierra beta due to missing QuickTime.h
Version: 2.3.4

I didn't install Sierra yet.

Link to an upstream commit in master:

plus a reference in HomeBrew fighting with the same problem:

I guess we could test the upstream commit and apply it.

comment:2 Changed 8 years ago by mojca (Mojca Miklavec)

... and if that works, we should ask the upstream to backport the fix to the 3.0 and 3.1 branch.

Changed 8 years ago by reactortrip@…

Attachment: main.2.log added

comment:3 Changed 8 years ago by reactortrip@…

Can you delete an attachment, think I grabbed the wrong main

Last edited 8 years ago by reactortrip@… (previous) (diff)

Changed 8 years ago by reactortrip@…

Attachment: main.3.log added

comment:4 Changed 8 years ago by reactortrip@…

main.3.log should be correct, wxWidget-3.0 still didn't build for me with those changes.

comment:5 Changed 8 years ago by mojca (Mojca Miklavec)

That's:

../src/osx/cocoa/mediactrl.mm:52:10: fatal error: 'QTKit/QTKit.h' file not found
#include <QTKit/QTKit.h>
         ^

See http://wxwidgets.10942.n7.nabble.com/Cannot-submit-app-using-wx-to-Mac-App-Store-due-to-QuickTime-API-usage-tp87235p87245.html

The master branch can switch between the deprecated QtKit and AV Foundation, but that would require backporting quite a bit more code. As a temporary workaround maybe someting like --disable-mediactrl in configure.flags would help?

comment:6 Changed 8 years ago by reactortrip@…

Not sure how to do that through wxPython-3.0

comment:7 Changed 8 years ago by mojca (Mojca Miklavec)

In graphics/wxWidgets-3.0/Portfile try to apply the following patch (add that option to configure.flags):

  • Portfile

     
    117117                    --with-cocoa \
    118118                    --without-sdl \
    119119                    --enable-aui \
     120                    --disable-mediactrl \
    120121                    --disable-sdltest \
    121122                    --enable-unicode \
    122123                    --enable-display \

comment:8 Changed 8 years ago by reactortrip@…

that did it, thanks

comment:9 Changed 8 years ago by mojca (Mojca Miklavec)

I opened a new upstream ticket, but have to wait for moderation before they publish it. I guess we can disable mediactrl on 10.12 until someone needs it and comes up with a patch for it.

Changed 8 years ago by mojca (Mojca Miklavec)

Temporary workaround to allow building wxWidgets on Sierra

comment:10 Changed 8 years ago by mojca (Mojca Miklavec)

I attached the patch with a workaround. If someone on Sierra can double-check that the patch is ok (and that you can build both wxWidgets-3.0 and wxPython-3.0), I'll commit it.

reactortrip: I'm unable to delete attachments (maybe the admin can), but a trick that works is to upload another file with the same name and tick the checkbox to replace the file. Next time you could rename main.log to main.log.2 and upload that one. Or you could upload an empty file now. But at this moment it doesn't make any sense to worry about faulty uploads unless the file contains some sensitive information.

comment:11 Changed 8 years ago by mojca (Mojca Miklavec)

Description: modified (diff)

I added a link to the upstream ticket.

Note: See TracTickets for help on using tickets.