PDA

View Full Version : No rule to make target `../../tmp/projectName/mocinclude.tmp'



cafu1007
4th December 2012, 14:40
HI All,

I am having problem compiling my application. I am getting the error in the title while compiling. It seem that this is related to have many ".pri" or ".pro" files.

My project consist on many folder to make it more readable for partners, and so module can be reuse easier.

Is there anybody that hat hat the same problem? or does someone knows how can i fixed?->How them?

I have tried adding the "CONFIG += ordered +no_fixpath" to the pro file. additional this is how the pri files look like:



!contains(DEFINES,MODULO_PRI) {
DEFINES += MODULO_PRI

INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD

HEADERS += $$PWD/CModule.h \
$$PWD/CModule_p.h

SOURCES += $$PWD/CModule.cpp

include($$PWD/../../Intercom/Intercom.pri)

}


If i commented out "INCLUDEPATH += $$PWD" in some pri files then it compiles!!

wysota
4th December 2012, 16:46
What if you substitute it with:

INCLUDEPATH+=.

cafu1007
4th December 2012, 17:15
Ill try. But what is the difference?

wysota
4th December 2012, 17:51
Both statements are expanded at a different moment thus giving different result.