0

So I am working on my Diploma Thesis, and so far everything went fine.

So this week I installed Win8.1 on my PC and installed QT, implemented some things and wanted to send the release version of my program to my company. I compiled the hole thing, copied it to my release folder and i got an error.

"This application failed to start because it could not find or load the Qt platform plugin "windows"."

I googled and found out that I have add a folder named "platforms". Said and done. Same error. I also tried to copy the hole plugins folder to my release folder. Same error. I really need help because my boss isn't happy about giving in work too late.

I hope someone can help me.

mreithuber
  • 3
  • 1
  • 5
  • Add your directory structure; Which compiler do you use? E.g. when using MSVC, the target computer will need the MSVC runtime installed. Check with Dependency Walker what's missing. Make sure you read https://qt-project.org/doc/qt-5.1/qtdoc/deployment-windows.html – Frank Osterfeld Feb 07 '14 at 18:03
  • My directory structure: http://www.pic-upload.de/view-22196593/folder.png.html I'm using MinGW 32bit as compiler. – mreithuber Feb 07 '14 at 18:07
  • qwindows.dll should be placed in the platforms directory. – Murat Şeker Feb 07 '14 at 23:34
  • It is in platforms, I just tried to copy it everywhere that this thing starts working.. :( – mreithuber Feb 08 '14 at 13:50
  • possible duplicate of [Deploying Qt 5 App on Windows](http://stackoverflow.com/questions/22185974/deploying-qt-5-app-on-windows) – sashoalm Mar 11 '15 at 10:01

2 Answers2

0

Do you also have "qminimal.dll" placed in your platforms directory?

Edit: Sorry, "qminimal.dll" was not displayed in my previous post.

cee
  • 252
  • 3
  • 10
  • If your app is using any additional drivers (plugins) like SQL or something, the corresponding dll has to be placed in "plugins" folder. – cee Feb 09 '14 at 20:09
  • Maybe you could also post a screenshot of dependency walker. http://support.microsoft.com/kb/256872/en-us – cee Feb 09 '14 at 20:11
-2

I found the Problem!

Previously i used the dll's from my old QT installation. I just copied the ones from the new Installtion into a folder and the exe. I don't even need the qwindow.dll now. BUT! I works now... :)

Is there a way, that I create my own DLL, just for my Application?

But still thanks for your help!

mreithuber
  • 3
  • 1
  • 5
  • 1
    This answer is completely useless to future visitors. Please take the time to actually describe what the problem was (assuming that you cared enough to find out), and why the proposed solution solves the issue. – IInspectable Apr 03 '14 at 07:52