Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem building QT 5.8.0 on CentOS 6.8
Forum Updated to NodeBB v4.3 + New Features

Problem building QT 5.8.0 on CentOS 6.8

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ron Christie
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    3
    • R Ron Christie

      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.

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      @Ron-Christie 2.6, wow. :) That was many many years ago, lol.

      Thanks for sharing just in case someone else runs into that.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      2
      • P Offline
        P Offline
        pgridin
        wrote on last edited by pgridin
        #3

        Thanks. I have inserted these defines in "configure ... -D BTN_TRIGGER_HAPPY1=0x2c0 ...", this works.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TonyS
          wrote on last edited by
          #4

          This is now fixed in Qt 5.9. See https://bugreports.qt.io/browse/QTBUG-74219

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved