[SOLVED] Setting up Visual Studio compiler with qt



  • I am trying to set up the MSVC compiler. It was installed with QT. I went to
    options->build&run->kits and it has no debugger specified. Where is the debugger file from microsoft visual studio so I can assign it as the debugger for this. I looked in the files and couldn't find it. I connected it with the MINGW debugger and when i run that it says

    'cl' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\Users\Daniel\Documents\build-untitled3-Desktop_Qt_5_4_2_MSVC2013_32bit-Debug\Makefile.Debug [debug\main.obj] Error 1
    jom: C:\Users\Daniel\Documents\build-untitled3-Desktop_Qt_5_4_2_MSVC2013_32bit-Debug\Makefile [debug] Error 2
    01:31:05: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project untitled3 (kit: Desktop Qt 5.4.2 MSVC2013 32bit)
    When executing step "Make"

    Can anyone help?



  • Hi @danieldil ,

    Download and install the WinDbg package from Microsoft from: https://msdn.microsoft.com/en-us/windows/hardware/hh852365.aspx

    You can either install "WDK 8.1" or "Standalone Debugging Tools for Windows "

    I do not really know why these tools are not an optional install step along with the Visual Studio (express) tools, perhaps I am missing something.

    Regards,


  • Lifetime Qt Champion

    Hi,

    Did you install Visual Studio 2013 prior to installing Qt ?



  • @TheBadger Thank you that was the right link.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.