Problem building QT 5.8.0 on CentOS 6.8
-
Hi all,
I'm trying to build QT using the qt-everywhere-opensource package on a 32 bit CentOS 6.8 machine and I have run into a problem with missing BTN_TRIGGER_HAPPYXX definitions. It seems that those items were defined in the file input.h in the 2.6.34rc1 and later kernels. The CentOS kernel I have (which I think is the latest is 2.6.32.The file ./qtgamepad/src/plugins/gamepads/evdev/qevdevgamepadbackend.cpp uses declarations for BTN_TRIGGER_HAPPY1 through BTN_TRIGGER_HAPPY4. Adding the lines:
#define BTN_TRIGGER_HAPPY1 0x2c0
#define BTN_TRIGGER_HAPPY2 0x2c1
#define BTN_TRIGGER_HAPPY3 0x2c2
#define BTN_TRIGGER_HAPPY4 0x2c3
allows the build to succeed on my CentOS. I just added them to the .cpp source file directly, though I know that's not the correct way to go about it.Anyhow, I thought I'd share this in case anyone else had a similar problem.
-
@Ron-Christie 2.6, wow. :) That was many many years ago, lol.
Thanks for sharing just in case someone else runs into that.
-
This is now fixed in Qt 5.9. See https://bugreports.qt.io/browse/QTBUG-74219