Results 1 to 4 of 4

Thread: Cannot get Qt's Makefile to compile outside of Qt Creator

  1. #1
    Join Date
    May 2010
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Cannot get Qt's Makefile to compile outside of Qt Creator

    I am trying to write a script to do a nightly build of a Qt Project, my problem is that when I run the command mingw32-make.exe -f Makefile.Release it will compile fine but the linking of the project fails with the following output:

    Qt Code:
    1. c:\Qt\2010.05\qt\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0x1c2): undefined reference to `_Unwind_Resume'
    2. c:\Qt\2010.05\qt\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text$_ZN7QVectorIPcE7reallocEii[QVector<char*>::realloc(int, int)]+0x187): undefined reference to `_Unwind_Resume'
    3. c:\Qt\2010.05\qt\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
    4. collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 

    Any Ideas on what I'm doing wrong when calling the make command by hand (am I forgetting something?)

    Thanks in advance,

  2. #2
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    131
    Thanks
    11
    Thanked 16 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cannot get Qt's Makefile to compile outside of Qt Creator

    Did you search in the forum for _Unwind_Resume (or something else) A few threads are already covering this issue.

  3. #3
    Join Date
    May 2010
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot get Qt's Makefile to compile outside of Qt Creator

    It appeared to be a issue with the path not containing the DLLs for QtGui thanks for pointing me to other posts.

    Noting for others who stumble upon this post looking for the answer:
    running qtenv.bat will fix the path issue.

    Thanks,

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Cannot get Qt's Makefile to compile outside of Qt Creator

    Or running from the "Qt Command Prompt" that is installed (look in your Start menu) by the Qt SDK installer.

Similar Threads

  1. Qt Creator: File Makefile doesn't exist
    By earthling in forum Qt Tools
    Replies: 6
    Last Post: 4th November 2016, 03:44
  2. regen makefile/moc files from Qt Creator ?
    By divide in forum Qt Tools
    Replies: 1
    Last Post: 3rd July 2010, 20:59
  3. Qt Creator fail to compile !
    By qt_chan in forum Installation and Deployment
    Replies: 8
    Last Post: 17th March 2010, 06:41
  4. Qt Creator: File Makefile doesn't exist
    By earthling in forum Qt Programming
    Replies: 0
    Last Post: 9th December 2009, 17:46
  5. Replies: 2
    Last Post: 11th July 2006, 14:19

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.