:: error: No rule to make target
:: 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 where chisW67 made a post which i could follow.
thanx in advance...
Re: :: error: No rule to make target
Quote:
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:
Code:
make clean
qmake
make
Re: :: error: No rule to make target