Web lists-archives.com

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<KWayland::Server::SurfaceInterface>&, 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<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
     static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::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<Func>::Object*’ and ‘QPointer<KWayland::Server::SurfaceInterface>’
     );
     ^
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<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
             connect(const typename QtPrivate::FunctionPointer<Func1>::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<Func>::Object*’ and ‘QPointer<KWayland::Server::SurfaceInterface>’
     );
     ^
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:254:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
             connect(const typename QtPrivate::FunctionPointer<Func1>::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<Func>::Object*’ and ‘QPointer<KWayland::Server::SurfaceInterface>’
     );
     ^
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<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
             connect(const typename QtPrivate::FunctionPointer<Func1>::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<Func>::Object*’ and ‘QPointer<KWayland::Server::SurfaceInterface>’
     );
     ^
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<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
             connect(const typename QtPrivate::FunctionPointer<Func1>::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<Func>::Object*’ and ‘QPointer<KWayland::Server::SurfaceInterface>’
     );
     ^
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.2014@xxxxxxxx" <rafranco.2014@xxxxxxxx>
A: "kde-devel@xxxxxxx" <kde-devel@xxxxxxx>
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 <winter@xxxxxxx>
A: kde-devel@xxxxxxx
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