Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. GamePad example app fails after deployment
Forum Updated to NodeBB v4.3 + New Features

GamePad example app fails after deployment

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 828 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.
  • C Offline
    C Offline
    CodeWranglerRick
    wrote on last edited by
    #1

    I installed Qt 5.7, built the 'quickGampad' example app within QtCreator, and it ran fine (all XBox360 controls were correctly detected, meaning they caused changes in the UI). However, when I ran 'windeployqt' to build a directory that I could move to another machine, and started the app from there (even on the same machine), it failed to respond to controls (it started OK, displayed the image of the controller, but pressing the controller switches/sticks did NOT result in corresponding movements on-screen).

    I think I must have all the right DLLs in the deploy directory, or Windows would complain when loading the app, right? Is there something else I need to do to have the Gamepad class work correctly outside QtCreator?

    Here's the windeployqt command-line I used:

    windeployqt --dir deploy --qmldir quickGamepad/qml build-quickGamepad-Desktop_Qt_5_7_0_MinGW_32bit-Release/release/quickGamepad.exe

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

      Hi and welcome to devnet,

      In this kind of cases it might be a plugin which is missing a dependency and thus doesn't load. You can compare the content for your deployed applicatin with the one from your QT installation. Dependency Walker might also be a good tool to check if you are missing something.

      Hope it helps

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

        Thanks! This did turn out to be the problem - I manually created a plugins/gamepads folder under my deployment folder, coped the xinputgamepad.dll file from the Qt installation, and now the example application (and my real application) works correctly.

        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