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

OSX build error with -no-feature-printer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.12.5, 5.14.0 Alpha
    • 5.9.1
    • Build System
    • None
    • macOS 10.12
    • macOS
    • 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

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

          Activity

            People

              liaqi Liang Qi
              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