<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 8, 2016 at 5:38 AM, Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Scarlet,<br>
<br>
-#include <Akonadi/Contact/ContactSearchJob><br>
+#include <KF5/akonadi/contact/contactsearchjob.h><br>
<br>
This patch sound like a wrong way to handle frameworks header. After all i<br>
never use #include <KF5/...> syntax, and there is no reason to do it.<br>
<br>
Using the .h file instead the camelcase version is not a problem, but both<br>
cases must work well in client application.<br>
<br>
Gilles Caulier<br></blockquote><div><br></div><div>As I stated above I don't care HOW it is fixed. But someone NEEDS to fix it. My patch above makes Digikam build. Period. I can certainly remove it, but then you are back to a permanent build failure.<br></div><div>I am not a C++ programmer, my knowledge is minimal. I hate red jobs, so I took time out of my vacation and fought with this for many days, as no one else did.<br></div><div>Please fix it properly, anyone.<br></div><div>Thanks,<br></div><div>Scarlett <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
2016-04-07 3:01 GMT+02:00 Scarlett Clark <<a href="mailto:scarlett.gately.clark@gmail.com">scarlett.gately.clark@gmail.com</a>>:<br>
<br>
> It has to do with /path/to/include/KF5/path/to/camelcase , the key is<br>
> actually the KF5 folder.<br>
> If I patch  include/KF5/Path/To/Camelcase file it works, however the camel<br>
> case file does not find its own header.<br>
><br>
</span>> /srv/jenkins/install/ubuntu/x86_64/g++/kf5-qt5/kde/kdepimlibs/inst/usr/include/KF5/Akonadi/Contact/ContactSearchJob:1:46: fatal error: akonadi/contact/contactsearchjob.h: No such file or directory*22:47:37* compilation terminated.<br>
<div><div class="h5">><br>
> I can only assume the KF5 folder is involved again. So I tried to add KF5<br>
> to the ecm_generate_headers(PREFIX) but that has the effect of lower case<br>
> kf5 which also does not work, obviously.<br>
><br>
> So I turned back to Digikam and patched:<br>
><br>
> -#include <Akonadi/Contact/ContactSearchJob><br>
> +#include <KF5/akonadi/contact/contactsearchjob.h><br>
><br>
> And finally we have a successful build.<br>
><br>
><br>
> <a href="https://build.kde.org/job/digikam%20master%20kf5-qt5/PLATFORM=Linux,compiler=gcc/68/console" rel="noreferrer" target="_blank">https://build.kde.org/job/digikam%20master%20kf5-qt5/PLATFORM=Linux,compiler=gcc/68/console</a><br>
><br>
> I do notice KDE_INSTALL_INCLUDEDIR_KF5 in kdepimlibs is likely what puts<br>
> in this KF5 folder?<br>
><br>
> I do not know who is responsible here, but someone needs to fix something<br>
> :) I have exhausted my current C++ skills to get this far lol.<br>
><br>
> I have added digikam to the conversation.<br>
> Cheers,<br>
> Scarlett<br>
><br>
><br>
> On Thu, Mar 31, 2016 at 11:48 PM, Ben Cooksley <<a href="mailto:bcooksley@kde.org">bcooksley@kde.org</a>> wrote:<br>
><br>
>> On Thu, Mar 31, 2016 at 11:44 PM, Christophe Giboudeaux<br>
>> <<a href="mailto:cgiboudeaux@gmx.com">cgiboudeaux@gmx.com</a>> wrote:<br>
>> > On mercredi 30 mars 2016 20:19:29 CEST Ben Cooksley wrote:<br>
>> >> On Tue, Mar 29, 2016 at 10:46 PM, Sandro Knauß <<a href="mailto:sknauss@kde.org">sknauss@kde.org</a>><br>
>> wrote:<br>
>> >><br>
>> >> Those are the header generation and installation routines - which do<br>
>> >> indeed look.<br>
>> >> What is missing in this case is the include path specification for the<br>
>> >> KF5::AkonadiContact target which CMake provides.<br>
>> >><br>
>> ><br>
>> > The exported target is correct.<br>
>> > From KF5AkonadiContactTargets.cmake :<br>
>> ><br>
>> > set_target_properties(KF5::AkonadiContact PROPERTIES<br>
>> > INTERFACE_INCLUDE_DIRECTORIES<br>
>> >  "${_IMPORT_PREFIX}/include/KF5/Akonadi/Contact;<br>
>> >   ${_IMPORT_PREFIX}/include/KF5;<br>
>> >   ${_IMPORT_PREFIX}/include/KF5/akonadi/contact;<br>
>> >   ${_IMPORT_PREFIX}/include/KF5"<br>
>> >   INTERFACE_LINK_LIBRARIES "KF5::AkonadiCore;KF5::Contacts;Qt5::Widgets"<br>
>> > )<br>
>><br>
>> Hmm, indeed that does look correct.<br>
>> I wonder why Digikam would fail to compile then:<br>
>><br>
>> 19:24:09<br>
>> /home/jenkins/sources/digikam/kf5-qt5/utilities/kdesupport/akonadi/akonadiiface.cpp:47:44:<br>
>> fatal error: Akonadi/Contact/ContactSearchJob: No such file or<br>
>> directory<br>
>><br>
>> Any ideas? (I assume Digikam is trying using to use AkonadiContact<br>
>> correctly)<br>
>><br>
>> Cheers,<br>
>> Ben<br>
>><br>
>> ><br>
>> > _______________________________________________<br>
>> > Kde-buildsystem mailing list<br>
>> > <a href="mailto:Kde-buildsystem@kde.org">Kde-buildsystem@kde.org</a><br>
>> > <a href="https://mail.kde.org/mailman/listinfo/kde-buildsystem" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kde-buildsystem</a><br>
>> ><br>
>> _______________________________________________<br>
>> KDE PIM mailing list <a href="mailto:kde-pim@kde.org">kde-pim@kde.org</a><br>
>> <a href="https://mail.kde.org/mailman/listinfo/kde-pim" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kde-pim</a><br>
>> KDE PIM home page at <a href="http://pim.kde.org/" rel="noreferrer" target="_blank">http://pim.kde.org/</a><br>
>><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Digikam-devel mailing list<br>
> <a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/digikam-devel" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
<div class="HOEnZb"><div class="h5">><br>
><br>
_______________________________________________<br>
KDE PIM mailing list <a href="mailto:kde-pim@kde.org">kde-pim@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-pim" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kde-pim</a><br>
KDE PIM home page at <a href="http://pim.kde.org/" rel="noreferrer" target="_blank">http://pim.kde.org/</a></div></div></blockquote></div><br></div></div>