This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Building Kwin from source

Tags: None
(comma "," separated)
kanwarp
Registered Member
Posts
3
Karma
0

Building Kwin from source

Fri Jul 29, 2022 6:39 am
After building all 80 dependencies successfully, Kwin build fails at 70% mark with:
Code: Select all
[ 70%] Building CXX object src/xwayland/CMakeFiles/KWinXwaylandServerModule.dir/selection.cpp.o
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp: In member function ‘virtual void KWin::X11StandalonePlatform::createPlatformCursor(QObject*)’:
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:187:10: warning: unused variable ‘c’ [-Wunused-variable]
  187 |     auto c = new X11Cursor(parent, m_xinputIntegration != nullptr);
      |          ^
[ 70%] Building CXX object src/xwayland/CMakeFiles/KWinXwaylandServerModule.dir/transfer.cpp.o
[ 70%] Building CXX object src/xwayland/CMakeFiles/KWinXwaylandServerModule.dir/selection_source.cpp.o
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp: In instantiation of ‘void KWin::X11StandalonePlatform::doUpdateOutputs() [with T = KWin::Xcb::RandR::ScreenResources]’:
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:452:49:   required from here
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::manufacturer’ [-Wmissing-field-initializers]
  563 |                     X11Output::Information information{
      |                                            ^~~~~~~~~~~
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::model’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::serialNumber’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::eisaId’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::edid’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::capabilities’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp: In instantiation of ‘void KWin::X11StandalonePlatform::doUpdateOutputs() [with T = KWin::Xcb::RandR::CurrentResources]’:
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:463:50:   required from here
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::manufacturer’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::model’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::serialNumber’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::eisaId’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::edid’ [-Wmissing-field-initializers]
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:563:44: warning: missing initializer for member ‘KWin::Output::Information::capabilities’ [-Wmissing-field-initializers]
In file included from /usr/include/c++/11/memory:76,
                 from /home/kplaha/Work/Apps/desktop/kde/src/kwin/src/platform.h:19,
                 from /home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.h:11,
                 from /home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:9:
/usr/include/c++/11/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = KWin::XInputIntegration]’:
/usr/include/c++/11/bits/unique_ptr.h:361:17:   required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = KWin::XInputIntegration; _Dp = std::default_delete<KWin::XInputIntegration>]’
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:105:50:   required from here
/usr/include/c++/11/bits/unique_ptr.h:83:23: error: invalid application of ‘sizeof’ to incomplete type ‘KWin::XInputIntegration’
   83 |         static_assert(sizeof(_Tp)>0,
      |                       ^~~~~~~~~~~
[ 70%] Building CXX object src/xwayland/CMakeFiles/KWinXwaylandServerModule.dir/xwayland.cpp.o
[ 70%] Building CXX object src/xwayland/CMakeFiles/KWinXwaylandServerModule.dir/xwldrophandler.cpp.o
gmake[2]: *** [src/backends/x11/standalone/CMakeFiles/KWinX11Platform.dir/build.make:230: src/backends/x11/standalone/CMakeFiles/KWinX11Platform.dir/x11_standalone_platform.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:8871: src/backends/x11/standalone/CMakeFiles/KWinX11Platform.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 70%] Building CXX object src/xwayland/CMakeFiles/KWinXwaylandServerModule.dir/xwaylandlauncher.cpp.o
[ 70%] Linking CXX executable ../../../../bin/testShadow
[ 70%] Linking CXX executable ../../../../bin/testFakeInput
[ 70%] Linking CXX executable ../../../../bin/testServerSideDecoration
[ 70%] Linking CXX executable ../../../../bin/testPlasmaShell
[ 70%] Linking CXX executable ../../../../bin/testDataDevice
[ 70%] Built target testShadow
[ 70%] Linking CXX executable ../../../../bin/testDragAndDrop
[ 70%] Built target testFakeInput
[ 70%] Built target testServerSideDecoration
[ 70%] Built target testPlasmaShell
[ 70%] Built target testDataDevice
[ 70%] Built target KWinXwaylandServerModule
[ 70%] Built target testDragAndDrop
gmake: *** [Makefile:146: all] Error 2


OS: Kubuntu 22.04 LTS

Please help.
User avatar
mjobin
Registered Member
Posts
40
Karma
0
OS

Re: Building Kwin from source

Thu Aug 25, 2022 11:34 pm
This is the important bit.

kanwarp wrote:
Code: Select all
In file included from /usr/include/c++/11/memory:76,
                 from /home/kplaha/Work/Apps/desktop/kde/src/kwin/src/platform.h:19,
                 from /home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.h:11,
                 from /home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:9:
/usr/include/c++/11/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = KWin::XInputIntegration]’:
/usr/include/c++/11/bits/unique_ptr.h:361:17:   required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = KWin::XInputIntegration; _Dp = std::default_delete<KWin::XInputIntegration>]’
/home/kplaha/Work/Apps/desktop/kde/src/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:105:50:   required from here
/usr/include/c++/11/bits/unique_ptr.h:83:23: error: invalid application of ‘sizeof’ to incomplete type ‘KWin::XInputIntegration’
   83 |         static_assert(sizeof(_Tp)>0,
      |                       ^~~~~~~~~~~



Are you on latest "master" ?
it could be a recent changes.
I would `git log src/platform.h src/backends/x11/standalone/x11_standalone_platform.*` looking for first hints...

maybe you could ask on #kwin (IRC/Matrix)

you should definitely specify the version you are trying to build, ideally with exact gitsha
and your Framework version.

latest `master` branch requires 5.97 which I don't have locally


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]