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

Unable to compile Qt with '-no-accessibility' option on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.2.0
    • None
    • cd qtbase
      ./configure -no-openssl -no-accessibility -nomake examples -nomake tests -platform macx-clang-32 -no-c++11
    • macOS

    Description

      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -pipe -arch i386 -g -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XCB -DQT_NO_XKBCOMMON -DQT_NO_USING_NAMESPACE -DQT_BUILD_WIDGETS_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_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_ANDROID -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_GUI_LIB -DQT_CORE_LIB -I../../mkspecs/macx-clang-32 -I. -I../../include -I../../include/QtWidgets -I../../include/QtWidgets/5.2.0 -I../../include/QtWidgets/5.2.0/QtWidgets -Idialogs -I.uic -I../../lib/QtGui.framework/Versions/5/Headers -I../../lib/QtGui.framework/Versions/5/Headers/5.2.0 -I../../lib/QtGui.framework/Versions/5/Headers/5.2.0/QtGui -I../../lib/QtCore.framework/Versions/5/Headers -I../../lib/QtCore.framework/Versions/5/Headers/5.2.0 -I../../lib/QtCore.framework/Versions/5/Headers/5.2.0/QtCore -I.moc/debug -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AGL.framework/Headers -F/Users/me/Desktop/qt-everywhere-opensource-src-5.2.0/qtbase/lib styles/qmacstyle_mac.mm -o .obj/debug/qmacstyle_mac.o
      styles/qmacstyle_mac.mm:2758:39: error: no member named 'hasAncestor' in namespace 'QStyleHelper'
                      (opt && QStyleHelper::hasAncestor(opt->styleObject, QAccessible::ScrollBar))) {
                              ~~~~~~~~~~~~~~^
      styles/qmacstyle_mac.mm:2758:69: error: use of undeclared identifier 'QAccessible'
                      (opt && QStyleHelper::hasAncestor(opt->styleObject, QAccessible::ScrollBar))) {
                                                                          ^
      styles/qmacstyle_mac.mm:3402:31: error: no member named 'hasAncestor' in namespace 'QStyleHelper'
                  if (QStyleHelper::hasAncestor(opt->styleObject, QAccessible::ToolBar)) {
                      ~~~~~~~~~~~~~~^
      styles/qmacstyle_mac.mm:3402:61: error: use of undeclared identifier 'QAccessible'
                  if (QStyleHelper::hasAncestor(opt->styleObject, QAccessible::ToolBar)) {
                                                                  ^
      styles/qmacstyle_mac.mm:5439:31: error: no member named 'hasAncestor' in namespace 'QStyleHelper'
                  if (QStyleHelper::hasAncestor(opt->styleObject, QAccessible::ToolBar)) {
                      ~~~~~~~~~~~~~~^
      styles/qmacstyle_mac.mm:5439:61: error: use of undeclared identifier 'QAccessible'
                  if (QStyleHelper::hasAncestor(opt->styleObject, QAccessible::ToolBar)) {
                                                                  ^
      styles/qmacstyle_mac.mm:6040:55: error: no member named 'hasAncestor' in namespace 'QStyleHelper'
              if (sc == SC_ToolButtonMenu && !QStyleHelper::hasAncestor(opt->styleObject, QAccessible::ToolBar)) {
                                              ~~~~~~~~~~~~~~^
      styles/qmacstyle_mac.mm:6040:85: error: use of undeclared identifier 'QAccessible'
              if (sc == SC_ToolButtonMenu && !QStyleHelper::hasAncestor(opt->styleObject, QAccessible::ToolBar)) {
                                                                                          ^
      8 errors generated.
      make[3]: *** [.obj/debug/qmacstyle_mac.o] Error 1
      make[2]: *** [debug-all] Error 2
      make[1]: *** [sub-widgets-make_first] Error 2
      make: *** [sub-src-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

              frederik Frederik Gladhorn
              crystalidea Steven (crystalidea)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes