installed header includes

David Faure faure at kde.org
Tue Sep 10 07:09:13 UTC 2013


On Monday 09 September 2013 16:03:38 Jeremy Whiting wrote:
> Hello,
> 
> Apparently my commit to knewstuff broke the build. The problem is that
> knewstuff/src/knewstuffbutton.h includes <knewstuff3/entry.h> which
> hasn't been installed yet when building kdelibs.  I looked around and
> saw some other frameworks install headers install directly into
> include (kauth.h includes "kauthaction.h", both of which are in
> /usr/local/include here) I don't think knewstuff3/entry.h should go
> directly into includes though. I also saw solid which installs headers
> into includes/solid has it's headers in solid/src/solid that way
> #include <solid/blah.h> works in sources.
> 
> Which is the preferred way to fix this? I can move
> knewstuff/src/*.cpp|h into knewstuff/src/knewstuff3/ so it will work
> in source tree and in installed locations I guess, is that the "right"
> way to do this sort of thing?

No, generate local forwarding headers, see what I did in staging/kio/src/

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list