Results 1 to 9 of 9

Thread: Release Mode Compiler Terminated with a Terrible Exception

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    11
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Release Mode Compiler Terminated with a Terrible Exception

    Quote Originally Posted by nateriver View Post
    Try using Qt 4.6 (it seems that you are using qt 4.5), maybe mingw bundled with previous versions was incompatible with Windows Vista.
    Also try compiling your project from command line. Launch Qt Command Prompt (should be somewhere in your Start menu), enter your project's directory (cd "C:/Users/Guido/Documents/Learning/"), run "qmake -spec win32-g++ -r CONFIG+=release" and "mingw32-make -f Makefile.Release". If that doesn't make any difference, try to run just "qmake" without any parameters, and then run make command (the same as before).
    It works. Thank you.

    But now how do I build the same project for the linux platform, without running qmake on linux?

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Release Mode Compiler Terminated with a Terrible Exception

    Quote Originally Posted by waitingforzion View Post
    But now how do I build the same project for the linux platform, without running qmake on linux?
    Why not use qmake? You'd have to write all build rules (including rcc, uic and moc) in a different build system (cmake, automake or (hard core) a Makefile) yourself.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Dec 2009
    Posts
    19
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Release Mode Compiler Terminated with a Terrible Exception

    Quote Originally Posted by waitingforzion View Post
    But now how do I build the same project for the linux platform, without running qmake on linux?
    If you want to build your project for linux on windows, I doubt that it's possible, but who knows (need to check gcc's command line arguments)?
    But if you want to distribute sources of your application for building on linux, you can just run qmake on your development machine and distribute your project with makefiles that qmake generated. However, qmake makes some assumptions when generating makefiles, for example it's configured to use gcc as compiler by default, so if somebody tries to compile your project using generated makefiles, he might have to manually edit it if gcc is not installed. In this case the best way is to use 'configure' scripts, but I've never used them, so can't really help, sorry.
    "Do be do be do", Frank Sinatra

Similar Threads

  1. Replies: 1
    Last Post: 18th November 2009, 21:51
  2. Replies: 9
    Last Post: 15th April 2009, 06:23
  3. Not able to execute in Release Mode
    By sudheer168 in forum Qt Programming
    Replies: 4
    Last Post: 18th March 2009, 11:58
  4. Replies: 3
    Last Post: 27th January 2009, 09:31
  5. qodbc driver not loaded error in release mode
    By mandal in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2006, 09:42

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
  •  
Qt is a trademark of The Qt Company.