Unsolved Specify directories for UIC, MOC, and Object Files for each Module in an Application
-
Okay, but
Can you give me some explanation (or some link to study) about it?
-
-
I continue to have problems compiling. Warnings of type:
Ignoring old recipe for target 'moc/moc_AppDlg.cpp'
Overriding recipe for target 'moc/moc_AppDlg.cpp'In addition to several related errors: The member functions of Morph::AppDlg are not defined.
-
Did you re-run qmake or do a clean re-build (i.e. nuke the shadow-build folder) after adding the
CONFIG
option ? -
Yes. I deleted the shadow-build folder, and rebuilt the application. I continue to get errors/warnings mentioned above.
I'm working with Qt 4.8.6 and Qt Creator 2.5.2 (I do not know if that influences).
-
Oh yes, that influences greatly since
object_parallel_to_source
is Qt 5 feature.Are you locked to that old version of Qt ?
-
Yes, at least temporarily I am required to work with Qt 4.8.6.
Is there any option to get that same functionality in the Qt version I'm working with?
-
If you are building Qt yourself, you could try to back port the patch.
-
I'm not building Qt by myself.
I wonder if there is any way (set of instructions specified in the .pro file, maybe something like what I used under the comment #Instalacion), in Qt 4.8.6, to achieve something similar to the functionality of the object_parallel_to_source option; or something that allows me to have two classes of the same name in my project.
Can you do such a thing?
-
You can use
object_with_source
BUT (and it's a big one) you lose the ability to do out of source builds.On a side note, Qt 4.8.6 is not the latest of the Qt 4 series, there's Qt 4.8.7.
-
I will try to use object_with_source.
On the other hand, I wonder if it will be possible to manually emulate (with instructions in the .pro file, with some script, or something like that) the functionality of the object_parallel_to_source option.
-
I'd say highly unlikely. Note that you could also try with cmake rather than qmake.