Results 1 to 2 of 2

Thread: :-1: error: No rule to make target

  1. #1
    Join Date
    Oct 2013
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: :-1: error: No rule to make target

    Hi

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

    Qt Code:
    1. :-1: error: No rule to make target '../backend/blockf.c', needed by 'release/blockf.o'. Stop.
    To copy to clipboard, switch view to plain text mode 

    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
    Last edited by quakig; 5th November 2013 at 21:06.

  2. #2
    Join Date
    Dec 2013
    Posts
    4
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: :-1: error: No rule to make target

    > Please ignore -- found out and corrected

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

    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.

Similar Threads

  1. Replies: 2
    Last Post: 7th February 2017, 11:03
  2. :: error: No rule to make target
    By kurrachow in forum Newbie
    Replies: 2
    Last Post: 15th March 2011, 13:33
  3. Replies: 1
    Last Post: 5th March 2011, 18:23
  4. No rule to make target
    By Coolname007 in forum Qt Programming
    Replies: 6
    Last Post: 4th March 2011, 20:08
  5. building for symbian device error: No rule to make target `MAKEFILE_0XE587C205.MK'
    By alireza.mirian in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th January 2011, 18:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.