can I delete these "build"s ?
-
- Should there be only one "build" directory ?
- Why some of these "builds " have QT version ?
My project reside in MDI_BT directory...
-
@AnneRanch said in can I delete these "build"s ?:
Why some of these "builds " have QT version ?
Because you can not mix different Qt versions so if you compile with Qt6.3.1 the output must be in a different directory than when you compile with Qt.6.2.3.
-
The default output directory name is
build-[project name]-[kit name]-[configuration]
, so at some point you tried to compile this project with 4 different kits.
Three of them have Qt version in their name because that's the default naming convention when you create or install a new kit.
One is just called "Desktop" because that's probably the default one installed on your system.
You can delete any or all of them. The one you actually currently use will be recreated the next time you build your project. -
I have successfully deleted the directories. Had to recompile some libraries... no problem.
I like to continue to clean-up so my next question is
what are these for and can they be safely removed / deleted ?Should I have only "mdi.pro"?
-
The .pro file is the file that holds your qmake configuration for the project, so don't delete that one.
The .pro.user file is your local configuration. It holds stuff like which kit you selected, what build configuration is selected - debug or release, customization to paths or environment variables you might have done and bunch of other settings like that. And again - since you apparently configured this project multiple times with different kits you have a couple of them. I think you also get a new one when you update Qt Creator. The old one gets renamed with a hash as a backup.
So it's ok to delete the ones with hash at the end. Those are basically backups (there's even a comment with a date and Qt Creator version at the top of their contents).
If you remove the .pro.user you'll loose all your local settings, so next time you open the project you'd need to reconfigure - select kit, setup any custom paths or settings you changed etc., but those are local settings, so generally it won't hurt your project. This is a local file so if you share the project with someone this file you don't share. Everyone gets their own.