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. QT6.6.1 Compile Error: Could not find feature c++11
Forum Updated to NodeBB v4.3 + New Features

QT6.6.1 Compile Error: Could not find feature c++11

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 5 Posters 1.3k Views 2 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.
  • O Offline
    O Offline
    osos11
    wrote on last edited by osos11
    #1

    Hi,
    I am using Ubuntu 22.04. I want to compile qgamepad for Qt 6.6.1. I compiled it for 6.5.3 before and I'm still using it on same PC. I am using this repo : https://github.com/qt/qtgamepad
    When I try it in Qt 6.6.1, I get an error like the one below.

    Can anyone help?

    My command : /opt/Qt/6.6.1/gcc_64/bin/qmake -r ./qtgamepad.pro

    Output:

    Running configuration tests...
    Done running configuration tests.
    
    Configure summary:
    
    Qt Gamepad:
      SDL2 ................................... yes
    
    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into '/opt/Qt/6.6.1/gcc_64'.
    
    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.
    
    Reading /home/hmk01/qtgamepad/src/src.pro
     Reading /home/hmk01/qtgamepad/src/gamepad/gamepad.pro
    Project ERROR: Could not find feature c++11.```
    sierdzioS 1 Reply Last reply
    0
    • O osos11

      Hi,
      I am using Ubuntu 22.04. I want to compile qgamepad for Qt 6.6.1. I compiled it for 6.5.3 before and I'm still using it on same PC. I am using this repo : https://github.com/qt/qtgamepad
      When I try it in Qt 6.6.1, I get an error like the one below.

      Can anyone help?

      My command : /opt/Qt/6.6.1/gcc_64/bin/qmake -r ./qtgamepad.pro

      Output:

      Running configuration tests...
      Done running configuration tests.
      
      Configure summary:
      
      Qt Gamepad:
        SDL2 ................................... yes
      
      Qt is now configured for building. Just run 'make'.
      Once everything is built, you must run 'make install'.
      Qt will be installed into '/opt/Qt/6.6.1/gcc_64'.
      
      Prior to reconfiguration, make sure you remove any leftovers from
      the previous build.
      
      Reading /home/hmk01/qtgamepad/src/src.pro
       Reading /home/hmk01/qtgamepad/src/gamepad/gamepad.pro
      Project ERROR: Could not find feature c++11.```
      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @osos11 do not install Qt to /opt if you can avoid it, it often causes trouble. Use your home directory instead, it makes handling various Qt versions much easier.

      The module you mention clearly states it is for Qt 5, not Qt 6 so that might be the reason for build failure. Qt 5 was using qmake to build modules, but Qt 6 uses cmake. It is a big change.

      (Z(:^

      O 1 Reply Last reply
      1
      • sierdzioS sierdzio

        @osos11 do not install Qt to /opt if you can avoid it, it often causes trouble. Use your home directory instead, it makes handling various Qt versions much easier.

        The module you mention clearly states it is for Qt 5, not Qt 6 so that might be the reason for build failure. Qt 5 was using qmake to build modules, but Qt 6 uses cmake. It is a big change.

        O Offline
        O Offline
        osos11
        wrote on last edited by
        #3

        @sierdzio
        I compiled the module for Qt 6.5.3 before and I'm still using it on same PC. The module works nice on 6.5.3.
        I think, there are huge differences between qt6.5 and 6.6.

        Also, I tried it on another PC where Qt was installed in /home. Same error occurs.

        sierdzioS 1 Reply Last reply
        0
        • O osos11

          @sierdzio
          I compiled the module for Qt 6.5.3 before and I'm still using it on same PC. The module works nice on 6.5.3.
          I think, there are huge differences between qt6.5 and 6.6.

          Also, I tried it on another PC where Qt was installed in /home. Same error occurs.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @osos11 Could be a Qt bug, or some code was removed in Qt 6.6 (it does clean up some old leftovers from Qt 5). Perhaps best if you contact the people behind QtGamepad.

          (Z(:^

          semlanikS 1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            There's a thread on the development mailing list about bringing Qt Gamepad to Qt 6. You might want to check it.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • sierdzioS sierdzio

              @osos11 Could be a Qt bug, or some code was removed in Qt 6.6 (it does clean up some old leftovers from Qt 5). Perhaps best if you contact the people behind QtGamepad.

              semlanikS Offline
              semlanikS Offline
              semlanik
              wrote on last edited by
              #6

              @sierdzio It's not a bug, the qmake build procedures were removed. All Qt modules need to either be ported to CMake, or use the public qmake API.

              O 1 Reply Last reply
              2
              • semlanikS semlanik

                @sierdzio It's not a bug, the qmake build procedures were removed. All Qt modules need to either be ported to CMake, or use the public qmake API.

                O Offline
                O Offline
                osos11
                wrote on last edited by osos11
                #7

                Thanks for everyone who write answer.

                @SGaist I checked the link. I found a repo in the link. I cloned the github repository mentioned in the link and installed it on Qt6.6.1. It works fine.

                The repo : https://github.com/pumphaus/qtgamepadlegacy

                1 Reply Last reply
                1
                • O osos11 has marked this topic as solved on
                • I Offline
                  I Offline
                  imperador
                  wrote on last edited by
                  #8

                  @osos11 How did you go about installing it from that repo?

                  SGaistS 1 Reply Last reply
                  0
                  • I imperador

                    @osos11 How did you go about installing it from that repo?

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @imperador hi and welcome to devnet,

                    • Clone the project
                    • Create a build folder
                    • Use the qt-cmake wrapper of the version of Qt you want to configure and build the project
                    • Install the module
                    • Hack away with your new module

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • I Offline
                      I Offline
                      imperador
                      wrote on last edited by imperador
                      #10

                      @SGaist Thanks! I was having problems with some modules not becoming QML elements, but now I solved it with your tips.

                      If anyone end up having the same problem, move the QGamepad, QGamepadManager and QGamepadKeyNavigation to the imports folders and adjust their headers accordingly. The QML elements will be generated when you run cmake and you can install them normally. Everything is fully working on Qt6.6 with android

                      1 Reply Last reply
                      0

                      • Login

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