Re: Error buildin KDE (KF5)
Hi Guys,I solved the problem on kcoreaddons with solution provided by Allen reported at the end of this e-mail. After that I had to fix some other trivial dependancies problems but now I get a compilation error on kglobalaccel. This time no problems in cmake.log, instead I have the following strange error in the build log Building CXX object src/runtime/plugins/xcb/CMakeFiles/KF5GlobalAccelPrivateXcb.dir/__/__/logging.cpp.o [ 90%] Building CXX object src/runtime/plugins/xcb/CMakeFiles/KF5GlobalAccelPrivateXcb.dir/KF5GlobalAccelPrivateXcb_automoc.cpp.o Scanning dependencies of target kglobalaccel5 In file included from /home/lfranco/devel/kde/src/frameworks/kglobalaccel/src/runtime/logging.cpp:20:0: /home/lfranco/devel/kde/src/frameworks/kglobalaccel/src/runtime/logging_p.h:22:18: fatal error: QDebug: no such file or directory #include ^ compilation terminated. In file included from /home/lfranco/devel/kde/src/frameworks/kglobalaccel/src/runtime/plugins/xcb/kglobalaccel_x11.h:23:0, from /home/lfranco/devel/kde/src/frameworks/kglobalaccel/src/runtime/plugins/xcb/kglobalaccel_x11.cpp:21: /home/lfranco/devel/kde/src/frameworks/kglobalaccel/src/runtime/plugins/xcb/../../kglobalaccel_interface.h:24:19: fatal error: QObject: no such file or directory #include ^ compilation terminated. In file included from /home/lfranco/devel/kde/build/frameworks/kglobalaccel/src/runtime/plugins/xcb/../../../../../../../src/frameworks/kglobalaccel/src/runtime/plugins/xcb/kglobalaccel_x11.h:23:0, from /home/lfranco/devel/kde/build/frameworks/kglobalaccel/src/runtime/plugins/xcb/moc_kglobalaccel_x11.cpp:9, from /home/lfranco/devel/kde/build/frameworks/kglobalaccel/src/runtime/plugins/xcb/KF5GlobalAccelPrivateXcb_automoc.cpp:2: /home/lfranco/devel/kde/build/frameworks/kglobalaccel/src/runtime/plugins/xcb/../../../../../../../src/frameworks/kglobalaccel/src/runtime/plugins/xcb/../../kglobalaccel_interface.h:24:19: fatal error: QObject: no such file or directory #include ^ compilation terminated. [ 93%] [ 96%] [100%] Building CXX object src/runtime/CMakeFiles/kglobalaccel5.dir/main.cpp.o Building CXX object src/runtime/CMakeFiles/kglobalaccel5.dir/kglobalaccel5_automoc.cpp.o Building CXX object src/runtime/CMakeFiles/kglobalaccel5.dir/logging.cpp.o gmake[2]: *** [src/runtime/plugins/xcb/CMakeFiles/KF5GlobalAccelPrivateXcb.dir/kglobalaccel_x11.cpp.o] Errore 1 gmake[2]: *** Attesa dei processi non terminati gmake[2]: *** [src/runtime/plugins/xcb/CMakeFiles/KF5GlobalAccelPrivateXcb.dir/KF5GlobalAccelPrivateXcb_automoc.cpp.o] Errore 1 gmake[2]: *** [src/runtime/plugins/xcb/CMakeFiles/KF5GlobalAccelPrivateXcb.dir/__/__/logging.cpp.o] Errore 1 gmake[1]: *** [src/runtime/plugins/xcb/CMakeFiles/KF5GlobalAccelPrivateXcb.dir/all] Errore 2 gmake[1]: *** Attesa dei processi non terminati In file included from /home/lfranco/devel/kde/src/frameworks/kglobalaccel/src/runtime/main.cpp:22:0: /home/lfranco/devel/kde/src/frameworks/kglobalaccel/src/runtime/kglobalacceld.h:27:33: fatal error: kglobalshortcutinfo.h: no such file or directory #include ^ compilation terminated. gmake[2]: *** [src/runtime/CMakeFiles/kglobalaccel5.dir/main.cpp.o] Errore 1 gmake[2]: *** Attesa dei processi non terminati gmake[1]: *** [src/runtime/CMakeFiles/kglobalaccel5.dir/all] Errore 2 gmake: *** [all] Errore 2 I think that my Qt5 installation is working correctly because I correctly build some tutorial applications and all previous modules against the built KF5 folder. Regarding kglobalshortcutinfo.h it is in the source directory of the kglobalaccel module, but I cannot find it in the build directory. Any ideas? Am I missing something? Has someone ever faced with a similar problem building KF5? Any help would be greatly appreciated.Very thankyou and best regards. Il Sabato 19 Marzo 2016 15:19, Allen Winter ha scritto: See the fix at https://git.reviewboard.kde.org/r/127425/ On Saturday, March 19, 2016 09:57:53 AM Allen Winter wrote: > Same here. > The relevant problem is shown in the cmake.log: > > CMake Warning (dev) at src/lib/CMakeLists.txt:99 (add_library): > Policy CMP0028 is not set: Double colon in target name means ALIAS or > IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. > Use the cmake_policy command to set the policy and suppress this warning. > > Target "KF5CoreAddons" links to target "Threads::Threads" but the target > was not found. Perhaps a find_package() call is missing for an IMPORTED > target, or an ALIAS target is missing? > > > > On Friday, March 18, 2016 10:47:14 PM rafranco.2...@yahoo.it wrote: > > Hi guys, I' m new to this mailing list and to the KDE community. > > I' m a newby in KDE development but I have a not so bad knowledge of Linux. > > I don't know if this is the right place to post these kind of re
Re: Error buildin KDE (KF5)
At least the QtCore and KF5/KGlobalAccel include paths are not added (or mislocated) The key is again the cmake log. On a sidenote: your cmake is terribly outdated. It's listed as minimum for kf5, but even that was wrong (see before issue) and I would not bet even your right arm that it's sufficient for all other repos (despite they may lazily list even older versions as minimum ;-) Cheers, Thomas
Re: Error buildin KDE (KF5)
Thomas Lübking ha scritto: > At least the QtCore and KF5/KGlobalAccel include paths are not added (or > mislocated) > The key is again the cmake log. > > On a sidenote: your cmake is terribly outdated. It's listed as minimum > for kf5, but even that was wrong (see before issue) and I would not bet > even your right arm that it's sufficient for all other repos (despite > they may lazily list even older versions as minimum ;-) Right now we stat that Frameworks can be compiled with 2.8.12, so if it is not possible, it's an error in Frameworks that should be fixed (unless there is a decision to raise that dependency, but that's for the future). Of course, as you point out, other programs (including Plasma) could have different requirements. -- Luigi
Re: Error buildin KDE (KF5)
On Wed, Mar 23, 2016 at 12:07:27AM +0100, Luigi Toscano wrote: Right now we stat that Frameworks can be compiled with 2.8.12, so if it is not possible, it's an error in Frameworks that should be fixed (unless there is a decision to raise that dependency, but that's for the future). There was dependency on some 3.01(?) feature, but afaics, that's been resolved. Cheers, Thomas
Re: Error buildin KDE (KF5)
On Wednesday, March 23, 2016 12:21:54 AM Thomas Lübking wrote: > On Wed, Mar 23, 2016 at 12:07:27AM +0100, Luigi Toscano wrote: > >Right now we stat that Frameworks can be compiled with 2.8.12, so if it is > >not > >possible, it's an error in Frameworks that should be fixed (unless there is a > >decision to raise that dependency, but that's for the future). > > There was dependency on some 3.01(?) feature, but afaics, that's been > resolved. > grantlee requires CMake 3.1 some kdepim libraries require grantlee => upgrade to CMake to 3.1
Re: Error buildin KDE (KF5)
Thank you for your replies and for your hints guys, I' ll try to build it using cmake 3.1 and I' ll let you know what I end up with. best regards Da: Allen Winter A: kde-devel@kde.org Inviato: Mercoledì 23 Marzo 2016 15:48 Oggetto: Re: Error buildin KDE (KF5) On Wednesday, March 23, 2016 12:21:54 AM Thomas Lübking wrote: > On Wed, Mar 23, 2016 at 12:07:27AM +0100, Luigi Toscano wrote: > >Right now we stat that Frameworks can be compiled with 2.8.12, so if it is > >not > >possible, it's an error in Frameworks that should be fixed (unless there is a > >decision to raise that dependency, but that's for the future). > > There was dependency on some 3.01(?) feature, but afaics, that's been > resolved. > grantlee requires CMake 3.1 some kdepim libraries require grantlee => upgrade to CMake to 3.1
Re: Error buildin KDE (KF5)
bject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, const QObject *context, Func2 slot, ^ /usr/include/qt5/QtCore/qobject.h:254:13: note: template argument deduction/substitution failed: /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:190:5: note: mismatched types ‘const typename QtPrivate::FunctionPointer::Object*’ and ‘QPointer’ ); ^ In file included from /usr/include/qt5/QtCore/QObject:1:0, from /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.h:23, from /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:20: /usr/include/qt5/QtCore/qobject.h:285:13: note: template static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, Func2) connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, Func2 slot) ^ /usr/include/qt5/QtCore/qobject.h:285:13: note: template argument deduction/substitution failed: /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:190:5: note: mismatched types ‘const typename QtPrivate::FunctionPointer::Object*’ and ‘QPointer’ ); ^ In file included from /usr/include/qt5/QtCore/QObject:1:0, from /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.h:23, from /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:20: /usr/include/qt5/QtCore/qobject.h:293:13: note: template static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, const QObject *context, Func2 slot, ^ /usr/include/qt5/QtCore/qobject.h:293:13: note: template argument deduction/substitution failed: /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:190:5: note: mismatched types ‘const typename QtPrivate::FunctionPointer::Object*’ and ‘QPointer’ ); ^ gmake[2]: *** [src/server/CMakeFiles/KF5WaylandServer.dir/subcompositor_interface.cpp.o] Errore 1 gmake[2]: *** Attesa dei processi non terminati [ 63%] Building C object src/client/CMakeFiles/KF5WaylandClient.dir/wayland-plasma-window-management-protocol.c.o [ 63%] Building C object src/client/CMakeFiles/KF5WaylandClient.dir/wayland-idle-protocol.c.o [ 64%] [ 64%] Building C object src/client/CMakeFiles/KF5WaylandClient.dir/wayland-fake-input-protocol.c.o Building C object src/client/CMakeFiles/KF5WaylandClient.dir/wayland-shadow-protocol.c.o [ 64%] [ 65%] Building C object src/client/CMakeFiles/KF5WaylandClient.dir/wayland-blur-protocol.c.o Building C object src/client/CMakeFiles/KF5WaylandClient.dir/wayland-contrast-protocol.c.o [ 65%] Building C object src/client/CMakeFiles/KF5WaylandClient.dir/wayland-slide-protocol.c.o [ 66%] Building C object src/client/CMakeFiles/KF5WaylandClient.dir/wayland-dpms-protocol.c.o [ 66%] Building C object src/client/CMakeFiles/KF5WaylandClient.dir/wayland-server-decoration-protocol.c.o [ 66%] Building CXX object src/client/CMakeFiles/KF5WaylandClient.dir/KF5WaylandClient_automoc.cpp.o gmake[1]: *** [src/server/CMakeFiles/KF5WaylandServer.dir/all] Errore 2 gmake[1]: *** Attesa dei processi non terminati Linking CXX shared library libKF5WaylandClient.so [ 66%] Built target KF5WaylandClient gmake: *** [all] Errore 2 I' ve installed wayland 1.9 building it from source. Any ideas. Best regards and thank you... Da: "rafranco.2...@yahoo.it" A: "kde-devel@kde.org" Inviato: Giovedì 24 Marzo 2016 15:44 Oggetto: Re: Error buildin KDE (KF5) Thank you for your replies and for your hints guys, I' ll try to build it using cmake 3.1 and I' ll let you know what I end up with. best regards Da: Allen Winter A: kde-devel@kde.org Inviato: Mercoledì 23 Marzo 2016 15:48 Oggetto: Re: Error buildin KDE (KF5) On Wednesday, March 23, 2016 12:21:54 AM Thomas Lübking wrote: > On Wed, Mar 23, 2016 at 12:07:27AM +0100, Luigi Toscano wrote: > >Right now we stat that Frameworks can be compiled with 2.8.12, so if it is > >not > >possible, it's an error in Frameworks that should be fixed (unless there is a > >decision to raise that dependency, but that's for the future). > > Th
Re: Error buildin KDE (KF5)
Hi guys,kwayland error solved after this release https://quickgit.kde.org/?p=kwayland.git&a=commit&h=34d54f760d2c2ab76a7e7911d5270e491f76ee7f I have gcc 4.8.5 in my distro.Thanks and best regards. Da: "rafranco.2...@yahoo.it" A: "kde-devel@kde.org" Inviato: Sabato 26 Marzo 2016 0:06 Oggetto: Re: Error buildin KDE (KF5) Hi guys, tried to build KF5 with cmake 3.1.3 built from myself and all previous problems are solved, but after fixed some other trivial dependancy problems I get following error building kwayland package: /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp: In member function ‘void KWayland::Server::SubSurfaceInterface::Private::create(KWayland::Server::ClientConnection*, quint32, quint32, KWayland::Server::SurfaceInterface*, KWayland::Server::SurfaceInterface*)’: /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:190:5: error: no matching function for call to ‘QObject::connect(QPointer&, void (QObject::*)(QObject*), KWayland::Server::SubSurfaceInterface* const&, KWayland::Server::SubSurfaceInterface::Private::create(KWayland::Server::ClientConnection*, quint32, quint32, KWayland::Server::SurfaceInterface*, KWayland::Server::SurfaceInterface*)::__lambda2)’ ); ^ /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:190:5: note: candidates are: In file included from /usr/include/qt5/QtCore/QObject:1:0, from /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.h:23, from /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:20: /usr/include/qt5/QtCore/qobject.h:196:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType) static QMetaObject::Connection connect(const QObject *sender, const char *signal, ^ /usr/include/qt5/QtCore/qobject.h:196:36: note: no known conversion for argument 2 from ‘void (QObject::*)(QObject*)’ to ‘const char*’ /usr/include/qt5/QtCore/qobject.h:199:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType) static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal, ^ /usr/include/qt5/QtCore/qobject.h:199:36: note: no known conversion for argument 2 from ‘void (QObject::*)(QObject*)’ to ‘const QMetaMethod&’ /usr/include/qt5/QtCore/qobject.h:475:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal, ^ /usr/include/qt5/QtCore/qobject.h:475:32: note: no known conversion for argument 2 from ‘void (QObject::*)(QObject*)’ to ‘const char*’ /usr/include/qt5/QtCore/qobject.h:213:43: note: template static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, const typename QtPrivate::FunctionPointer::Object*, Func2, Qt::ConnectionType) static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, ^ /usr/include/qt5/QtCore/qobject.h:213:43: note: template argument deduction/substitution failed: /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:190:5: note: mismatched types ‘const typename QtPrivate::FunctionPointer::Object*’ and ‘QPointer’ ); ^ In file included from /usr/include/qt5/QtCore/QObject:1:0, from /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.h:23, from /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:20: /usr/include/qt5/QtCore/qobject.h:245:13: note: template static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object*, Func1, Func2) connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, Func2 slot) ^ /usr/include/qt5/QtCore/qobject.h:245:13: note: template argument deduction/substitution failed: /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_interface.cpp:190:5: note: mismatched types ‘const typename QtPrivate::FunctionPointer::Object*’ and ‘QPointer’ ); ^ In file included from /usr/include/qt5/QtCore/QObject:1:0, from /home/lfranco/devel/kde/src/kde/workspace/kwayland/src/server/subcompositor_inter