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

Moc file compilation error, missing Q_OS_MAC, 5.8 fails to build on macOS Sierra 10.12.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.9.0 Beta 2
    • 5.9.0 Alpha
    • Build System
    • None
    • macOS
    • 6d5489f5df1220ac82d76bbee1f3caa93b34100d

    Description

      Operations:
      git clone git://code.qt.io/qt/qt5.git
      git submodule update --init --recursive
      configure
      (select and accept open source license)
      make -j16

      Result:

      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -Xclang -include-pch -Xclang .pch/debug/QtPrintSupport_debug/objective-c++.pch -pipe -stdlib=libc++ -g -std=c++1z -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.9  -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_BUILD_PRINTSUPPORT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Idialogs -I../../include -I../../include/QtPrintSupport -I../../include/QtPrintSupport/5.8.1 -I../../include/QtPrintSupport/5.8.1/QtPrintSupport -I../../include/QtWidgets/5.8.1 -I../../include/QtWidgets/5.8.1/QtWidgets -I../../include/QtGui/5.8.1 -I../../include/QtGui/5.8.1/QtGui -I../../include/QtCore/5.8.1 -I../../include/QtCore/5.8.1/QtCore -I../../include/QtWidgets -I../../include/QtGui -I../../include/QtCore -I.moc/debug -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AGL.framework/Headers -I.uic -I../../mkspecs/macx-clang -F/Users/ddd/Work/qt5/qtbase/lib -o .obj/debug/qprintdialog_mac.o dialogs/qprintdialog_mac.mm
      In file included from dialogs/qprintdialog_mac.mm:360:
      .moc/release/moc_qprintdialog.cpp:99:31: error: no member named
            '_q_togglePageSetCombo' in 'QPrintDialogPrivate'
              case 1: _t->d_func()->_q_togglePageSetCombo((*reinterpret_cast< ...
                      ~~~~~~~~~~~~  ^
      .moc/release/moc_qprintdialog.cpp:100:31: error: no member named
            '_q_collapseOrExpandDialog' in 'QPrintDialogPrivate'
              case 2: _t->d_func()->_q_collapseOrExpandDialog(); break;
                      ~~~~~~~~~~~~  ^
      .moc/release/moc_qprintdialog.cpp:101:31: error: no member named
            '_q_checkFields' in 'QPrintDialogPrivate'
              case 3: _t->d_func()->_q_checkFields(); break;
                      ~~~~~~~~~~~~  ^
      3 errors generated.
      make[4]: *** [.obj/release/qprintdialog_mac.o] Error 1
      make[3]: *** [release-all] Error 2
      make[3]: *** Waiting for unfinished jobs....
      In file included from dialogs/qprintdialog_mac.mm:360:
      .moc/debug/moc_qprintdialog.cpp:99:31: error: no member named
            '_q_togglePageSetCombo' in 'QPrintDialogPrivate'
              case 1: _t->d_func()->_q_togglePageSetCombo((*reinterpret_cast< ...
                      ~~~~~~~~~~~~  ^
      .moc/debug/moc_qprintdialog.cpp:100:31: error: no member named
            '_q_collapseOrExpandDialog' in 'QPrintDialogPrivate'
              case 2: _t->d_func()->_q_collapseOrExpandDialog(); break;
                      ~~~~~~~~~~~~  ^
      .moc/debug/moc_qprintdialog.cpp:101:31: error: no member named '_q_checkFields'
            in 'QPrintDialogPrivate'
              case 3: _t->d_func()->_q_checkFields(); break;
                      ~~~~~~~~~~~~  ^
      3 errors generated.
      make[4]: *** [.obj/debug/qprintdialog_mac.o] Error 1
      make[3]: *** [debug-all] Error 2
      make[2]: *** [sub-printsupport-make_first] Error 2
      make[1]: *** [sub-src-make_first] Error 2
      make: *** [module-qtbase-make_first] Error 2
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
              ddd Christophe de Dinechin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes