Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. QGamePad fail on QT5.7 OSX
Qt 6.11 is out! See what's new in the release blog

QGamePad fail on QT5.7 OSX

Scheduled Pinned Locked Moved Unsolved Game Development
5 Posts 2 Posters 2.7k 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.
  • Q Offline
    Q Offline
    quadbyte
    wrote on last edited by
    #1

    Hello,

    I try do run QGamePad simple example for official 5.7 package, but get :

    21:12:38.857 [D] QFactoryLoader::QFactoryLoader() checking directory path "/Users/thierry/Qt5.7.0/5.7/clang_64/plugins/gamepads" ... (plugin/qfactoryloader.cpp:106, void QFactoryLoader::update())
    21:12:38.857 [D] QFactoryLoader::QFactoryLoader() checking directory path "/Users/thierry/Dev/QuarkEmu/bin/QuarkEmuDebug.app/Contents/MacOS/gamepads" ... (plugin/qfactoryloader.cpp:106, void QFactoryLoader::update())
    21:12:38.857 [D] Available backends: () (qgamepadmanager.cpp:78, void QGamepadManager::loadBackend())
    21:12:38.857 [D] Using dummy backend (qgamepadmanager.cpp:93, void QGamepadManager::loadBackend()) 
    
    

    in dir clang_64/plugins not gamepad dir is present. Does I should recompile SDL2 backend myself ?

    Could you help please ?

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

      Hi,

      From a quick look at the code base, yes, you likely have to build the SDL plugin.

      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
      • Q Offline
        Q Offline
        quadbyte
        wrote on last edited by
        #3

        Thanks for to quick answer. I never do that before for plugin. I open 5.7/Src/qtgamepad/src/plugins/gamepad/sdl2/sdl2.pro with qtcreator and try to compile but get error:

        /Users/thierry/Qt5.7.0/5.7/clang_64/mkspecs/features/qt_plugin.prf:51: Cannot write file /mkspecs/modules-inst/qt_plugin_sdl2gamepad.pri: Cannot create parent directory
        Project ERROR: Aborting.
        15:12:25: Le processus "/Users/thierry/Qt5.7.0/5.7/clang_64/bin/qmake" s'est terminé avec le code 3.
        Erreur lors de la compilation/déploiement du projet sdl2 (kit : Desktop Qt 5.7.0 clang 64bit)
        
        

        so I suppose I should use qmake, which params ?

        Could you please help again ?

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          quadbyte
          wrote on last edited by
          #4

          Ok I succeed to compile SDL2 framework on OSX + succeed to compile plugin for Qt and install them, but Simple QGamePad exemple fail to found gamepad again ...

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

            Did you instal the plugin ?

            You can set the QT_DEBUG_PLUGINS environment variable to one to see what is happening with the plugin.

            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

            • Login

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