[Development] Qt-5.9.0-beta on CentOS-6.8: one minor BTN_TRIGGER_HAPPY bug

Thiago Macieira thiago.macieira at intel.com
Fri Mar 24 00:42:43 CET 2017


On quinta-feira, 23 de março de 2017 14:54:20 PDT Ed Leaver wrote:
> Hi Thiago,
> 
> BTN_TRIGGER_HAPPYxy are a group of kernel #defines, apparently for
> drivers not supported by the 2.6 kernels. Here are my dev notes:
> 
>       ... Qt-5.8.0 then compiled against gcc-5.4.0 with only one minor
>     problem:
>    
> qt-everywhere-opensource-src-5.8.0/qtgamepad/src/plugins/gamepads/evdev/qev
> devgamepadbackend.cpp does not compile on CentOS-6.8 (apparently) because
> the
>     2.6.32-642.el6.x86_64 kernel is too old
>     and does not define BTN_TRIGGER_HAPPYn (n=1,2,3,4). On Fedora 25
>     these are in
>    
> /lib/modules/4.9.14-200.fc25.x86_64/build/include/dt-bindings/input/linux-e
> vent-codes.h I patched qevdevgamepadbackend.cpp with those values:
>     #ifndef BTN_TRIGGER_HAPPY1
>              #define BTN_TRIGGER_HAPPY1 0x2c0
>              #define BTN_TRIGGER_HAPPY2 0x2c1
>              #define BTN_TRIGGER_HAPPY3 0x2c2
>              #define BTN_TRIGGER_HAPPY4 0x2c3
>     #endif
>     directly above QEvdevGamepadDevice::resetConfiguration(), and then
>     the whole Qt-5.8.0 source compiles
>     just fine (gcc-5.4.0), although there is a minor issue with final

Please report this issue up to here. The developer will determine whether the 
#define is acceptable or not.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list