Re: [gtkmm] how build a statically link program



On Wed, 2004-01-21 at 03:57, kmilo softhome net wrote:
> There is a way to build a statically link program in gtkmm under windows (It 
> must works without dll)

Well yes, you can build static gtkmm libraries if you want (./configure
--enable-static --disable-shared in your mingw32+msys environment: see
README.win32 for details) but I haven't done that for a long time
because :

1. You end up with huge executables (they can be stripped though!)
2. Your gtkmm static library (hence your final executable) still relies
on the GTK+ runtime, which is only available as DLLs.

So, if you want a nice, standalone gtkmm application, my best advise is
to compile it dynamically and provide your own integrated installer for
your executable + the GTK+ and gtkmm runtimes. An intermediate solution
is to ask your users to install the GTK+ runtime only (from dropline),
and to ship you application with the glibmm, atkmm, pangomm, gdkmm and
gtkmm DLLs located in the same directory.

Cedric

> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
				Cedric Gustin
				Ph.D. Student
    _/    _/   _/_/_/_/   _/
   _/    _/   _/         _/	mailto:gustin pcpm ucl ac be
  _/    _/   _/         _/	PCPM Lab, Univ. Catholique de Louvain
 _/    _/   _/         _/	Place Croix du Sud, 1
_/_/_/_/   _/_/_/_/   _/_/_/_/	B-1348 Louvain-la-Neuve (Belgium)
				tel: +32 (0)10/47.33.59
				fax: +32 (0)10/47.33.59




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