Hi Andreas,
Andreas Tille kirjoitti 20.10.2017 klo 18:41:
Hi Juhani,
On Fri, Oct 20, 2017 at 06:14:02PM +0300, Juhani Numminen wrote:
-TARGET_LINK_LIBRARIES( qtbeads ${QT_LIBRARIES} ...
+TARGET_LINK_LIBRARIES( qtbeads Qt::Widgets ...>> I can't see that
line in the patch at
[1] https://anonscm.debian.org/git/debian-med/beads.git
Its in line 86 now but does not help.
My bad, it should have been Qt5::Widgets (not Qt but Qt5).
Fixing that gets us to a point where the compiler cannot find the header
<QPrinter>, which is a part of another Qt5 module: PrintSupport.
So we must add the component "PrintSupport" there:
FIND_PACKAGE( Qt5 REQUIRED COMPONENTS Core LinguistTools Widgets)
FIND_PACKAGE( Qt5 REQUIRED COMPONENTS Core LinguistTools PrintSupport
Widgets)
And Qt5::PrintSupport there:
TARGET_LINK_LIBRARIES( qtbeads Qt::Widgets ...
TARGET_LINK_LIBRARIES( qtbeads Qt5::Widgets Qt5::PrintSupport ...
I think that's the build system sorted, even though the compilation
still fails. Now you probably need to add some includes.
Juhani