Qt platform plugin found yet not found
-
@aran said:
my app still crashes...
- Can you build and run your app natively in Linux?
- Can you deploy a simple "Hello World" program to Windows?
-
-
My app works just fine in Linux, that's where I'm developing it and that's where it's used mostly.
-
Good question, I give that a go tomorrow (it's too late for that today... zzzzz)
-
-
Sorry for the late reply, had a crazy week...
But I eventually did manage to get my app working on Windows!! I had a few subfolders from the lib/qt/qml folder missing. Two slightly odd things I noticed:
- If I don't include Qt5Multimedia.dll and Qt5MultimediaQuick_p.dll, then my app crashes, but it doesn't complain about it missing (one of the reasons it took me a while to figure that out). Also dependency walker didn't show me that one as 'missing'...
- If some of the *.a files are present, they can cause trouble. In particular in the case of the platforms/ subfolder. If I don't remove the qwindows.a file and thus both qwindows.{a,dll} are in there, then I get the error message I posted in my initial post. Could it be, that for some reason, that Qt (when attempting to load the platform plugin) only considers the filename without the ending? Would be weird, but it kinda seems like that...
Anyways, it's working just fine now. Well, almost: I can't display gif or tiff images in Windows yet. Although, the imageformats/ subfolder contains the dll plugins for both of them. I tried to inspect them (using 'nm' on Linux) and didn't spot any missing dll dependency. Anybody any thoughts what I could try?
-
@aran said:
I had a few subfolders from the lib/qt/qml folder missing.
...
I can't display gif or tiff images in Windows yet. Although, the imageformats/ subfolder contains the dll plugins for both of them. I tried to inspect them (using 'nm' on Linux) and didn't spot any missing dll dependency. Anybody any thoughts what I could try?
As I said in my previous post, follow the instructions under "Initial deployment (Quick and dirty)" at http://wiki.qt.io/Deploy_an_Application_on_Windows
Plugins are loaded at runtime, and they won't be detected by dependency checking tools.
-
@JKSH said:
As I said in my previous post, follow the instructions under "Initial deployment (Quick and dirty)" at http://wiki.qt.io/Deploy_an_Application_on_Windows
Plugins are loaded at runtime, and they won't be detected by dependency checking tools.
Well, the way it is described in the wiki is how I usually start, but that actually didn't work at all, it crashes with the error mentioned in my first post.
Though, I guess, that the problem might have been with the *.a files, that seem to cause troubles (even though the shouldn't). I'll try to do the same thing again, and this time I'll delete all the *.a files before testing anything... -
What do you mean by "other dependency for qwindows.dll"? I only have that one, in the platforms subfolder. Copying it into the exe folder doesn't change anything...
21/26