QT 5.5.1 Windows Deployment Problem
-
Hi All,
I created a Virtual Windows 10 machine with QT 5.5.1 I moved my code from Linux to Win I compiled the release version under mingw32 - release... Run windeployqt.exe, give me a directory structure but my start my exe it says
This application failed to start becouse it could't find or load the Qt platform plugin "Windows"
I googled it find many issues but my case didn't match any of them... The answer about the missing dll is not a case for me.. All the dll's are incluses at the directory
my directory structure lie this
Directory of C:\Users\burak\Desktop\VikingUretim\build-VikingUretim-Desktop_Qt_5_5_1_MinGW_32bit-Release\release
12/23/2015 01:39 PM <DIR> .
12/23/2015 01:39 PM <DIR> ..
12/23/2015 01:39 PM 0 aa.txt
07/10/2015 01:00 PM 3,692,032 D3Dcompiler_47.dll
12/23/2015 01:05 PM <DIR> iconengines
03/31/2015 12:56 PM 3,920,542 icuin54.dll
03/31/2015 12:56 PM 2,177,557 icuuc54.dll
12/23/2015 01:05 PM <DIR> imageformats
10/12/2015 09:25 PM 20,992 libEGL.dll
12/21/2014 06:07 PM 119,822 libgcc_s_dw2-1.dll
10/12/2015 09:22 PM 2,293,248 libGLESV2.dll
12/21/2014 06:07 PM 1,026,062 libstdc++-6.dll
12/21/2014 06:07 PM 49,152 libwinpthread-1.dll
09/23/2014 12:36 PM 15,220,736 opengl32sw.dll
12/23/2015 01:05 PM <DIR> platforms
12/23/2015 01:05 PM 5,391,360 Qt5Core.dll
10/12/2015 09:31 PM 5,334,528 Qt5Gui.dll
10/12/2015 09:25 PM 259,072 Qt5Sql.dll
10/12/2015 09:48 PM 331,776 Qt5Svg.dll
10/12/2015 09:37 PM 6,541,824 Qt5Widgets.dll
12/23/2015 01:05 PM <DIR> sqldrivers
12/23/2015 12:43 PM 110,080 VikingUretim.exe
16 File(s) 46,488,783 bytes
6 Dir(s) 24,506,269,696 bytes freeI made a dependency walker for X86 bu it seeems all files included...
Any help or idea??
-
hi
you also need a platforms folder with one DLL -
@zeroptr
Hmm it does look good from the pictures.
Did u copy from
C:\Qt\Qt5.1.1\5.1.1\mingw48_32\plugins\platforms ?
( or similar path)Maybe it misses libEGL.dll
http://stackoverflow.com/questions/20495620/qt-5-1-1-application-failed-to-start-because-platform-plugin-windows-is-missi -
when I started the release version from QT I get this messege may be this helps
Starting C:\Users\burak\Desktop\VikingUretim\build-VikingUretim-Desktop_Qt_5_5_1_MinGW_32bit-Release\release\VikingUretim.exe...
QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers:
QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins
This application failed to start because it could not find or load the Qt platform plugin "windows".Reinstalling the application may fix this problem.
C:\Users\burak\Desktop\VikingUretim\build-VikingUretim-Desktop_Qt_5_5_1_MinGW_32bit-Release\release\VikingUretim.exe exited with code 3 -
could u try a default project?
Just create one, build exe and copy to you deploy folder and see
if that runs.
-QCoreApplication is required for loading driver plugins
this sound spooky.. -
Last stuation...
I copied all
C:\Qt\Qt5.5.1\5.5\mingw492_32\bin>copy *.dll C:\Users\burak\Desktop\VikingUretim\build-VikingUretim-Desktop_Qt_5_5_1_MinGW_32bit-Release\release\
then
C:\Users\burak\Desktop\VikingUretim\build-VikingUretim-Desktop_Qt_5_5_1_MinGW_32bit-Release\release>del d.dll
C:\Users\burak\Desktop\VikingUretim\build-VikingUretim-Desktop_Qt_5_5_1_MinGW_32bit-Release\release>del .o
C:\Users\burak\Desktop\VikingUretim\build-VikingUretim-Desktop_Qt_5_5_1_MinGW_32bit-Release\release>del moc_.I have a 155 MB ! directory full of dll but I get rid off debugging ones...
guess what its working !
new directory is like this
12/23/2015 07:43 PM <DIR> .
12/23/2015 07:43 PM <DIR> ..
12/23/2015 07:43 PM 0 aa.txt
12/23/2015 07:29 PM 94 AppSettings.ini
07/10/2015 01:00 PM 3,692,032 D3Dcompiler_47.dll
10/12/2015 10:55 PM 281,088 Enginio.dll
12/23/2015 07:12 PM <DIR> iconengines
03/31/2015 12:56 PM 25,382,664 icudt54.dll
03/31/2015 12:56 PM 3,920,542 icuin54.dll
03/31/2015 12:56 PM 2,177,557 icuuc54.dll
12/23/2015 07:12 PM <DIR> imageformats
07/25/2013 03:26 PM 144,768 intl.dll
12/04/2015 10:51 AM 1,155,072 libeay32.dll
10/12/2015 09:25 PM 20,992 libEGL.dll
12/21/2014 06:07 PM 119,822 libgcc_s_dw2-1.dll
10/12/2015 09:22 PM 2,293,248 libGLESV2.dll
12/07/2015 01:10 AM 141,824 libpq.dll
12/21/2014 06:07 PM 1,026,062 libstdc++-6.dll
12/21/2014 06:07 PM 49,152 libwinpthread-1.dll
09/23/2014 12:36 PM 15,220,736 opengl32sw.dll
12/23/2015 07:12 PM <DIR> platforms
10/12/2015 10:47 PM 61,952 Qt53DCollision.dll
10/12/2015 10:37 PM 339,456 Qt53DCore.dll
10/12/2015 10:47 PM 201,728 Qt53DInput.dll
10/12/2015 10:47 PM 66,048 Qt53DLogic.dll
10/12/2015 10:49 PM 148,480 Qt53DQuick.dll
10/12/2015 10:51 PM 125,952 Qt53DQuickRenderer.dll
10/12/2015 10:43 PM 2,084,352 Qt53DRenderer.dll
10/12/2015 10:27 PM 234,496 Qt5Bluetooth.dll
10/13/2015 01:39 AM 899,584 Qt5CLucene.dll
10/12/2015 09:27 PM 28,672 Qt5Concurrent.dll
12/21/2015 03:42 PM 5,391,360 Qt5Core.dll
10/12/2015 09:26 PM 522,240 Qt5DBus.dll
10/13/2015 02:06 AM 3,353,088 Qt5Declarative.dll
10/13/2015 01:44 AM 5,019,136 Qt5Designer.dll
10/13/2015 01:49 AM 2,448,896 Qt5DesignerComponents.dll
10/12/2015 09:31 PM 5,334,528 Qt5Gui.dll
10/13/2015 01:41 AM 545,792 Qt5Help.dll
10/12/2015 10:58 PM 498,688 Qt5Location.dll
10/12/2015 10:30 PM 800,256 Qt5Multimedia.dll
10/12/2015 10:33 PM 108,032 Qt5MultimediaQuick_p.dll
10/12/2015 10:33 PM 102,912 Qt5MultimediaWidgets.dll
10/12/2015 09:26 PM 1,528,832 Qt5Network.dll
10/12/2015 10:26 PM 165,888 Qt5Nfc.dll
10/12/2015 09:42 PM 334,848 Qt5OpenGL.dll
10/12/2015 10:57 PM 248,320 Qt5Positioning.dll
10/12/2015 09:42 PM 357,888 Qt5PrintSupport.dll
10/12/2015 10:02 PM 4,243,968 Qt5Qml.dll
10/12/2015 10:12 PM 3,719,168 Qt5Quick.dll
10/12/2015 10:19 PM 589,312 Qt5QuickParticles.dll
10/12/2015 10:18 PM 116,736 Qt5QuickTest.dll
10/12/2015 10:20 PM 62,464 Qt5QuickWidgets.dll
10/13/2015 01:58 AM 2,320,896 Qt5Script.dll
10/13/2015 02:02 AM 716,800 Qt5ScriptTools.dll
10/12/2015 10:23 PM 199,168 Qt5Sensors.dll
10/12/2015 09:59 PM 88,064 Qt5SerialPort.dll
10/12/2015 09:25 PM 259,072 Qt5Sql.dll
10/12/2015 09:48 PM 331,776 Qt5Svg.dll
10/12/2015 09:41 PM 219,136 Qt5Test.dll
10/12/2015 10:57 PM 125,952 Qt5WebChannel.dll
10/13/2015 01:33 AM 33,368,064 Qt5WebKit.dll
10/13/2015 01:35 AM 274,432 Qt5WebKitWidgets.dll
10/12/2015 10:34 PM 161,792 Qt5WebSockets.dll
10/12/2015 09:37 PM 6,541,824 Qt5Widgets.dll
10/12/2015 10:55 PM 241,664 Qt5WinExtras.dll
10/12/2015 09:25 PM 237,056 Qt5Xml.dll
10/12/2015 09:52 PM 3,725,824 Qt5XmlPatterns.dll
12/23/2015 07:12 PM <DIR> sqldrivers
12/04/2015 10:51 AM 275,968 ssleay32.dll
12/23/2015 07:12 PM <DIR> translations
12/23/2015 07:21 PM 110,080 VikingUretim.exethis structure is not respecting QT's licencing issues..
windeployQT.exe is missing a dll but I could not find the dll yet..
-
Again me :)
12/23/2015 07:56 PM <DIR> .
12/23/2015 07:56 PM <DIR> ..
12/23/2015 08:02 PM 0 aa.txt
12/23/2015 07:29 PM 94 AppSettings.ini
07/10/2015 01:00 PM 3,692,032 D3Dcompiler_47.dll
12/23/2015 07:12 PM <DIR> iconengines
12/23/2015 07:12 PM <DIR> imageformats
07/25/2013 03:26 PM 144,768 intl.dll
12/04/2015 10:51 AM 1,155,072 libeay32.dll
10/12/2015 09:25 PM 20,992 libEGL.dll
12/21/2014 06:07 PM 119,822 libgcc_s_dw2-1.dll
10/12/2015 09:22 PM 2,293,248 libGLESV2.dll
12/07/2015 01:10 AM 141,824 libpq.dll
12/21/2014 06:07 PM 1,026,062 libstdc++-6.dll
12/21/2014 06:07 PM 49,152 libwinpthread-1.dll
12/23/2015 07:12 PM <DIR> platforms
12/21/2015 03:42 PM 5,391,360 Qt5Core.dll
10/12/2015 09:31 PM 5,334,528 Qt5Gui.dll
10/12/2015 09:25 PM 259,072 Qt5Sql.dll
10/12/2015 09:37 PM 6,541,824 Qt5Widgets.dll
12/23/2015 07:58 PM <DIR> sqldrivers
12/04/2015 10:51 AM 275,968 ssleay32.dll
12/23/2015 07:21 PM 110,080 VikingUretim.exeI reduced the files total to 29MB with this directory structure... I moved the dll's by hand one by one I get this struct working but I couldn't find the source of problem dll was...
This Project only uses widgets no QtQuick and PostgreSQL database at backend.regards...
any way... problem solved .. may this info helps someone else .. -
Good work
Shooting it with the big cannon.
Seems you did indeed miss a DLL but not sure which one.