Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. No rule to make target build/test1.moc, needed by build/test1.o. Stop.
QtWS25 Last Chance

No rule to make target build/test1.moc, needed by build/test1.o. Stop.

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 2.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nestoracN Offline
    nestoracN Offline
    nestorac
    wrote on last edited by
    #1

    When I build my Kdevelop Qt project, it complains about a missing moc file, which is needed. Here is my prueba.pro file. I think sources are irrelevant, but anyways, I have main.cpp, test1.h, test1.cpp, that I can post if needed. Any ideas? Thanks!!

    TEMPLATE = app

    FORMS += mainwindow.ui
    test1.ui
    SOURCES += main.cpp
    test1.cpp

    MOC_DIR = build
    OBJECTS_DIR = build
    UI_DIR = build

    DESTDIR = build

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      Hi and welcome to devnet,

      AFAICS, you are missing HEADERS += test1.h in your .pro file.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      nestoracN 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        AFAICS, you are missing HEADERS += test1.h in your .pro file.

        nestoracN Offline
        nestoracN Offline
        nestorac
        wrote on last edited by
        #3

        @SGaist Thank you! That worked.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved