I have a Qt project which will take around 15 mins to build the program. Each time when I make a small modification I have to wait for long time.
Is there a method to reduce this build time? Or is there a way to “make only the file which I had modified” and then execute the program?
Well check whether your are rebuilding in all your program runs. And also whether you are cleaning your project before running it. Because if you do so, it have to regenerate all those
mocfiles and output[.o] files needed for execution.But normally upon a small change, the build doesn’t take too much time. I have been developing a project by qt creator, it doesn’t take too much time while building upon a small modification. But if there is clean/rebuild step while every execution, it will definitely take whole build time. And again even if you manually build your project via terminal without the help of IDE, it won’t take that much time provided you don’t remove the moc files and .o files manually before building after small modifcation.