PDA

View Full Version : Get rid of shadow build!!!



alizadeh91
3rd March 2013, 14:51
Is there any way to get rid of shadow build in qtCreator forever!!?
It's driving me crazy sometime because of irrelevant errors!

wysota
3rd March 2013, 15:08
Uncheck shadow build in project configuration.

alizadeh91
3rd March 2013, 15:31
I know this way!!! But whenever i change the compiler or clean generated files the shadow build will return again!!!

wysota
3rd March 2013, 16:05
It doesn't do anything like that for me. Apparently you're doing something wrong.

alizadeh91
3rd March 2013, 18:35
Anyway, What is the useful thing about shadow build wysota?

saman_artorious
3rd March 2013, 19:10
Shadow build generates moc_ and .o files inside another -Debug directory. it never generates files inside your release Qt Project. Maybe you
are giving the wrong directory address in project. The moc tool reads a C++ header file. If it finds one or more class declarations that contain the Q_OBJECT macro, it produces a C++ source file containing the meta-object code for those classes. Among other things, meta-object code is required for the signals and slots mechanism, the run-time type information, and the dynamic property system. The C++ source file generated by moc must be compiled and linked with the implementation of the class.
If you use qmake to create your makefiles, build rules will be included that call the moc when required, so you will not need to use the moc directly.