I have a qt (Nokia) project which I want to build with VS2005
First I create the makefiles with
qmake MyProject.pro -r spec win32-msvc2005
Than I want to build. On a Command prompt I have to call vsvars32 first:
C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\vsvars32.batnmake /f Makefile.Release
Creating the makefiles in FinalBuilder (6) is no problem, but calling nmake fails. How do I setup the VS environment variables, resp. call vsvars32.bat?
If you look at the vcvars.bat file, you will see it just declares some environment variables. So what you need to do is figure out which ones you need, and define them in your FinalBuilder project as project variables, and check “Make available as Environment Variable” option when defining them.
Your solution would work, but is definitely not a beautiful one. - if vsvars32 gets an update, I have to review every variable - tons of variables - no easy switch between different VS versions (different projects based on different VS)
Is there no way to pre-run vsvars32 in the same step as calling nmake? I’m sure im not the only one who want to build makefiles with VS.