nav-left cat-right
cat-right
Home » Blog » 2010 » Januar

fixes for Qt plugin makefiles...

There are many usefull Qt plugins, such as qwt, qextserialport, qxt and others. With a new major version of Qt, or a new version of a compiler I have to recompile the plugins to make sure everything is working well together. However many plugins are not compilable from comandline such that the resulting files can easily be deployed. Also they should be compilable with mingw and msvc.

Here I show the necessary modifications to enable compilation of everything necessary in a naming scheme for windows.

(weiterlesen…)

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:

C:\Users\Matthias>PATH
PATH=C:\Program Files\PC Connectivity Solution\;C:\Program Files\MiKTeX 2.8\mikt
ex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System
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:

C:\Users\Matthias>SetEnv.cmd
C:\Users\Matthias>PATH
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
.0\Bin;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Windows\Microsoft.NET\Framewor
k\v2.0.50727;!Path!

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.