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. Qt moc complaining of .hpp not exist
Forum Updated to NodeBB v4.3 + New Features

Qt moc complaining of .hpp not exist

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 298 Views 1 Watching
  • 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.
  • Puppy BearP Offline
    Puppy BearP Offline
    Puppy Bear
    wrote on last edited by Puppy Bear
    #1

    Using win10, msvc2015 qt4.9.3
    Created a folder with a.h a.cpp file in dev branch, Q_object is contained and well generated.
    commit then switch to main branch. Which should basically same in git
    But while I was trying to regenerate in vs,
    Qt says that mocing the a.h file doen't exist and exit generating.
    Of course the files are traced by git and deleted in main branch. My Qt is trying to moc an non-exsist file.

    Is it a env, vs or Qt error? How am I able to fix it? Thanks.
    3211a55d-7e63-45f4-8a14-71690ed95286-image.png
    f57fc768-71d9-4007-9e1c-2fe1f32e034b-image.png

    sierdzioS Puppy BearP 2 Replies Last reply
    0
    • Puppy BearP Puppy Bear

      Using win10, msvc2015 qt4.9.3
      Created a folder with a.h a.cpp file in dev branch, Q_object is contained and well generated.
      commit then switch to main branch. Which should basically same in git
      But while I was trying to regenerate in vs,
      Qt says that mocing the a.h file doen't exist and exit generating.
      Of course the files are traced by git and deleted in main branch. My Qt is trying to moc an non-exsist file.

      Is it a env, vs or Qt error? How am I able to fix it? Thanks.
      3211a55d-7e63-45f4-8a14-71690ed95286-image.png
      f57fc768-71d9-4007-9e1c-2fe1f32e034b-image.png

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Puppy-Bear re-run your build system (qmake or cmake). Alternatively, clean the build dir and build fresh.

      (Z(:^

      Puppy BearP 1 Reply Last reply
      1
      • sierdzioS sierdzio

        @Puppy-Bear re-run your build system (qmake or cmake). Alternatively, clean the build dir and build fresh.

        Puppy BearP Offline
        Puppy BearP Offline
        Puppy Bear
        wrote on last edited by
        #3

        @sierdzio That's what I regarded as well, but even when I tried to clean and regenerate the whole project Qt moc comes up with the same error.
        26cb780e-79f3-4046-b24d-01ccf48c6672-image.png
        I'm worrying about my win sys might have crash while generating and caused environment broken before.

        sierdzioS 1 Reply Last reply
        0
        • Puppy BearP Puppy Bear

          @sierdzio That's what I regarded as well, but even when I tried to clean and regenerate the whole project Qt moc comes up with the same error.
          26cb780e-79f3-4046-b24d-01ccf48c6672-image.png
          I'm worrying about my win sys might have crash while generating and caused environment broken before.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @Puppy-Bear hm, check your cmake/ qmake file then, maybe it contains entries for MoreSelectFrm.h and this is why moc is trying to find it?

          (Z(:^

          1 Reply Last reply
          0
          • Puppy BearP Puppy Bear has marked this topic as solved on
          • Puppy BearP Puppy Bear

            Using win10, msvc2015 qt4.9.3
            Created a folder with a.h a.cpp file in dev branch, Q_object is contained and well generated.
            commit then switch to main branch. Which should basically same in git
            But while I was trying to regenerate in vs,
            Qt says that mocing the a.h file doen't exist and exit generating.
            Of course the files are traced by git and deleted in main branch. My Qt is trying to moc an non-exsist file.

            Is it a env, vs or Qt error? How am I able to fix it? Thanks.
            3211a55d-7e63-45f4-8a14-71690ed95286-image.png
            f57fc768-71d9-4007-9e1c-2fe1f32e034b-image.png

            Puppy BearP Offline
            Puppy BearP Offline
            Puppy Bear
            wrote on last edited by
            #5

            @Puppy-Bear Change .vcxproj file of visual studio solved this, it's kinda of vs and git bug/env problem

            1 Reply Last reply
            1

            • Login

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