I created a DLL that uses some functions from QTWebKit, which I then get through JNA on the java side. On my machine (on which QT is installed explicitly) it works fine. When I transfer it to another machine to check it that does not have qt, I get:
Failed to load the windows plugin. Available platforms:
My google fu pointed out to me that I also need to include the DLLs, namely qwindows.dll and qminimal.dll . According to the QT5 documentation in βDeploying an Application on Windows,β it appears that when you deploy the executable, it will be located in the folder named platforms in the save folder as the executable.
Unlike custom plugins, Qt plugins must be placed in subdirectories corresponding to the type of plugin. Since we want to deploy the Windows platform plugin, it must be placed in the "platforms" subdirectory.
This brings me to my dilemma. I have a dll, not an executable. Therefore, I do not know where to place the folder with the platform. I tried to put it in the same directory in which I am running my test application, but this did not work.
So where to put the platform directory so QT can find it?
Edit: Since I did not have much feedback, perhaps there is a better way to tell / approach this question.
How to find out QT, where to find DLL platforms?
There seems to be a way to do this. When I run it on my machine, it finishes the search in C:\Qt2\Qt5.0.2\5.0.2\msvc2012_64\plugins\platforms . So it seems that m
source share