Registered Member
|
I am trying to build KF5. The error I get is that a class is not recognized but the right header is indeed included in the cpp file. The same error occurs for plasma-workspace.
Scanning dependencies of target kstart5 [ 92%] Building CXX object kstart/CMakeFiles/kstart5.dir/kstart.cpp.o /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:182:2: warning: #warning "Porting required" [-Wcpp] #warning "Porting required" ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:215:2: warning: #warning "Porting required." [-Wcpp] #warning "Porting required." ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp: In constructor 'KStart::KStart()': /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:71:5: error: 'NETRootInfo' was not declared in this scope NETRootInfo x; ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:71:17: error: expected ';' before 'x' NETRootInfo x; ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:72:17: error: expected ';' before 'i' NETRootInfo i( QX11Info::connection(), NET::Supported ); ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:73:20: error: 'i' was not declared in this scope bool useRule = i.isSupported( NET::WM2KDETemporaryRules ); ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp: In member function 'void KStart::sendRule()': /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:111:5: error: 'KXMessages' was not declared in this scope KXMessages msg; ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:111:16: error: expected ';' before 'msg' KXMessages msg; ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:129:24: error: incomplete type 'NETWinInfo' used in nested name specifier || desktop == NETWinInfo::OnAllDesktops ) { ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:156:5: error: 'msg' was not declared in this scope msg.broadcastMessage( "_KDE_NET_WM_TEMPORARY_RULES", message, -1 ); ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp: In member function 'void KStart::windowAdded(WId)': /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:166:86: warning: 'static KWindowInfo KWindowSystem::windowInfo(WId, NET::Properties, NET::Properties2)' is deprecated (declared at /opt/kf5/include/KF5/KWindowSystem/kwindowsystem.h:105) [-Wdeprecated-declarations] KWindowInfo info = KWindowSystem::windowInfo( w, NET::WMWindowType | NET::WMName ); ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp: In member function 'void KStart::applyStyle(WId)': /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:251:32: error: variable 'NETWinInfo info' has initializer but incomplete type NETWinInfo info( QX11Info::connection(), w, QX11Info::appRootWindow(), NET::WMState ); ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:254:24: error: incomplete type 'NETWinInfo' used in nested name specifier || desktop == NETWinInfo::OnAllDesktops ) ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp: In function 'int main(int, char**)': /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:295:24: warning: 'K4AboutData' is deprecated (declared at /opt/kf5/include/KF5/KDELibs4Support/k4aboutdata.h:199) [-Wdeprecated-declarations] K4AboutData aboutData( "kstart", 0, ki18n("KStart"), PROJECT_VERSION, ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:310:19: warning: 'KCmdLineOptions' is deprecated (declared at /opt/kf5/include/KF5/KDELibs4Support/kcmdlineargs.h:53) [-Wdeprecated-declarations] KCmdLineOptions options; ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:343:31: warning: 'KComponentData' is deprecated (declared at /opt/kf5/include/KF5/KDELibs4Support/kcomponentdata.h:51) [-Wdeprecated-declarations] KComponentData componentData( &aboutData ); ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:346:17: warning: 'KCmdLineArgs' is deprecated (declared at /opt/kf5/include/KF5/KDELibs4Support/kcmdlineargs.h:286) [-Wdeprecated-declarations] KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:363:17: error: incomplete type 'NETWinInfo' used in nested name specifier desktop = NETWinInfo::OnAllDesktops; ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:431:7: error: 'NETRootInfo' was not declared in this scope NETRootInfo i( QX11Info::connection(), NET::Supported ); ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:431:19: error: expected ';' before 'i' NETRootInfo i( QX11Info::connection(), NET::Supported ); ^ /usr/src/kde5/sources/kde/workspace/kde-cli-tools/kstart/kstart.cpp:432:11: error: 'i' was not declared in this scope if( i.isSupported( NET::FullScreen )) { ^ kstart/CMakeFiles/kstart5.dir/build.make:54: recipe for target 'kstart/CMakeFiles/kstart5.dir/kstart.cpp.o' failed make[2]: *** [kstart/CMakeFiles/kstart5.dir/kstart.cpp.o] Error 1 CMakeFiles/Makefile2:1236: recipe for target 'kstart/CMakeFiles/kstart5.dir/all' failed make[1]: *** [kstart/CMakeFiles/kstart5.dir/all] Error 2 Makefile:116: recipe for target 'all' failed make: *** [all] Error 2 |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]