Compiling for windows xp
hi to everyone
i use qt on my vs2008 on windows 7 now i want to compile my program for windows xp on release mode
how can i do it?
now when i compile on release mode it does'nt run on windows xp
My experience is that a application compiled (32Bit) on a Win7 machine is working on a winxp without special needs!
my windows is 64 bit and when i compile it on release mode it doesn't run
Specify "doesn't run".
Are there any errors or exceptions thrown?
Have you distributed all neccessary libraries along with your application?
Have you checked the dependencies with "dependency walker":http://www.dependencywalker.com/ ?
I think there is some lib missing!
yes i think i distrobuted its dependencies
because it runs on other windows 7 but it doesn't run on windows xp
All my application developed on my win7 are running on win xp ;-)
Have you checked the dependencies on the xp machine?
i think it is 'nt about dependencies
should i distrubute kernel32.dll and msvcr90.dll and mcvcp90.dll?
bq. msvcr90.dll and mcvcp90.dll?
This two of course, these are the mscv runtime libs.
And you will have - of course - to redistribute the Qt DLLs as well.
But as long as you do not specify what "doesn't run" means this is some kind of fishing in murky waters.
sorry for my bad english:D
the program does'nt run on windows xp
but it run on any windows 7
i found a problem i should download visual studio redistribute and install it on windows xp
bq. i think it is ‘nt about dependencies
How did you check this?
[quote author="kitten" date="1313918381"]sorry for my bad english:D[/quote]
It's not about bad english, it's about insufficient information.
Does your application even start?
Is there an error message when you start your application? If yes, which?
If it starts successfully - does your application crash?
Which DLLs did you redistribute along with your application? In which localtion did you put this DLLs?
Have you tested this on multiple Windows XP / Windows 7 machines?
Otherwise we have to depend on our crystal balls which is sometimes pretty insufficient too.
sigrid last edited by
The following "document":http://doc.qt.nokia.com/4.7/deployment-windows.html contains detailed information on how to deploy your application on Windows. The recommended way to distribute the C runtimes is to include the appropriate Visual C++ Redistributable Package (VCRedist) executable with your application and ensure that it is executed when the user installs your application. Try doing that to see if it solves the problem and make sure that your deployment is in accordance with what's recommended in the link above.
giesbert last edited by
[quote author="kitten" date="1313915797"]my windows is 64 bit and when i compile it on release mode it doesn't run [/quote]
You should also compile 32 bit for 32 bit systems. 32 bit software can run on 32 bit machines and on 64 bit machines. 64 bit software only on 64 bit machines.
The second thing is, if you compile with MSVS, you must always ensure that the redistributables are correctly installed.