The build cannot find the "Qt platform plugin "windows"
AnsweredHi,
I have built the version 5.0 using Visual Studio.
After the successful build, when trying to run the executable, it shows this error:

bits on this:
1. This is a x64-Debug build, version 5.0 and server version 5.0.0.36812
2. I am aware that during the build the cmakeSettings.json file has to have the correct path of qt binaries for the executable to be able to run.

as you can see, the cmakesetting.json already has the correct path, which has all the qt binary files as shown below.
Now despite having the QT binaries and its path correctly set and after successful build, I failed to understand the reason behind the application does not starting giving the error:
The application failed to start because no QT platform plugin could be initialized.
One line above It also says:
Could not find the QT platform plugin "windows" in "".
Can anyone help regarding this? My hunch is that it's not able to find the qt platform plugin at the path "", obviously because that's an empty string. But where is it reading this string from? is there any file like a config file that I can go and edit this path and omit it with the correct path I displayed above. This shouldn't have happened once I already gave the correct path in cmake file.
The same error comes when we try to run the executable from "play button" on Visual Studio(Debug mode)
Please help! I can provide any further information.
-
Hello,
Could not find the QT platform plugin "windows" in "".
This bug has been fixed. Please pull the repo and update to the latest commit in the branch you need.
0 -
I have just rechecked. The bug persists. It's my bad.
Will keep you updated here.
0 -
Hi,
Please, pull the latest changes from the repo. Several bugs have been fixed since then.
0
Please sign in to leave a comment.
Comments
3 comments