Results 1 to 3 of 3

Thread: Error No rule ot make target needed by /.../.. MakeFile.stop file not found

  1. #1
    Join Date
    Feb 2013
    Posts
    71
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Error No rule ot make target needed by /.../.. MakeFile.stop file not found

    I was recently trying to run my project on a Windows 7 system from my windows directory. Now when I go back to Linux to run it, I get this error. I've tried to clean and build which did nothing. Then someone told me to delete the makefile and build the project again but that didn't help so right now I have no makefile for this project.

    Thanks in advance.

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Error No rule ot make target needed by /.../.. MakeFile.stop file not found

    You should delete the file: PROJECT_NAME.pro.user (or don't copy that file when you move code between platforms or click on No option on "import settings" (or something similar) when you open a .pro file that still has that file and it was created on another platform) and then you will be able to add the target/s for the platform you use.

  3. #3
    Join Date
    Jul 2016
    Posts
    3
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Error No rule ot make target needed by /.../.. MakeFile.stop file not found

    1) In .pro file find your problematic .cpp file and move it few lines up, near the other .cpp files at SOURCES +=. Solved it for me.
    2) Also make sure you have the right read write permissions to access the .cpp, h file.
    3) If the above doesn't work, put the problematic .cpp .h files in a separate folder, outside the project folder ( not near the project folder )
    Last edited by sunny127; 7th February 2017 at 12:09.

Similar Threads

  1. :: error: No rule to make target
    By kurrachow in forum Newbie
    Replies: 2
    Last Post: 15th March 2011, 14:33
  2. Replies: 1
    Last Post: 5th March 2011, 19:23
  3. No rule to make target
    By Coolname007 in forum Qt Programming
    Replies: 6
    Last Post: 4th March 2011, 21:08
  4. 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, 19:40
  5. No rule to make target?
    By walsha3000 in forum Qt Programming
    Replies: 1
    Last Post: 2nd July 2010, 06:42

Tags for this Thread

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.