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

-no-feature-printer doesn't build on Windows.

    XMLWordPrintable

Details

    • Windows
    • de8bd9ec6b21e3b43b08c4c2588b5116a7ca8ece (qt/qtbase/5.12)

    Description

      Using the ---no-feature-printer configure option produces this error:

      qprinter.cpp
      qprinterinfo.cpp
      qplatformprintdevice.cpp
      qplatformprintplugin.cpp
      qplatformprintersupport.cpp
      qprintengine_win.cpp
      generating .moc/debug/moc_predefs.h
      moc D:\qt5\qtbase\src\printsupport\kernel\qplatformprintplugin.h
      D:\qt5\qtbase\src\printsupport\kernel\qplatformprintplugin.h(0): Note: No relevant classes found. No output generated.
      moc_qplatformprintplugin.cpp
      linking ..\..\lib\Qt5PrintSupportd.dll
              copy /y ..\..\lib\Qt5PrintSupportd.dll ..\..\bin
              1 file(s) copied.
              cd plugins\ && ( if not exist Makefile D:\bin\qmake.exe -o Makefile D:\qt5\qtbase\src\plugins\plugins.pro ) && D:\jom.exe -f Makefile
              cd bearer\ && ( if not exist Makefile D:\bin\qmake.exe -o Makefile D:\qt5\qtbase\src\plugins\bearer\bearer.pro ) && D:\jom.exe -f Makefile
              cd platformthemes\ && ( if not exist Makefile D:\bin\qmake.exe -o Makefile D:\qt5\qtbase\src\plugins\platformthemes\platformthemes.pro ) && D:\jom.exe -f Makefile
              cd generic\ && ( if not exist Makefile D:\bin\qmake.exe -o Makefile D:\qt5\qtbase\src\plugins\bearer\generic\generic.pro ) && D:\jom.exe -f Makefile
              cd platforminputcontexts\ && ( if not exist Makefile D:\bin\qmake.exe -o Makefile D:\qt5\qtbase\src\plugins\platforminputcontexts\platforminputcontexts.pro ) && D:\jom.exe -f Makefile
              D:\jom.exe -f Makefile.Debug
      qgenericengine.cpp
              cd printsupport\ && ( if not exist Makefile D:\bin\qmake.exe -o Makefile D:\qt5\qtbase\src\plugins\printsupport\printsupport.pro ) && D:\jom.exe -f Makefile
      Error: dependent 'D:\lib\Qt5PrintSupportd.lib' does not exist.
      
      

       

       

      I ran configure with these options:

      -shared -confirm-license -silent -nomake examples -nomake tests -prefix D:\ -opensource -debug -no-opengl -openssl-runtime --glib=no --sql-mysql=no --sql-psql=no --sql-odbc=no --sql-sqlite=no -no-feature-sql -no-feature-sqlmodel -no-feature-printer -no-feature-printdialog -no-feature-printpreviewdialog -no-feature-printpreviewwidget -no-feature-cups -no-accessibility -no-feature-accessibility -no-feature-concurrent -no-feature-testlib -qt-freetype -qt-harfbuzz -qt-pcre -qt-libjpeg -qt-libpng -qt-doubleconversion -no-sqlite -no-dbus -platform win32-msvc
      

       

      I solved it with the attached patch, not sure if it is safe to do but seemed reasonable and works.

      Attachments

        Issue Links

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

          Activity

            People

              kkohne Kai Köhne
              cyriuz Viktor Arvidsson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes