UPDATE: CDB (the Qt name for the Windows debugger) sucks – no variable monitoring, etc. Useless. If you can, switch to Visual Studio to build Qt apps under windoze. See these posts instead.

The last time I set up to build my Qt apps under Windoze, I just selected the Mingw option and everything seemed to work just fine. For some reason I fell down the rabbit hole of using Visual Studio this time. I could give two craps about that, I just want it to work and get out of the way. But I had to stumble through these steps first:

  • Install Visual Studio 2010
  • Install LGPL Qt SDK for Windows
  • Also install Visual Studio Add-in from the same page
  • Add c:\Qt\4.7.1\bin to the PATH variable.
  • Build Qt from a Visual Studio prompt:
    cd C:\Qt\2010.05\qt
    rm /S /Q c:\Qt\2010.05\qt\tmp
    nmake confclean
    nmake clean
    configure -debug-and-release -opensource -shared -no-qt3support -qt-sql-sqlite -phonon -phonon-backend -webkit -platform win32-msvc2003
    nmake
  • Install Debugging Tools for Windows 32-bit Version. Only install the shit in the red circle:

    Debugging Tools options

  • Then browse here:
    C:\Program Files\Microsoft SDKs\Windows\v7.1\Redist\Debugging Tools for Windows

    and run dbg_x86.msi to install the 32-bit stuff…

  • Then run QT, select Tools->Options, and select this path in the CDB tab:
    C:\Program Files (x86)\Debugging Tools for Windows (x86)

    … what bs…

  • Write some freakin’ QT code, geesh…