Unsolved Run Application on WinXp 32Bit
-
Good day,
i try to create a native 32bit Windows Application. I Have VS2015 with QT5.6.3 (32Bit) installled on a Win7 Machine.
- Select the WinXP Toolkit in mein VS Solution
- Selct 32 bit an Release.
After build solition i can run the exe on my development machine (Win 7). but wenn i copy the exe (and depende dll) on a WinXP machine . I get an error "Not a valid Win32 application" .
Iam new in Qt an deplayment system.. what i have to get i work?
Thank you
EDIT: I get an lit bit further.. now i get the error "MSVCP140.dll" not found!? Maybe something with service packs?
-
Hi, looks like the WinXP computer is missing the VC2015 dlls, you could try installing them, download is here
-
Hey thank you, i will try. But why do i need this, when i deplay a native exe for winxp?
-
@Boris1980 said in Run Application on WinXp 32Bit:
But why do i need this, when i deplay a native exe for winxp?
You need the correct visual
studioC/C++ runtime on every computer where it is not available, not just on xp./edit: @JonB - fixed, thx :)
-
-
Please let me ask a related question here: is it possible and legal to add the VS compiler runtime to go with the Qt files in the installation setup or must it be installed independently? How about mingw?
Thanks
-
@robopoulos said in Run Application on WinXp 32Bit:
Please let me ask a related question here: is it possible and legal to add the VS compiler runtime to go with the Qt files in the installation setup or must it be installed independently? How about mingw?
For MinGW it is easy IMHO just use the default settings of the online installer. The different MinGW versions are put to tools folder under Qt.
In general I would not see a problem to do similar with the different MSVC versions as long you do not through an automated installer which is not supplied by MS. Just MHO and IANAL
-
@koahnig said in Run Application on WinXp 32Bit:
@robopoulos said in Run Application on WinXp 32Bit:
Please let me ask a related question here: is it possible and legal to add the VS compiler runtime to go with the Qt files in the installation setup or must it be installed independently? How about mingw?
For MinGW it is easy IMHO hust use the default settings of the online installer. The different MinGW versions are put to tools folder under Qt.
In general I would not see a problem to do similar with the different MSVC versions as long you do not through an automated installer which is not supplied by MS. Just MHO and IANAL
I'm sorry, my mistake, I chose my words badly, I meant that is it possible to add the runtimes to go with a program deployment installation. Or perhaps you noticed my mistake in your reply.
-
OK, now the question is more related to the discussion before. Sorry did not notice.
I believe it should be no problem for MS dlls IMHO. But again IANAL.
For MinGW you should be save IMHO.
-
The vcredist package is explicitly meant for distribution with your installer. It can be downloaded here: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
There are also scripts for e.g. innosetup to automatically install it when needed. -
Good Morning,
after i have installed the Visual C/C++ runtime, i get an Qt error? QtCore.dll (guiapplication.cpp)
"This Application failed to start, because it could not finde or load the Qt Plattform plugin "windows" in "".
When i execute the app on my development PC form the output folder, ther is no error. only if copy the app to another machine (The Exectuiotn folder contains my exe and QtCore.dll QtGui.dll and Qtwidget.dll)
sorry for my noob questions, i am new in QT;) -
You also have to deploy the needed qt plugins for your application. The easiest way to do so is to use 'windeployqt' - see http://doc.qt.io/qt-5/windows-deployment.html