Help ( Regarding Tailoring of GTK+ )



pushpalata patil soc-soft com writes:
We are developing an application (Embedded) using GTK and
Glade(gtk-dev-2.10.6-win32-1), MSYS-1.0.9, MinGW-3.1.0-1.

Please don't send me personal mail about GTK+ on Windows. Use an
appropriate mailing list, gtk-app-devel-list gnome org  (You must be
subscribed in order to post to the list, see
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list .)

For our embedded application, the memory footprint allowed, maximum it
can be 2MB.

That sounds awfully tight.

a) We calculated footprint for small application on Windows. It boils
down to around 7.3MB.

DLL                                   |Size (KBs)
--------------------------------------+-----------
libatk-1.0-0.dll                      |138
libglib-2.0-0.dll                     |614
iconv.dll                             |872
intl.dll                              |44
libgobject-2.0-0.dll                  |222
libgdk_pixbuf-2.0-0.dll               |91
libgmodule-2.0-0.dll                  |17
libgtk-win32-2.0-0.dll                |3085
libgdk-win32-2.0-0.dll                |657
libcairo-2.dll                        |428
libpng13.dll                          |199
zlib1.dll                             |80
libpango-1.0-0.dll                    |220
libpangocairo-1.0-0.dll               |38
libpangowin32-1.0-0.dll               |58
GTK Images loaders                    |256
Theme engine                          |~ 300 (max)
--------------------------------------+-----------
TOTAL                                 |~7319

This is not the *memory* footprint you mentioned above. It is the size
on *disk* of the DLLs, which is quite another thing.

b) On Linux it is 5.3MB

.so                                    |Size (KBs)
---------------------------------------+----------
libgtk-x11-2.0 so                      |3100
libgdk-2.0.so                          |554.2
libatk-1.0.so                          |109.7
libgdk_pixbuf.so                       |92.6
libgobject-2.0.so                      |253.1
libgmodule-2.0.so                      |11.3
libpango-1.0.so                        |245.6
libcairo.so                            |329.4
libpangocairo-1.0.so                   |32.9
libglib.so                             |584.2
---------------------------------------+----------
TOTAL                                  |~5310

You forget to include here the png and zlib libraries and image
loaders, if this list is supposed to be comparable. And anyway, just
looking at the DLL and .so sizes is mostly an exercise in futility.

We wanted to remove the widgets which are not required by our
application. Is their any procedure to reduce footprint of GTK+, where
we can trim down gtk, gdk, glib, pango, Cairo???

You presumably do this as part of your *work*? I mean, like, you get
paid to do this? I don't. Why don't you experiment? Why don't you have
a look at what other companies have done to put gtk+ (and GNOME) on
embedded devices. maemo.org is one place to look at.

--tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]