What is the purpose of the garbage (files) that Qt Creator auto-generates and how can I tame them?

Posted by Venemo on Stack Overflow See other posts from Stack Overflow or by Venemo
Published on 2010-05-24T23:50:16Z Indexed on 2010/05/25 0:01 UTC
Read the original article Hit count: 342

Filed under:
|
|
|
|

Hello Everyone,

I'm fairly new to Qt, and I'm using the new Nokia Qt SDK beta and I'm working to develop a small application for my Nokia N900 in my free time.
Fortunately, I was able to set up everything correctly, and also to run my app on the device.

I've learned C++ in school, so I thought it won't be so difficult.
I use Qt Creator as my IDE, because it doesn't work with Visual Studio.

I also wish to port my app to Symbian, so I have run the emulator a few times, and I also compile for Windows to debug the most evil bugs. (The debugger doesn't work correctly on the device.)

I come from a .NET background, so there are some things that I don't understand.

When I hit the build button, Qt Creator generates a bunch of files to my project directory:

  • moc_*.cpp files - I don't know their purpose. Could someone tell me?
  • *.o files - I assume these are the object code
  • *.rss files - I don't know their purpose, but they definitely don't have anything to do with RSS
  • Makefile and Makefile.Debug - I have no idea
  • AppName (without extension) - the executable for Maemo, and AppName.sis - the executable for Symbian, I guess?
  • AppName.loc - I have no idea
  • AppName_installer.pkg and AppName_template.pkg - I have no idea
  • qrc_Resources.cpp - I guess this is for my Qt resources

(where AppName is the name of the application in question)

I noticed that these files can be safely deleted, Qt Creator simply regenerates them.
The problem is that they pollute my source directory. Especially because I use version control, and if they can be regenerated, there is no point in uploading them to SVN.

So, could someone please tell me what the exact purpose of these files is, and how can I ask Qt Creator to place them into another directory?

Thank you in advance!

© Stack Overflow or respective owner

Related posts about c++

Related posts about qt