Solved GamePad example app fails after deployment
-
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
-
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
-
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
-
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.