Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.12.4
-
None
-
-
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
- relates to
-
QTBUG-27177 Don't compile plugins/printsupport when QT_NO_PRINTER is defined
- Closed
-
QTBUG-62675 OSX build error with -no-feature-printer
- Closed
-
QTBUG-39634 QT_NO_PRINTER should disable library entirely
- Closed
- resulted in
-
QTBUG-79124 QtPrintsupport missing from ios build
- Closed