Windows 10, Qt Creator w/o batch file?

• May 12, 2018 - 18:22

The online instructions here indicate that it's possible, but I haven't been able to make it work.
https://musescore.org/en/handbook/developers-handbook/compilation/compi…

(Note: if you don't want to launch qtcreator from a bat file, you can still set MAKEFLAGS to a hardcoded value directly inside of qtcreator by going to Projects->Build->"Build Environment" and adding a variable MAKEFLAGS with value "-j 4" for 4 or any number of compile threads.)

I have placed all the necessary paths in my system PATH environment variable, including the MAKEFLAGS, but I get errors. Initial errors prevented me from running the debugger, after removing even more paths from the .bat file, the project fails to build at all, failing during the -install phase. That .bat file still has all the QT_ environment variables in it. By restoring the .bat file to the exact text in the instructions page, everything works.

So is anyone actually running Creator on Win10 without a batch file? It's not that big a deal, but it would be nice to be able to stick Creator in the quick launch area in the taskbar, which you cannot do with a .bat file.


Comments

Are you sure you can't? Seems I've done that before. Currently I use a keyboard shortcut to launch my batch file (set in the properties for the file). I had it working without the batch file once, but something seems to have changed in QtCreator recently so that current versions are even more picky about making sure everything in the environment is perfect the first time you run a build, and the various things that sued to allow you to clean up after a failed initial build and try running cmake again don't seem to work as well. I tried for a while to figure it out but finally threw in the towel and went back to using a batch file. It sets only the bare minimum - the things that are common between builds of 2.x and builds of master - but between that and being extremely careful to have gotten things perfect on the first cmake run after cloning the repo, it works for me.

Do you still have an unanswered question? Please log in first to post your question.