Qt5.8.0 MinGW 32bit on Windows: Recipe for target failed

  • Hi all, apologies if this is not suitable here, but I am very new to this, and I keep getting errors on debugging, and I'm not quite sure how to fix it. I am trying to compile TeXstudio on Qt creator, with QT 5.8.0 on Windows 10 64bit --- it's open source so I hope it's okay to "share" it here.

    I'm debugging with the kit: Desktop Qt5.8.0 MinGW 32 bit. The run (with Ctrl + B) goes fine initially, except several warnings, but no major errors.
    Then nearing the end, I get error 1:

    "D:/user/Documents/TeXstudio project/texstudio/git_revision.bat" g++ "D:/user/Documents/TeXstudio project/build-texstudio-Desktop_Qt_5_8_0_MinGW_32bit-Debug" "D:/user/Documents/TeXstudio project/texstudio"
    'D:\user\Documents\TeXstudio' is not recognized as an internal or external command,
    operable program or batch file.
    Makefile.Debug:1159: recipe for target 'texstudio.exe' failed
    mingw32-make[1]: Leaving directory 'D:/user/Documents/TeXstudio project/build-texstudio-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    Makefile:34: recipe for target 'debug' failed
    mingw32-make[1]: *** [texstudio.exe] Error 1
    mingw32-make: *** [debug] Error 2
    11:18:31: The process "D:\ProgramFiles\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project texstudio (kit: Desktop Qt 5.8.0 MinGW 32bit)
    When executing step "Make"
    11:18:31: Elapsed time: 18:07.

    If there is a need for a full log, I can't yet upload any files but I can host it on Pastebin if need be.

    As far as I can see, it seems the argument that is being passed to mingw32-make is wrong, but I don't know where and how to pass it correctly?
    Hope you guys can help, thanks.

  • I realized the file name cannot have spaces. Changing TeXstudio project to TeXstudio-project makes it work, for the time being.

  • Lifetime Qt Champion


    Yeah, avoiding whitespaces and special chars in path names makes the developers life easier.

    So please mark this topic as SOLVED (button Topic Tools below your first post).


Log in to reply