Results 1 to 7 of 7

Thread: Qt Creator: File Makefile doesn't exist

  1. #1
    Join Date
    Dec 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt Creator: File Makefile doesn't exist

    [I had this in the wrong section earlier, sorry for the duplication]

    Hello,

    it appears the Qt Creator (1.3, on WIndows Vista) does not know about the
    qmake variable QMAKE_MAKEFILE or MAKEFILE.

    Consequently, when I try to build something with, for example,

    QMAKE_MAKEIFLE = Make.foo

    the build fails, with the predictable message

    File Makefile doesn't exist
    Exited with code 128

    I know this can be addressed by adding an option "-f Make.foo" in the Build Steps config. But would it not be better if Creator knew something about the qmake variables? The way it is now, the makefile name has to be set in two places.

    Separately, a Creator Build->Clean All does not back up the build process all the way. In particular it doesn't remove the qmake output. Neither does Build->Clean Project.

    It seems that qmake is sort of half way integrated with Creator. Should it be treated as a foreign tool, or fully integrated?

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt Creator: File Makefile doesn't exist

    Considering QtCreator runs qmake as an external tool, passing it your .pro file, I would say it should be regarded as a foreign tool, the same as 'make'. If you really want your makefile to be named differently, you need to tell QtCreator to add the name of your new makefile to the make tool.

    Secondly, "Clean all" and friends simply runs "make clean", so its upto the makefile to delete the files, not Creator.

  3. #3
    Join Date
    Dec 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator: File Makefile doesn't exist

    Deleting things with the makefile doesn't work if the makefile is generated by qmake.

    If qmake supported making more than one target, things would be easier.

  4. #4
    Join Date
    Nov 2014
    Posts
    2
    Platforms
    Windows

    Default Re: Qt Creator: File Makefile doesn't exist

    Hi
    i didnt undestand this.anyone please explain...
    when i try to build a project in qt creator..it showing error like
    10:46:13: Running steps for project MagRead...
    10:46:13: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe" all
    Error: File Makefile doesn't exist.
    10:46:13: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project MagRead (kit: Desktop Qt 5.3 MSVC2012 OpenGL 32bit)
    When executing step "Make"
    10:46:13: Elapsed time: 00:00.

    I cant understand..what is this makefile??

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator: File Makefile doesn't exist

    The Makefile is a generated input file for the "make" build system that contains the instructions on how to build the project.

    The qmake tool generates that from the .pro file.
    Re-run qmake (from the Build menu) and check if it reports an errors.

    Cheers,
    _

  6. #6
    Join Date
    Nov 2014
    Posts
    2
    Platforms
    Windows

    Default Re: Qt Creator: File Makefile doesn't exist

    Thank you...

  7. #7
    Join Date
    Nov 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Creator: File Makefile doesn't exist

    I have a new question:
    Although clicking build run qmake still remains the error message no longer performs.
    : -1: Warning: Unable to generate output for: (directory) /Makefile.Release [TEMPLATE app]

Similar Threads

  1. Qt Creator: File Makefile doesn't exist
    By earthling in forum Qt Programming
    Replies: 0
    Last Post: 9th December 2009, 18:46
  2. Qmake for subdirs w/ custom makefile name
    By Frank J. Lhota in forum Qt Tools
    Replies: 1
    Last Post: 10th June 2009, 01:59
  3. Add Librabries in Makefile on Linux
    By nasty81 in forum Qt Programming
    Replies: 5
    Last Post: 21st April 2008, 16:58
  4. not able to change Makefile
    By shamik in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2007, 13:00
  5. Replies: 5
    Last Post: 13th March 2006, 21:22

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.