nav-left cat-right
Matthias Pospiech > Programming > C++ > Qt > Windows SDK 7 messed up

Windows SDK 7 messed up

I am trying to set up the Windows SDK environment for compilation of an other C++ project (Qt phonon library). However the script seems to be totally broken. It does not work and destroys the path variable.

This is what the path looks like before anything is called:

PATH=C:\Program Files\PC Connectivity Solution\;C:\Program Files\MiKTeX 2.8\mikt
32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;
C:\Program Files\TortoiseSVN\bin;C:\Program Files\doxygen\bin;C:\Program Files\C
ommon Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\MATLAB\R2008a\bin;C:\Pr
ogram Files\MATLAB\R2008a\bin\win32;C:\Program Files\ispell;C:\Program Files\gs\
gs8.63\bin;C:\Program Files\gnuplot\bin;"C:\Program Files\Microsoft SDKs\Windows
\v7.0\bin";"C:\Program Files\Microsoft Visual Studio 8\VC\bin"

If I call SetEnv.cmd it is messed up:

PATH=;C:\Program Files\Microsoft Visual Studio 9.0vcpackages;C:\Program Files\Mi
crosoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft SDKs\Windows\v7

Apart from that the script fails to find the compilers, though the SDK was installed completely.

The x86 compilers are not currently installed.
Please go to Add/Remove Programs to update your installation.
Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.0
Das Sprungziel - Set_x86 wurde nicht gefunden.
Debugging the code that is throwing this error the following seems to happen
SET "VCRoot=%ProgramFiles%\Microsoft Visual Studio 9.0"
SET "VCTools=%VCRoot%Bin"
IF NOT EXIST "%VCTools%\cl.exe" (
  SET VCTools=
  ECHO The x86 compilers are not currently installed.
  ECHO Please go to Add/Remove Programs to update your installation.
  ECHO .
So the script if looking for C:\Program Files\Microsoft Visual Studio 9.0\Bin\cl.exe – which does not exist, because there is no bin path. The correct path would be C:\Program Files\Microsoft Visual Studio 9.0\VC\bin.

If anyone has any idea, that would be helpfull.

3 Antworten : “Windows SDK 7 messed up”

  1. Neil sagt:

    the script has some errors, so

    SET „VCTools=%VCRoot%Bin“

    should be

    SET „VCTools=%VCRoot%\Bin“

    This means that bin is not found and hence the „compilers are not [seemingly] installed“. There are other problems in the script (look for ‚!‘ where you would expect ‚%‘) which come up later on.


  2. Marsh Ray sagt:

    Notice that the installed „CMD Shell“ shortcut isn’t to a .cmd file, but is instead to
    cmd.exe /E:ON /V:ON /T:0E /K setenv.cmd

    Setenv.cmd must be run from a command prompt interpreter which has delayed expansion enabled. It doesn’t check for this error condition though, it just fails silently.

  3. Martin sagt:

    I recently had the same problem when I tryed to compile custom c-code based functions for the simulation software FLUENT. From what I gathered on the web, only a full SDK install provides you with all files.
    I guess I did the same as you and selected only the files which I thought would be necessary. „Da haben wir wohl mal wieder die Rechnung ohne den Wirt gemacht“ is all I can say :-).
    Compiling plain C code however, did not affect my path variables…

Einen Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.


This blog is kept spam free by WP-SpamFree.