PDA

View Full Version : :: error: No rule to make target



kurrachow
13th March 2011, 11:03
:: error: No rule to make target `debug/loginwindow.moc', needed by `debug/loginwindow.o'. Stop.


I am a newbie to Qt and i keep getting this error... i know this a silly error and i am overlooking some where, but please help me out and guide me on this.

well i have seen my .pro file where i included the header file (loginwindow.h)

and my loginwindow.cpp contains #include "loginwindow.moc"

My loginwindow.h contains the Q_OBJECT macro

i went across the thread (http://www.qtcentre.org/threads/32138-No-rule-to-make-target)where chisW67 made a post which i could follow.

thanx in advance...

stampede
13th March 2011, 11:48
My loginwindow.h contains the Q_OBJECT macro
and my loginwindow.cpp contains #include "loginwindow.moc"
You don't need to #include moc_* if you have defined the class in header file, which gets moc'ed ( so meta-object code is generated and compiled with other project sources )
Try to clean the project:


make clean
qmake
make

kurrachow
15th March 2011, 13:33
My man thanx dude