4

When I compile the project then work in my computer there is no error. But Whenever I run the project in another computer, occurred the error

enter image description here

Nejat
  • 31,784
  • 12
  • 106
  • 138
servetcolakoglu
  • 105
  • 1
  • 6

1 Answers1

4

You should put qwindows.dll in a directory named platforms alongside the executable. Try to deploy your application using The Windows Deployment Tool which could be found in QTDIR/bin/windeployqt.exe. It automatically puts all necessary files in your application directory.

Open your command prompt and add the path to your Qt directory and it's bin folder to the PATH variable like :

set PATH= path\to\Qt\bin

Next run the windows deployment tool with your application path as the argument:

windeployqt.exe  <path-to-app-binary>
Nejat
  • 31,784
  • 12
  • 106
  • 138
  • Are you sure you elaborated windeployqt properly? Did it produce any errors or warnings? – Nejat Apr 07 '15 at 03:06
  • Did you set the path to Qt bin directory properly? What did you exactly set? Also are you sure that you run `windeployqt.exe` from its directory? – Nejat Apr 09 '15 at 03:31
  • This project work well in my computer. But when I run exe another computer It give me this error – servetcolakoglu Apr 09 '15 at 18:53