<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-05-25 16:48 GMT+02:00 Boudewijn Rempt <span dir="ltr"><<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Elvis,<br>
<br>
If you've got kdemacors.h in /usr/include (for instance because you've also got a kde4 dev env) then you won't encounter the error. The issue is that the expanded list of includes is enclosed in "", which breaks the build.</blockquote><div><br></div><div>Oh I see. Right you are.</div><div><br></div><div>Hm. I'm definitely no CMake expert, but perhaps there's a way of iterating the generator expression contained in ${KDE4_INCLUDES}, and add them in one by one using include_directories? Maybe that's more robust?</div><div><br></div><div>I'll let some expert comment on that. It feels we're getting closer at least.</div><div><br></div><div>Elvis</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><br>
<br>
On Mon, 25 May 2015, Elvis Stansvik wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
2015-05-25 16:13 GMT+02:00 Boudewijn Rempt <<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>>:<br>
Weird, it worked for me:<br>
<br>
<a href="https://paste.kde.org/pmvwwhyqp" target="_blank">https://paste.kde.org/pmvwwhyqp</a> -- in fact, the header file isn't used or needed in the example at all.<br>
<br>
<br>
I seem to be getting the same result as Alex (I think): <a href="https://paste.kde.org/pke2ztbok" target="_blank">https://paste.kde.org/pke2ztbok</a><br>
<br>
I'm a little pussled by your paste, what is wrong with the compile line? You do have -I/usr/include/KF5/KDELibs4Support in there, which should<br>
contain kdemacros.h?<br>
<br>
Elvis<br>
<br>
<br>
<br>
On Mon, 25 May 2015, Alex Merry wrote:<br>
<br>
On Monday 25 May 2015 15:31:52 Boudewijn Rempt wrote:<br>
<a href="http://www.valdyas.org/~boud/vc-cmake-3.tgz" target="_blank">http://www.valdyas.org/~boud/vc-cmake-3.tgz</a> is as minimal as I know how to<br>
make it: you still need qt, KDELibs4Support and extra-cmake-modules<br>
installed. After that, running cmake and make VERBOSE=1 will give the<br>
exact problem I've got.<br>
<br>
<br>
I get compiler issues with that, but the problems I'm getting are because<br>
KoOptimizedCompositeOpFactoryPerArch.cpp doesn't include<br>
KoOptimizedCompositeOpFactoryPerArch.h, which doesn't have a ; after the class<br>
definition, and when I fix those I get multiple definition errors for<br>
Bla::bla(). The includes are ending up on the command line just fine.<br>
<br>
This is true no matter if I use cmake-3.0.2, cmake-3.1.3 or cmake-3.2.2.<br>
<br>
Alex<br>
<br>
_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org" target="_blank">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
<br>
<br>
<br>
</blockquote>
</div></div><br>_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
<br></blockquote></div><br></div></div>