qt-opensource-windows-x86-msvc2010-5.5.1 does not compile
-
Hello. Under my Windows 11 64 bits I have isntalled:
-
Visual Studio 2010
-
ServicePack1 para Visual Studio 2010
-
Debugging Tools (https://developer.microsoft.com/es-es/windows/downloads/windows-sdk)
Everthyng seems correct. I can compile a "Hello world from Visual Studio".
Now I have Installed: qt-opensource-windows-x86-msvc2010-5.5.1
The QtCreator autodect the Qt Version and the compiler and create the kit.
But when I try to compile a sample application I got the following error:
C:\Qt\Qt5.5.1\5.5\msvc2010\include\QtCore\qglobal.h:39: error: C1083: No se puede abrir el archivo incluir: 'cstddef': No such file or directory
I have tried with different QtCreator versions and removing and isntalling again.
I also have added to the PATH:
- C:\Program Files (x86)\Windows Kits\10
- C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
- C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
But it does not work.
It seems that the problem is with the build enviroment variables. Maybe I need more of them: VCINSTALLDIR, VSINSTALLDIR, WinSDkDir but they are not created. ¿why?Thanks
-
-
@Xabi
Why Qt 5.5.1? It's 9 years old and out of support.If you look at the error message: It complains that
qtglobal.h
includes#include <cstddef>
in line 39. So you're probably compiling for cxx11/17, where this include doesn't exist. I am not sure, but if I recall correctly, you have to use an ancient C++ compiler like gcc 4 or something.Or you use a recent Qt Version, e.g. 6.5
-
@Xabi and just to add to @Axel-Spoerl:
MSVC 2010 is a 15 year old compiler. Why would you want to use such a old development system on a brand-new Windows 11?
As Qt versions higher than 5.5 need full C++11 support, this compiler is unusable for current development.
Regads