PDA

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



quakig
5th November 2013, 21:06
Hi

While trying to compile a Qt source file I get this error:


:-1: error: No rule to make target '../backend/blockf.c', needed by 'release/blockf.o'. Stop.

Please suggest as to what error does this point to and how should this be corrected.

Added after 4 minutes:

Please ignore -- found out and corrected :)

MartinCook
8th December 2013, 00:16
> Please ignore -- found out and corrected

Would be nice if you let the rest of us know what the fix was. :p

I found the answer at this link.

http://qt-project.org/forums/viewthread/26181

The important part of the thread is this:

Rerun qmake (Build->Run qmake), or, if that fails, clean the output directory and rebuild your project.
Also make sure you have a QT += widgets in your .pro file. Qt5 moved widgets to separate library.

I had done all the other stuff, so it was Build->Run qmake that did it for me.