davidedmundson / xembed-sni-proxy

Convert XEmbed system tray icons to SNI icons
GNU General Public License v2.0
32 stars 6 forks source link

Failed build commit 3c39ea8 #24

Closed FadeMind closed 8 years ago

FadeMind commented 8 years ago

Error: main.cpp:49:11: error: invalid use of incomplete type 'class QSessionManager'

Commit 3c39ea8a8e398deda82d0699c2b118c4a36d0d80

Build log: https://pastebin.com/raw.php?i=emm88ZcQ

Lastest lines:

[ 92%] Building CXX object CMakeFiles/xembedsniproxy.dir/xembedsniproxy_automoc.cpp.o
/home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/main.cpp: In lambda function:
/home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/main.cpp:49:11: error: invalid use of incomplete type 'class QSessionManager'
         sm.setRestartHint(QSessionManager::RestartNever);
           ^
In file included from /usr/include/qt/QtGui/QGuiApplication:1:0,
                 from /home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/main.cpp:21:
/usr/include/qt/QtGui/qguiapplication.h:47:7: note: forward declaration of 'class QSessionManager'
 class QSessionManager;
       ^
/home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/main.cpp:49:27: error: incomplete type 'QSessionManager' used in nested name specifier
         sm.setRestartHint(QSessionManager::RestartNever);
                           ^
/home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/sniproxy.cpp: In constructor 'SNIProxy::SNIProxy(xcb_window_t, QObject*)':
/home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/sniproxy.cpp:126:53: warning: 'NETWinInfo::NETWinInfo(xcb_connection_t*, xcb_window_t, xcb_window_t, NET::Properties, NET::Role)' is deprecated [-Wdeprecated-declarations]
     NETWinInfo wm(c, m_containerWid, screen->root, 0);
                                                     ^
In file included from /home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/sniproxy.cpp:39:0:
/usr/include/KF5/KWindowSystem/netwm.h:988:30: note: declared here
     KWINDOWSYSTEM_DEPRECATED NETWinInfo(xcb_connection_t *connection, xcb_window_t window,
                              ^
/home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/sniproxy.cpp: In member function 'void SNIProxy::sendClick(uint8_t, int, int)':
/home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/sniproxy.cpp:322:69: warning: narrowing conversion of 'x' from 'int' to 'uint32_t {aka unsigned int}' inside { } [-Wnarrowing]
     const uint32_t config_vals[4] = {x, y, s_embedSize, s_embedSize };
                                                                     ^
/home/tomasz/xembed-sni-proxy-git/src/xembed-sni-proxy/sniproxy.cpp:322:69: warning: narrowing conversion of 'y' from 'int' to 'uint32_t {aka unsigned int}' inside { } [-Wnarrowing]
CMakeFiles/xembedsniproxy.dir/build.make:84: recipe for target 'CMakeFiles/xembedsniproxy.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/xembedsniproxy.dir/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/xembedsniproxy.dir/all' failed
make[1]: *** [CMakeFiles/xembedsniproxy.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
angrylinuxuser commented 8 years ago

missing #include ?

davidedmundson commented 8 years ago

sigh Fixed.

I keep doing this at the moment, as the code is being merged into plasma-workspace and I have to keep code in two places in sync.