On Sunday 11 March 2018, Michael Pyne wrote:
> > Yes, but the problem is the /usr/include/kdialog.h when it should be
> > finding /usr/include/KF5/KDELibs4Support/kdialog.h. I have
> > find_package(Qt5 Widgets... already.
> 
> Sounds like 2 problems I think.
> 
> First you need to fix the kdialog.h include in your software (or help
> us identify where it is broken in the KF5 build system).  Is your build
> system already looking for KF5::KDELibs4Support, and marking your build
> target as depending on that library?
> 
> Even with this incorrect kdialog, you would think it would still find
> the right QDialog though.  That's why it sounds like there's 2 problems.
> I think the issue here is that there is no longer a QtGui/QDialog.  The
> right path would be in QtWidgets/QDialog with Qt5.  It's better (and now
> recommended) just to use a '#include <QDialog>' (and in general,
> #include <QClassname>).

I added KF5::KDE4Support to the target link libraries and that problem went 
away. This raises the problem: how do I know which link libraries I need? Is 
there a list of dependencies somewhere?

Thanks
Robin

-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to