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

OSX build error with -no-feature-printer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.9.1
    • Fix Version/s: 5.12.5, 5.14.0 Alpha
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      macOS 10.12
    • Platform/s:
      macOS
    • Commits:
      b1db1dd655788fb685949959c99c901515bfd8ab (qt/qtbase/5.12)

      Description

      If we try to build qtbase with disabled qprinter support (-no-feature-printer) it fails on macOS.

      Looks like a sibling of QTBUG-27177.

      We used this as a work-around to disable it.

      --- x/qtbase/src/plugins/platforms/cocoa/qprintengine_mac_p.h
      +++ y/qtbase/src/plugins/platforms/cocoa/qprintengine_mac_p.h
      @@ -52,6 +52,7 @@
       //
       
       #include <QtCore/qglobal.h>
      +#include <qpa/qplatformprintdevice.h>
       
       #ifndef QT_NO_PRINTER
       
      --- x/qtbase/src/plugins/plugins.pro
      +++ y/qtbase/src/plugins/plugins.pro
      @@ -8,6 +8,3 @@ qtHaveModule(gui) {
           qtConfig(imageformatplugin): SUBDIRS *= imageformats
           !android:qtConfig(library): SUBDIRS *= generic
       }
      -
      -!winrt:!wince:qtHaveModule(printsupport): \
      -    SUBDIRS += printsupport
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                liaqi Liang Qi
                Reporter:
                misery André Klitzing
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes