PDA

View Full Version : debug vs. release in static



null_pointer
16th October 2007, 08:17
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!

marcel
16th October 2007, 08:34
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 :).