<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 29, 2014 at 1:25 PM, nerdopolis <span dir="ltr"><<a href="mailto:bluescreen_avenger@verizon.net" target="_blank">bluescreen_avenger@verizon.net</a>></span> wrote:<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.<br>
<br>
It seems that a recent build error when trying to build Frameworks master against QT 5.4. (well a warning being treated as an error)<br>
<br>
I build all the Frameworks with my own scripts, because I need checkinstall. However, other then changing the prefix to /opt, I am using default configurations, except for turning on -DKDE_ENABLE_EXCEPTIONS, as I turned it on to get Frameworks to compile on 14.04, but I'm not sure if that is needed anymore.<br>
<br>
I am compiling on Ubuntu 14.10, and using the default gcc 4.9<br>
<br>
This is the build error I get<br>
[ 65%] Building CXX object src/platformtheme/CMakeFiles/KDEPlatformTheme.dir/kfiletreeview.cpp.o<br>
/srcbuild/kf5-frameworkintegration/src/platformtheme/kdeplatformsystemtrayicon.cpp: In member function ‘virtual QPlatformMenuItem* SystemTrayMenu::createMenuItem() const’:<br>
/srcbuild/kf5-frameworkintegration/src/platformtheme/kdeplatformsystemtrayicon.cpp:44:35: error: invalid new-expression of abstract class type ‘SystemTrayMenuItem’<br>
     return new SystemTrayMenuItem();<br>
                                   ^<br>
In file included from /srcbuild/kf5-frameworkintegration/src/platformtheme/kdeplatformsystemtrayicon.cpp:20:0:<br>
/srcbuild/kf5-frameworkintegration/src/platformtheme/kdeplatformsystemtrayicon.h:60:7: note:   because the following virtual functions are pure within ‘SystemTrayMenuItem’:<br>
 class SystemTrayMenuItem : public QPlatformMenuItem<br>
       ^<br>
In file included from /srcbuild/kf5-frameworkintegration/src/platformtheme/kdeplatformsystemtrayicon.h:23:0,<br>
                 from /srcbuild/kf5-frameworkintegration/src/platformtheme/kdeplatformsystemtrayicon.cpp:20:<br>
/opt/include/QtGui/5.4.0/QtGui/qpa/qplatformmenu.h:81:18: note:         virtual void QPlatformMenuItem::setIconSize(int)<br>
     virtual void setIconSize(int size) = 0;<br>
                  ^<br>
/srcbuild/kf5-frameworkintegration/src/platformtheme/kdeplatformsystemtrayicon.cpp:45:1: error: control reaches end of non-void function [-Werror=return-type]<br>
 }<br>
 ^<br>
cc1plus: some warnings being treated as errors<br>
<br>
I even tried a clean rebuild of all kde frameworks master, and qt 5.4<br>
<br>
How do I turn off werror?<br>
<br>
Thanks.<br>
_______________________________________________<br>
Kde-frameworks-devel mailing list<br>
<a href="mailto:Kde-frameworks-devel@kde.org">Kde-frameworks-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-frameworks-devel" target="_blank">https://mail.kde.org/mailman/listinfo/kde-frameworks-devel</a><br>
</blockquote></div><br></div><div class="gmail_extra"><a href="https://git.reviewboard.kde.org/r/120422/diff/#">https://git.reviewboard.kde.org/r/120422/diff/#</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">You don't turn off errors... ;)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Aleix</div></div>