Qt moc complaining of .hpp not exist
-
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.
-
@Puppy-Bear re-run your build system (qmake or cmake). Alternatively, clean the build dir and build fresh.
-
@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.
I'm worrying about my win sys might have crash while generating and caused environment broken before. -
@Puppy-Bear hm, check your cmake/ qmake file then, maybe it contains entries for
MoreSelectFrm.h
and this is whymoc
is trying to find it? -
P Puppy Bear has marked this topic as solved on
-
@Puppy-Bear Change .vcxproj file of visual studio solved this, it's kinda of vs and git bug/env problem