Deployment problems in Windows 8.1[SOLVED]
-
wrote on 26 Dec 2014, 01:48 last edited by
Hi, ZN10QArrayData10deallocateEPS_jj is a function used by the MinGW compiler but not Visual Studio, so it seems you have a Microsoft flavored Qt5Core.dll in your path :-(
EDIT: to clarify, your Win8.1 is fine, I just tested mixing a MinGW .exe file and Visual Studio Qt .dlls on my Windows XP and got the same error.
-
Hi,
To add to hskoglund, are you by any chance copying the Qt dlls from Qt Creator rather than the Qt you used to build your application ?
-
wrote on 26 Dec 2014, 23:35 last edited by
Indeed SGaist, good thinking, I bet you a beer that this is the case.
-
wrote on 29 Dec 2014, 20:38 last edited by
Thanks for your responses. I wasn't aware there were more than one file with the same name. When I used the other Qt5core.dll the program would run on the Windows 8 PC. However, it would not run on the Windows 7 notebook or a Windows XP laptop. I tried to install Qt 5.4.0 on the notebook and laptop but I received installation errors on both. I still could not get the program that runs fine on Windows 7 to run on Windows 8. I would like to develop programs with Windows 8 and run them on all three OS. Is that possible?
-
Are you deploying other dlls that are not part of Qt ?
-
wrote on 30 Dec 2014, 23:52 last edited by
These are the DLLs that I added to the release folder:
QT5CORE.DLL
QTWIDGETS.DLL
QT5GUI.DLL
LIBWINPTHREAD-1.DLL
LIBGCC_S_DW2-1.DLL
LIBSTDC++-6.DLL
ICUDT53.DLL
ICUUUC53.DLL
ICUIN53.DLLThe program runs on my desktop with Windows 8.1 but not on my laptop with Windows XP. It gives me this error message:
" This application failed to start because it could not find or load the Qt platform plugin "windows".
-
Then you're not deploying your application correctly.
See this fine wiki "entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows for more information
-
wrote on 9 Jan 2015, 22:39 last edited by
Finally got it to run on all three OS's: W8.1, W7, and WXP. In the end it was caused by DLLs that were not identified by Dependency Walker. I am now going to post a question on deploying to a Linux OS.
Thanks to everyone for your assistance.
-
wrote on 20 Jan 2015, 18:12 last edited by
Just a quick note: On my end, if I use the "windeploy" command line tool from the Qt installation folder, I don't have to worry about copying the right .dll files. The tool does that automatically. Earlier in 2014, the windeploy tool wasn't working perfectly. But it seems like it is way better.
-
Just a quick note: On my end, if I use the "windeploy" command line tool from the Qt installation folder, I don't have to worry about copying the right .dll files. The tool does that automatically. Earlier in 2014, the windeploy tool wasn't working perfectly. But it seems like it is way better.