Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-52687

[Reg 5.6->5.7] moc doesn't know about Q_OS_MAC

    XMLWordPrintable

Details

    • macOS
    • efd2ea8ea720833f9602154221d9654aea1f2e6f

    Description

      See attached example. Builds with Qt 5.6 and earlier, does not build with Qt 5.7.

      The reason is that qsystemdetection.h now relies on TargetConditionals.h to detect OS X, but moc does not get passed the include path to the SDKs /usr/include directory, so it doesn't find TargetConditionals.h.
      Manually changing the moc command to include -I/Applications/Xcode.app/......../usr/include makes it work.

      Attachments

        For Gerrit Dashboard: QTBUG-52687
        # Subject Branch Project Status CR V

        Activity

          People

            kkohne Kai Köhne
            con Eike Ziller
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes