Results 1 to 2 of 2

Thread: debug vs. release in static

  1. #1
    Join Date
    Sep 2007
    Location
    Finland
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default debug vs. release in static

    I'm very new to Qt4, however i'm working on a study to port a larger application from Qt3 to Qt4.

    I've just started to evaluate the development environment on Linux and made my first build of the Qt 4.3.2 in static debug mode with built-in (static) sqlite driver. Compiled the 'examples/sql/tablemodel'-application to test the database connectivity, which was ok, however the size of the built target (tablemodel) exceeded the size of 100MB! Re-compiled the Qt 4.3.2 now in static release mode with built-in (static) sqlite driver and built the same application again, which now was only 9.8MB! My question: is there really such a overhead when Qt built in debug mode or does my large binary size depend on the projet file settings?

    Any mind sharing very welcome and highly encouraged, thanks in advance!

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: debug vs. release in static

    It is that big because there are a lot of debug symbols in there. You can't do anything about it, unless you compile Qt as a shared lib(debug).

    Anyway,the release build is acceptable and I am sure you won't distribute the debug verson .

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12
  2. Replies: 2
    Last Post: 20th July 2007, 16:34
  3. Debug and Release
    By paranoid_android in forum Qt Programming
    Replies: 5
    Last Post: 18th November 2006, 13:58
  4. Replies: 6
    Last Post: 10th November 2006, 10:38

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.