https://bugs.kde.org/show_bug.cgi?id=516886

            Bug ID: 516886
           Summary: Kwin game controller plugin fails to build on 32 bit
                    architectures with error: ‘struct input_event’ has no
                    member named ‘time’
    Classification: Plasma
           Product: kwin
      Version First 6.6.1
       Reported In:
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: grave
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Plasma Kwin 6.6.x
Linux: Ubuntu 26.04/Debian
Qt 6.10.2

Kwin game controller plugin fails to build on 32 bit architectures (e.g. armf,
i386) with error: ‘struct input_event’ has no member named ‘time’.

Therefore on current Ubuntu 26.04 LTS builds it has been necessary to disable
the build of the plugin.

Please see the issue as documented on the Debian wiki:

https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-25_.2BIBg-struct_input_event.2BIBk_has_no_member_named_.2BIBg-time.2BIBk-

Extract of the build log on armhf in Ubuntu is below.

/<<PKGBUILDDIR>>/src/plugins/gamecontroller/emulatedinputdevice.cpp: In member
function ‘void KWin::EmulatedInputDevice::evkeyMapping(input_event*)’:
/<<PKGBUILDDIR>>/src/plugins/gamecontroller/emulatedinputdevice.cpp:77:69:
error: ‘struct input_event’ has no member named ‘time’
   77 |     const std::chrono::microseconds time =
std::chrono::seconds(ev->time.tv_sec) +
std::chrono::microseconds(ev->time.tv_usec);
      |                                                                    
^~~~
/<<PKGBUILDDIR>>/src/plugins/gamecontroller/emulatedinputdevice.cpp:77:114:
error: ‘struct input_event’ has no member named ‘time’
   77 |     const std::chrono::microseconds time =
std::chrono::seconds(ev->time.tv_sec) +
std::chrono::microseconds(ev->time.tv_usec);
      |                                                                        
                                         ^~~~
/<<PKGBUILDDIR>>/src/plugins/gamecontroller/emulatedinputdevice.cpp: In member
function ‘void KWin::EmulatedInputDevice::evabsMapping(input_event*)’:
/<<PKGBUILDDIR>>/src/plugins/gamecontroller/emulatedinputdevice.cpp:119:69:
error: ‘struct input_event’ has no member named ‘time’
  119 |     const std::chrono::microseconds time =
std::chrono::seconds(ev->time.tv_sec) +
std::chrono::microseconds(ev->time.tv_usec);
      |                                                                    
^~~~
/<<PKGBUILDDIR>>/src/plugins/gamecontroller/emulatedinputdevice.cpp:119:114:
error: ‘struct input_event’ has no member named ‘time’
  119 |     const std::chrono::microseconds time =
std::chrono::seconds(ev->time.tv_sec) +
std::chrono::microseconds(ev->time.tv_usec);
      |                                                                        
                                         ^~~~
make[3]: ***
[src/plugins/gamecontroller/CMakeFiles/gamecontroller.dir/build.make:158:
src/plugins/gamecontroller/CMakeFiles/gamecontroller.dir/emulatedinputdevice.cpp.o]
Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
make[2]: *** [CMakeFiles/Makefile2:21573:
src/plugins/gamecontroller/CMakeFiles/gamecontroller.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to