I've solved it : try to execute cl.exe directly (C:Program Files (x86)Microsoft Visual Studio 10.0VCincl) if you get a dll error, it's because your environment is not set correctly. So, you need to call vcvarsall.bat before lunch QtCreator. To do that each time, you can create a .bat file which contains the following:
C:Program Files (x86)Microsoft Visual Studio 10.0VCvcvarsall.bat
{Path to QtCreator}qtcreator
(Correct the paths if your configuration is not the same)
You will need to execute this script to get QtCreator with the right environment variables, otherwise, the dll error appears but is not reported, and you get this "Error : 2"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…