<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 10, 2016 at 3:31 PM, Giacomo Alzetta <span dir="ltr"><<a href="mailto:giacomo.alzetta@gmail.com" target="_blank">giacomo.alzetta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>No, I dont, see the last line in mytestrunner.cpp: <a href="https://github.com/Bakuriu/MyTestRunner/blob/master/mytestrunner.cpp#L64" target="_blank">https://github.com/Bakuriu/MyTestRunner/blob/master/mytestrunner.cpp#L64</a><br><br></div></div></div></blockquote><div>You're right.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div></div><div>And this is exactly the thing that puzzles me. If I put the .desktop file in place but I do not provide the .so library, I can see the KRunner load stating that it is unable to find the plug-in. When the .so library is in place no logging is produced to know whether it succesfully loaded the plugin or not, and the plugin isn't called when matching nor is listed in the configuration options.<br><br></div>that other file is automatically created by QtCreator, i just left it there but I know it's not required.<br></div></div></blockquote><div><br></div><br><div>You might find you need CONFIG+=plugin in qmake? <br><br>If you want to debug library loading further, run "nm" on both your lib and an existing one and see what's different.<br><br></div><div>However, QtCreator can open cmake projects in new versions. You'll save yourself a lot of trouble if you just use that. It's easier to copy, paste existing runners and we have lots of KDE specific macros for doing complex things.<br></div><br></div><div class="gmail_quote">Finally LIBRARY_DIR="$(kf5-config --qt-plugins)" is technically wrong (though from what you've said seems to work in your case) you're not making a plugin for Qt.<br><br><br></div><div class="gmail_quote"> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div></div><br><div class="gmail_quote"><div><div><div dir="ltr">Il giorno dom 10 lug 2016 alle ore 19:45 David Edmundson <<a href="mailto:david@davidedmundson.co.uk" target="_blank">david@davidedmundson.co.uk</a>> ha scritto:<br></div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div><div><div><br></div>​You're missing this line somewhere:<br><br>K_EXPORT_PLASMA_RUNNER(my-test-runner, MyTestRunner)<br><br></div>It exports the big that make it a plugin, with the entry point that krunner needs.<br><br></div>Also you can then kill your mytestrunner_global.h code, as that's exporting code for linking against, which is a bit different.<br></div></div></div><span>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</span></blockquote></div>
<br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br></div></div>