How to setup QtCreator to "build before run " when ANYTHING was changed / edited in project source file(s) ?
-
MY problem was - I missed this little gem
"Build the whole project "
All is well now...
The ancient term was "dirty file "....
I can option QtCreator to "save before build" , but I do not see an option to
"build before run"when project source file(s) were edited.
.
Does such option exists and if so WHERE ?PS
If I asked this before - just ignore this post and let somebody else answer it .
PPS
And if you have a problem following such simple request NOT reminding me I asked this before readhttps://en.wikipedia.org/wiki/Why_Johnny_Can't_Read
Cheers
-
This post is deleted!
-
There is no such option and there is nothing to set up because that's the default behavior of a build system.
If it's not happening for you make sure you're modifying the same project you're running or its dependencies. I've seen in a lot of your screenshots that you usually have multiple similarly named projects opened at the same time. When you hit run the active project (the one in bold on the project list) and its dependencies (as set up in the project files for that project) are checked for changes and built if needed. Other projects are not, as they are not part of the run.
And yes, you've asked this before, quite recently actually: "dirty file" option :)
-
There is no such option and there is nothing to set up because that's the default behavior of a build system.
If it's not happening for you make sure you're modifying the same project you're running or its dependencies. I've seen in a lot of your screenshots that you usually have multiple similarly named projects opened at the same time. When you hit run the active project (the one in bold on the project list) and its dependencies (as set up in the project files for that project) are checked for changes and built if needed. Other projects are not, as they are not part of the run.
And yes, you've asked this before, quite recently actually: "dirty file" option :)
@Chris-Kawa OK, since when I downloaded QT "they " asked if I be willing to help ....
I may take that as "new year resolution " and may make a suggestion "they" make it an option.
Actually my motive is - what kind of reaction I get from "them"....PS
I have been watching WHAT project I am building....but I still forget to check "shadow build"...CASE CLOSED
-
I'm a bit afraid to ask, but who's "they"?
-
I'm a bit afraid to ask, but who's "they"?
@Chris-Kawa ....and I am afraid to say ....the guys who write the QT code
please note I am not using "software engineers "Here is an old "engineers' joke for people who are familiar that title "Eng" or "Diploma engineer "
is used OUTSIDE US, same as US use "Phd" etc.Two guys are initializing a contract.
One writes his name,,, the other "writes" FOUR crosses..."Why did you use four crosses instead of customary three as used by illiterate person ? "
..... I am an engineer...
-
@Chris-Kawa ....and I am afraid to say ....the guys who write the QT code
please note I am not using "software engineers "Here is an old "engineers' joke for people who are familiar that title "Eng" or "Diploma engineer "
is used OUTSIDE US, same as US use "Phd" etc.Two guys are initializing a contract.
One writes his name,,, the other "writes" FOUR crosses..."Why did you use four crosses instead of customary three as used by illiterate person ? "
..... I am an engineer...
@AnneRanch said:
the guys who write the QT code
please note I am not using "software engineers "Qt is open sourced. By now the number of people who contributed has to be in the upper hundreds if not thousands. I'm sure there's quite a few people you can call software engineers in there.
Btw. shadow build is just another name for out of source build. That's a concept that predates Qt Creator or Qt. I wouldn't be surprised if it's older than your boys K&R.
-
I guess you are using Linux . If yes, simply build and run your project from command line. Then you will not have the issue anymore. Build is even faster. I use qt creator only for configuring, editing and debugging. My project is built and run from command line.
-
I guess you are using Linux . If yes, simply build and run your project from command line. Then you will not have the issue anymore. Build is even faster. I use qt creator only for configuring, editing and debugging. My project is built and run from command line.
@JoeCFD It is perfectly OK with me for you to use commands.
I wrote my first "for hire" code in an assembly...on punch cards... no operating system.. with whopping 4 kilobytes of 8 bit wide memory ....And I won' t tell how long ago....
Cheers
PS I have about 1GB of source code and that include documentation / notes and the project is bout 25% done....
-
@JoeCFD It is perfectly OK with me for you to use commands.
I wrote my first "for hire" code in an assembly...on punch cards... no operating system.. with whopping 4 kilobytes of 8 bit wide memory ....And I won' t tell how long ago....
Cheers
PS I have about 1GB of source code and that include documentation / notes and the project is bout 25% done....
@AnneRanch said in How to setup QtCreator to "build before run " when ANYTHING was changed / edited in project source file(s) ?:
I have about 1GB of source code and that include documentation / notes and the project is bout 25% done....
wow, then you've already more code than QtBase and when you finished your project with the same amount your code is half the size complete qt repository
-
@JoeCFD It is perfectly OK with me for you to use commands.
I wrote my first "for hire" code in an assembly...on punch cards... no operating system.. with whopping 4 kilobytes of 8 bit wide memory ....And I won' t tell how long ago....
Cheers
PS I have about 1GB of source code and that include documentation / notes and the project is bout 25% done....
-
I cannot get to this post via Google mail
Hello
Emre MUTLU has posted a reply to: How to setup QtCreator to "build before run " when ANYTHING was changed / edited in project source file(s) ?Tools->Options->Build & Run->General
then you will see there (Save All Files before build)In my version this option access is under Edit -> Preferences
It i s set and does not work.
I do not want to update , I get too many weird errors , and if it is a bug in 5.12 so be i t.