Appname.exe is not a valid Win32 application
Hello, I created a test application and it works fine on Windows 8... But when I run it on Windows XP, I get error -> appname.exe is not a valid Win32 application... I am using latest Qt x86 and VS2012 Compiler (32bit)...
I read on google that problem might be in VS2012... Any idea how to solve it???
Did you try to rebuild it under XP? It may work..
since VS2012 support for windows XP has moved to a separate toolchain. So you would need to create a seperate build target for win xp and set the toolchain settings for it.
Read this "MSDN article":http://blogs.msdn.com/b/vcblog/archive/2012/10/08/10357555.aspx.
But that is for Visual Studio... I have my project done in Qt and compiled with VS2012... How can I change that in Qt?
you mean you are using QtCreator for development and compile with msvc2012 compilers right?
In the link i've posted see the section "Targeting from the Command Line". You would need to add a custom compiler to your QtCreator settings.
Please also note, that also the Qt libraries themselves must be compiled with these compiler options when you want to deploy to XP.