Results 1 to 12 of 12

Thread: Qmake repeatedly crashes

  1. #1
    Join Date
    Dec 2010
    Posts
    34
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Qmake repeatedly crashes

    Hi all,

    I have a problem that I can't seem to fix, Qmake crashes every time I build a project, inlcuding projects that used to work fine.

    The compile output doesn't give much info

    Running build steps for project FieldSize...
    Starting: "c:/qt/2010.05/qt/bin/qmake.exe" P:/Document/FieldSize/FieldSize.pro -r -spec win32-g++
    The process "c:/qt/2010.05/qt/bin/qmake.exe" crashed.
    Error while building project FieldSize (target: Desktop)
    When executing build step 'qmake'
    I only have a superficial understanding of how qmake works so don't know where to start with trying to fix this problem. Any ideas on how to find the problem, or alternatively do something that will fix it?

    Cheers.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qmake repeatedly crashes

    Does calling "qmake -v" work?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Dec 2010
    Posts
    34
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qmake repeatedly crashes

    :: error: No targets specified and no makefile found. Stop.
    I assume I've done that correctly by adding it as an additonal argument?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qmake repeatedly crashes

    No. Open the Qt command line and call "qmake -v".
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Dec 2010
    Posts
    34
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qmake repeatedly crashes

    P:\>c:/qt/2010.05/qt/bin/qmake.exe -v
    QMake version 2.01a
    Using Qt version 4.7.0 in C:/Qt/2010.05/qt/lib
    Seems to be there....

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qmake repeatedly crashes

    Good. Now cd to the directory containing your project (in the command line) and call "qmake". See if it crashes.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. The following user says thank you to wysota for this useful post:

    The physicist (10th August 2011)

  8. #7
    Join Date
    Dec 2010
    Posts
    34
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qmake repeatedly crashes

    If I do this

    P:\>c:/qt/2010.05/qt/bin/qmake.exe P:/Document/FieldSize/FieldSize.pro -r -spec win32-g++
    It seems to work (I doubt it actually compiles as there should be loads of errors)

    If I do this

    P:\>qmake.exe P:/Document/FieldSize/FieldSize.pro -r -spec win32-g++
    I get

    qmake is not recognises as in internal or external command...

  9. #8
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Qmake repeatedly crashes

    qmake is not on your path.

  10. The following user says thank you to SixDegrees for this useful post:

    The physicist (10th August 2011)

  11. #9
    Join Date
    Dec 2010
    Posts
    34
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qmake repeatedly crashes

    Quote Originally Posted by SixDegrees View Post
    qmake is not on your path.
    Ah, IT must have changed something on my work computer I suspect as it used to work. I will try adding it when I get in tomorrow. Cheers for the advice so far guys.

  12. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qmake repeatedly crashes

    Quote Originally Posted by The physicist View Post
    It seems to work
    Then it seems qmake is fine and the problem is related to invoking it from within Qt Creator. It's likely some configuration issue.
    (I doubt it actually compiles as there should be loads of errors)
    QMake doesn't perform compilation.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  13. #11
    Join Date
    Dec 2010
    Posts
    34
    Thanks
    10
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qmake repeatedly crashes

    Thanks guys - I had a look at PATH and QT had been removed from it, adding it again seems to have solved the problem and QMake no-longer crashes

    I'm guessing make compiles then? And QMake is some precompiling process?

  14. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qmake repeatedly crashes

    Quote Originally Posted by The physicist View Post
    I'm guessing make compiles then?
    No, the compiler compiles Make invokes the toolchain (compiler and linker).

    And QMake is some precompiling process?
    QMake creates a Makefile.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  15. The following user says thank you to wysota for this useful post:

    The physicist (12th August 2011)

Similar Threads

  1. Replies: 6
    Last Post: 16th June 2011, 21:59
  2. Replies: 0
    Last Post: 15th April 2011, 23:38
  3. play sound repeatedly
    By ardisaz in forum Qt Programming
    Replies: 4
    Last Post: 4th December 2010, 11:10
  4. Qt Creator upgraded to 2.0. Now repeatedly asked about Debugging Helper
    By winkle99 in forum Qt Tools
    Replies: 0
    Last Post: 25th June 2010, 23:16
  5. Calling QThread::exec() repeatedly
    By hb in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2007, 20:24

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.