Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt5.8.0 MinGW 32bit on Windows: Recipe for target failed
ksgj last edited by
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:
windres -i ../texstudio/win.rc -o debug/win_res.o --include-dir=./../texstudio -DUNICODE -DHUNSPELL_STATIC -D_QCODE_EDIT_BUILD_ -DQNFA_BUILD -DQUAZIP_STATIC -DHAS_POPPLER_24 -DHAS_POPPLER_31 -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SCRIPT_LIB -DQT_CONCURRENT_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"D:/user/Documents/TeXstudio project/build-texstudio-Desktop_Qt_5_8_0_MinGW_32bit-Debug"' -DQT_QML_DEBUG "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: 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: *** [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.
ksgj last edited by
I realized the file name cannot have spaces. Changing TeXstudio project to TeXstudio-project makes it work, for the time being.
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).