Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.2
-
None
Description
When I upgrade my Qt 5.6 to 5.9 from the source code, I'd got the error:
g++ -c -pipe -O2 -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../printsupport/kernel -I../../../../include/QtPrintSupport/5.9.2 -I../../../../include/QtPrintSupport/5.9.2/QtPrintSupport -I../../../../include/QtWidgets/5.9.2 -I../../../../include/QtWidgets/5.9.2/QtWidgets -I../../../../include/QtGui/5.9.2 -I../../../../include/QtGui/5.9.2/QtGui -I../../../../include -I../../../../include/QtPrintSupport -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtCore/5.9.2 -I../../../../include/QtCore/5.9.2/QtCore -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -isystem /usr/include/pgsql -isystem /usr/include/pgsql/server -isystem /usr/include/mysql -I../../../../mkspecs/linux-g++ -o .obj/qppdprintdevice.o qppdprintdevice.cpp qppdprintdevice.cpp: In member function 'void QPpdPrintDevice::loadPrinter()': qppdprintdevice.cpp:466:46: error: 'cupsCopyDest' was not declared in this scope cupsCopyDest(cupsDest, 0, &m_cupsDest); ^ qppdprintdevice.cpp:476:34: error: 'cupsConnectDest' was not declared in this scope 0, 0); ^ make[4]: *** [.obj/qppdprintdevice.o] Error 1 make[4]: Leaving directory `/usr/src/packages/BUILD/qtbase-opensource-src-5.9.2/src/plugins/printsupport/cups' make[3]: *** [sub-cups-make_first] Error 2
First time I saw this error when compile with CUPS 1.4. When I'd upgrade it to 1.5 without a success. It was successfully compiled only with CUPS 1.6.
The configure script is checking 'CUPS_HTTP_DEFAULT' and 'cupsGetNamedDest' that are presents in CUPS starting from 1.4 version. I think, you need to increase minimal required version, or add backward compability with CUPS 1.5 or 1.4.
Or can I define some const to build Qt5 with CUPS 1.5? For example, when Qt5 stopped to build with -fontconfig key starting from 5.3 version, I just added "-D FC_WEIGHT_EXTRABLACK=215 -D FC_WEIGHT_ULTRABLACK=FC_WEIGHT_EXTRABLACK" parameters to the configure command