Qt Creator rebuilds all headers and cpp files to new objects
-
When I add button to mainwindow form and paste some code inside derived function '
void MainWindow::on_pushButton_3_clicked()' , it takes 20 seconds to rebuild whole projectQuestion:
I can understand why does it rebuild moc_files, but why other objects?.
It rebuilds all headers and cpp files to new objects - why is that?What I'm trying to achive: I need deduct building time
Previously I had 20-30 sec, now It takes 3-9 seconds if affect cpp files, not including new headers and not changing previous derivationIf link some headers to shared lib it takes 10-20 seconds to compile and build, but it looks reasonable (it rebuilds all headers and cpp files to fresh objects)
I moved all Qt related headers to shared library (.so) and now it seems to build significantly faster
-
When I add button to mainwindow form and paste some code inside derived function '
void MainWindow::on_pushButton_3_clicked()' , it takes 20 seconds to rebuild whole projectQuestion:
I can understand why does it rebuild moc_files, but why other objects?.
It rebuilds all headers and cpp files to new objects - why is that?What I'm trying to achive: I need deduct building time
Previously I had 20-30 sec, now It takes 3-9 seconds if affect cpp files, not including new headers and not changing previous derivationIf link some headers to shared lib it takes 10-20 seconds to compile and build, but it looks reasonable (it rebuilds all headers and cpp files to fresh objects)
I moved all Qt related headers to shared library (.so) and now it seems to build significantly faster
@JacobNovitsky this does not help you -- but I have been posting similar messages and it looks nobody cares. I actually got a stupid reply once - it is better to do that then not to build when required ...
-
When I add button to mainwindow form and paste some code inside derived function '
void MainWindow::on_pushButton_3_clicked()' , it takes 20 seconds to rebuild whole projectQuestion:
I can understand why does it rebuild moc_files, but why other objects?.
It rebuilds all headers and cpp files to new objects - why is that?What I'm trying to achive: I need deduct building time
Previously I had 20-30 sec, now It takes 3-9 seconds if affect cpp files, not including new headers and not changing previous derivationIf link some headers to shared lib it takes 10-20 seconds to compile and build, but it looks reasonable (it rebuilds all headers and cpp files to fresh objects)
I moved all Qt related headers to shared library (.so) and now it seems to build significantly faster
@JacobNovitsky hi,
You should double check your includes.
It seems you are having quite a lot of them. A good rule: include only what you actually use and use forward declarations for everything else. That should already drive down the compilation time. When using Qt, do not use module includes.
-
@JacobNovitsky this does not help you -- but I have been posting similar messages and it looks nobody cares. I actually got a stupid reply once - it is better to do that then not to build when required ...
@AnneRanch said in Qt Creator rebuilds all headers and cpp files to new objects:
this does not help you
You asked the very same question in this post. As usual, you got a polite answer. As usual, you did not reply. So we don't know if it was helpful or not.
Thanks for calling my answer stupid and not helpful. Made my evening.