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

OSX build error with -no-feature-printer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.12.5, 5.14.0 Alpha
    • 5.9.1
    • Build System
    • None
    • macOS 10.12
    • macOS
    • b1db1dd655788fb685949959c99c901515bfd8ab (qt/qtbase/5.12)

      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
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes