Qt and Windows XP
-
My main windows 7 machine isn't always available, so sometimes I have to use an older XP system. I had a look at "supported platforms page":http://doc.qt.io/QtSupportedPlatforms/index.html and read that XP is for "Deployment only". Does that mean that I will be able to install Qt but won't be able to compile? If so, is there any workaround?
If it's not possible, will installing older version on XP machine and periodically tossing my project between versions 4 and 5 work?
-
It means you can launch Qt application on an XP machine, but you have to develop it on some other machine.
Please try, though - maybe you will be able to make it work. Usually, when the official message reads "deploy only" it often means "we are not testing this anymore, but if you try it could work".
-
I don't have problems developing on WinXP even using the latest versions of Qt. My setup is on a virtual machine that I can move around between computers. I don't use an IDE in Windows or actually write anything in this setup; I use it strictly to compile and test.
It depends on what you are using I suppose. If you are using the latest version of MSVC you might have issues as it targets newer versions of windows by default (see "this":http://www.tripleboot.org/?p=423 ). I use MinGW so I never had this issue.
I think dropping 'support' for XP makes sense as it is no longer supported by Microsoft but that doesn't necessarily mean it won't work.
-
Another option would be to install Windows 7 on your Windows XP machine, but that depends on how old the hardware is. From the official Microsoft homepage i could find out that you need at least this requirements:
- 1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor
- 1 gigabyte (GB) RAM (32-bit) or 2 GB RAM (64-bit)
- 16 GB available hard disk space (32-bit) or 20 GB (64-bit)
- DirectX 9 graphics device with WDDM 1.0 or higher driver
Also a Windows 7 key would be required, but it seems that they are cheap. Windows 7 Home Premium would be enough (except you really need the features of Professional or higher, i, for my self, dont need them). You can find HP Keys for already 20€ (~23$) and Professional Keys for about 30€ (~34$).
-
Thanks for info. Installing Windows 7 is sure an option, but that would be my last resort.
[quote author="Rondog" date="1424357948"]
...If you are using the latest version of MSVC you might have issues as it targets newer versions of windows by default...I use MinGW so I never had this issue...
[/quote]MSVC compiler is indeed a problem for me. XP can support only MSVC2010, but I need some stuff from c++11 standart, which is included only in later versions of Visual Studio. Does MinGW support it and work well both on XP and 7? Also, how would transition of code from MSVC to other compilers go, any particular differences I should take into consideration?
Also, will Qt quick controls 1.3 work for XP?
-
MSVC 2010 does have partial C++11 support.
-
Indeed it does, but unfortunately the particular c++11 piece of code that I need is supported only by MSVC 2012 and higher. So unless I update my other machine to Win7 there are two options: 1) Use another compiler 2) Use external library. At the moment I use option two, but I'm also interested in having a look at other compilers in case I completely move from Visual Studio to Qt Creator.
-
I don't know what level of c++11 support MinGW has. I suspect it will follow whatever GNU GCC supports (although there may be a delay). I haven't looked at other compilers in a while so I am not sure what options exist.
Problems with the transition from MSVC to 'other' compilers depends on your program and habits. For me, I found I used a lot of Microsoft only macros and options even though I tried not to. Stuff like _T("text") or TCHAR for example was something I used a lot.
I cannot say how MinGW works on Windows 7. Haven't tried it yet (probably should look into this one day I suppose).
It does seem to me that you should probably upgrade your system to Windows 7 and use whatever setup you use on the other machine. I try to keep all my systems the same otherwise it is a festering, annoying, problem moving between computers. This sounds like your situation, no?
-
[quote author="Rondog" date="1424382559"]
...This sounds like your situation, no?
[/quote]I guess so. It didn't bother me before because I was writing some very basic stuff, but as my code started becoming more complex I've started encountering these kind of problems. I guess in the long run I should update, but at the moment I'm looking for a temprorary solution.
-
[quote author="onek24" date="1424424191"]Afaik you need a graphics driver which supports opengl to run a qml code, that means that it will work on windows xp if your graphics card can handle this.
[/quote]Indeed, I finally tried Qt on XP machine and everything worked fine.