Opened 8 years ago

Closed 8 years ago

#50027 closed defect (worksforme)

Qt5 yosemite

Reported by: jam@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: yosemite Cc:
Port: qt5

Description

Installing Qt on yosemite fails to build apps.

It installs Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk but to run Qt needs Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

To run rename the 11 to 9. It should be 10 !!! I've not looked so the SDK may be part of Xcode not from macports. Never the less macports QT5 requires the 11 to be 9

Change History (6)

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: QT5 removed
Owner: changed from macports-tickets@… to mcalhoun@…
Port: qt5 added; QT5 removed

The SDKs are not provided by MacPorts; they are part of Xcode. Xcode 7 only includes the 10.11 SDK, even if you are running on OS X 10.10. Apple does not consider this a bug. If Qt requires an older SDK, that is a design flaw in Qt which should be reported to the developers of Qt so that they can fix it. Do not under any circumstances rename your SDK or make any other changes inside the Xcode application bundle.

comment:2 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Status: newassigned

Does Qt fail to build and install or is it simply not work properly after it builds?
If it is the latter, there is a thread on the Qt forum that suggests you should set QMAKE_MAC_SDK = macosx10.11.

comment:3 in reply to:  2 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Keywords: yosemite added

Replying to mcalhoun@…:

Does Qt fail to build and install or is it simply not work properly after it builds?
If it is the latter, there is a thread on the Qt forum that suggests you should set QMAKE_MAC_SDK = macosx10.11.

Based on the comment in #50108, it seems Qt 5 is building fine for you on Yosemite.
Did the advice in comment:2 work for building apps?

comment:4 Changed 8 years ago by jam@…

After much heartache I scrubbed the disk and installed yosemite on my main machine where everything works. In response to requests for a log file I installed el Capitan on an old mac-mini. My gnuplot quickly created a fail-log. QT5 is still busy but looks as if it will build OK. For me building QT5 failed. The QMAKE_MAC_SDK does work building apps that use QT (even on yosemite the SDK is macosx10.11) If the build fails I will post the log. If all works then I may be a sucker for punishment and try el Capitan again else noise on the list - sorry - but try as I could (an tried 5 or 6 times clean etc) I got 'build failed' messages. James

comment:5 Changed 8 years ago by jam@…

The build of Qt completed. I will now go to original install and report when that is done

comment:6 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: worksforme
Status: assignedclosed

There may be still be a problem here for anybody running:

  • Yosemite
  • Xcode 7

Putting QMAKE_MAC_SDK = macosx10.11 in every pro file seems an onerous burden.
If I understand the post on the users mailing list, however, the machine in question now runs El Capitan.
Closing the ticket until we have a machine on which to test possible solutions.

Note: See TracTickets for help on using tickets.