Failed to start because it could not find or load the Qt platform plugin "windows"
-
Hi All,
I follow this document and I put next to my executable platforms with the dlls inside.
http://qt-project.org/wiki/Deploy_an_Application_on_Windowsbut I'm still geting this error:
This application failed to start because it could not find or load the Qt platform plugin "windows".
Available platform plugins are: minimal, offscreen, windows.
Reinstalling the application may fix this problem.I build with visual studio 2010, using Qt5.3 on windows 7 ,configured with CMake.
Any suggestion please?regards,
Daniele -
Hi, I have a "blog post":http://www.tripleboot.org/?p=138 about this problem.
It's for deploying a bare bones app but maybe it'll help you too. -
unfortunately no good news.
One question...with dependency walker I check if qwindows needs dependencies and it told me that it misses QtCore and QtGui, that are in the bin dir with the executable.
When I launch the executable does it resolve the dll path for plugins considering QtCore and QtGui in bin dir, right?
I would not want to change something in environmental variables. -
Hi,
- Can you post a screenshot of your deployment folder? (Upload it to somewhere like imgur or Google Drive and post a link here)
- Run Dependency Walker on your .exe file, and click Profile -> Start Profiling… What do you see?
-
Hi
-
http://imgur.com/IOzEcGj inside platforms dir there is the content of platforms in Qt5.3/plugins/platform
-
http://pastebin.com/sfaLzXjW it's weird...
LoadLibraryW("C:\Qt\Qt5.3.0\5.3\msvc2010_opengl\plugins\platforms\qwindowsd.dll") returned NULL. Error: The specified procedure could not be found (127).
is the red line...but it's over there. :/
Maybe depends on something else, infact if I open it separetely with DW, gives me an error, but there is no clue of what misses (a parte qtcore and qtgui, which should be loaded when the executable is launched)
-
-
In Release the same thing without assert dialog.
And I've compiled several apps, with cmake or directly from QtCreator, and don't raise that error.Instead from DW log I don't understand this section:
LoadLibraryW("C:\Qt\Qt5.3.0\5.3\msvc2010_opengl\plugins\platforms\qwindowsd.dll") called from "QT5CORED.DLL" at address 0x664F8B15.
Loaded "QWINDOWSD.DLL" at address 0x0F500000. Successfully hooked module.
Loaded "WINMM.DLL" at address 0x74570000. Successfully hooked module.Unloaded "QWINDOWSD.DLL" at address 0x0F500000.
Unloaded "WINMM.DLL" at address 0x74570000.LoadLibraryW("C:\Qt\Qt5.3.0\5.3\msvc2010_opengl\plugins\platforms\qwindowsd.dll") returned NULL. Error: The specified procedure could not be found (127).
Why the first time is ok, and then it unloads QWINDOWSD.DLL for trying to load it again unsuccessfully?
-
Questions:
Does your app run in Qt Creator?
What version of OpenGL does your PC support?
A few notes:
- You have created a Debug build. You should create a Release build for deployment.
- "Procedure not found" means that the DLL was found but an expected function was not found inside the DLL.
** In Qt, this error is often encountered when you copy the wrong version of a DLL. Please confirm: Did you make sure you copied the DLLs from C:\Qt\Qt5.3.0\5.3\msvc2010_opengl instead of C:\Qt\Qt5.3.0\Tools\QtCreator?
Suggestion: Delete your current deployment folder, create a Release build, and follow the Wiki again -- "Initial deployment (Quick and dirty)". In particular, make sure you follow Steps #2.3 and #3 under -- you missed these steps before.
-
I run this app on msvc 10, after configuring with CMake 3.0
the version is 4.0
- I've already created the Release build just to check if I had the same error
- u right for the procedure ! :) I check if I mismatched the version but the path is correct :(
Ok, I'll try again, maybe I forgot something
thank you!
-
I did the procedure from scratch, so CMaked from the beginning and copy Qt/bin and plugins in the binary dir of my project , and... now works both in release and in debug.
Well... thank you all, actually I think that the build and deploy dirs got dirty with something not correct but I can't say really which file.
ciao! :) -
Good to hear :) Happy coding!
-
[quote author="hskoglund" date="1404262881"]Hi, I have a "blog post":http://www.tripleboot.org/?p=138 about this problem.
It's for deploying a bare bones app but maybe it'll help you too.[/quote]Thank you hskoglund! Your blog helped me to solve this problem.
-
[quote author="hskoglund" date="1404262881"]Hi, I have a "blog post":http://www.tripleboot.org/?p=138 about this problem.
It's for deploying a bare bones app but maybe it'll help you too.[/quote]Thank you hskoglund! Your blog helped me to solve this problem.