Results 1 to 4 of 4

Thread: No rule to make target `../../tmp/projectName/mocinclude.tmp'

  1. #1
    Join Date
    May 2009
    Posts
    56
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6

    Default No rule to make target `../../tmp/projectName/mocinclude.tmp'

    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:

    Qt Code:
    1. !contains(DEFINES,MODULO_PRI) {
    2. DEFINES += MODULO_PRI
    3.  
    4. INCLUDEPATH += $$PWD
    5. DEPENDPATH += $$PWD
    6.  
    7. HEADERS += $$PWD/CModule.h \
    8. $$PWD/CModule_p.h
    9.  
    10. SOURCES += $$PWD/CModule.cpp
    11.  
    12. include($$PWD/../../Intercom/Intercom.pri)
    13.  
    14. }
    To copy to clipboard, switch view to plain text mode 

    If i commented out "INCLUDEPATH += $$PWD" in some pri files then it compiles!!
    Last edited by cafu1007; 4th December 2012 at 16:03.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: No rule to make target `../../tmp/projectName/mocinclude.tmp'

    What if you substitute it with:

    qmake Code:
    1. INCLUDEPATH+=.
    To copy to clipboard, switch view to plain text mode 
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2009
    Posts
    56
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6

    Default Re: No rule to make target `../../tmp/projectName/mocinclude.tmp'

    Ill try. But what is the difference?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: No rule to make target `../../tmp/projectName/mocinclude.tmp'

    Both statements are expanded at a different moment thus giving different result.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. :: error: No rule to make target
    By kurrachow in forum Newbie
    Replies: 2
    Last Post: 15th March 2011, 14:33
  2. Replies: 1
    Last Post: 5th March 2011, 19:23
  3. No rule to make target
    By Coolname007 in forum Qt Programming
    Replies: 6
    Last Post: 4th March 2011, 21:08
  4. building for symbian device error: No rule to make target `MAKEFILE_0XE587C205.MK'
    By alireza.mirian in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th January 2011, 19:40
  5. No rule to make target?
    By walsha3000 in forum Qt Programming
    Replies: 1
    Last Post: 2nd July 2010, 06:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.