Making an static binary of gqview
Masataka Takayanagi <[email protected]> Wed, 6 Apr 2005 10:05:04 +0200
| Newsgroups | gmane.comp.gnome.apps.gqview.user |
|---|---|
| Message-ID | <[email protected]> |
For some reasons, I need a static binary of gqview which I can run anywhere without rebuilding. The included build scripts don't have that in mind, so I tried with statifier (statifier.sf.net), but without much luck. Works fine on my box, but when I try it on a different one, I get this battery of errors: ****************** (gqview.static:17242): Gtk-WARNING **: /usr/lib/gtk-2.0/2.4.0/engines/libthinice.so: undefined symbol: g_return_if_fail_warning (gqview.static:17242): Gtk-WARNING **: Unable to locate theme engine in module_path: "metal", (gqview.static:17242): GdkPixbuf-WARNING **: Error loading XPM image loader: Unable to load image-loading module: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: undefined symbol: g_asse rt_warning (gqview.static:17242): GLib-GObject-CRITICAL **: file gobject.c: line 1579 (g_object_unref): assertion `G_IS_OBJECT (object)' failed (gqview.static:17242): GdkPixbuf-WARNING **: Error loading XPM image loader: Unable to load image-loading module: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: undefined symbol: g_asse rt_warning (gqview.static:17242): GLib-GObject-CRITICAL **: file gobject.c: line 1579 (g_object_unref): assertion `G_IS_OBJECT (object)' failed (gqview.static:17242): GdkPixbuf-WARNING **: Error loading XPM image loader: Unable to load image-loading module: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: undefined symbol: g_asse rt_warning (gqview.static:17242): GdkPixbuf-WARNING **: Error loading XPM image loader: Unable to load image-loading module: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: undefined symbol: g_asse rt_warning (gqview.static:17242): GdkPixbuf-WARNING **: Error loading XPM image loader: Unable to load image-loading module: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: undefined symbol: g_asse rt_warning (gqview.static:17242): GdkPixbuf-WARNING **: Error loading XPM image loader: Unable to load image-loading module: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: undefined symbol: g_asse rt_warning (gqview.static:17242): GLib-GObject-CRITICAL **: file gobject.c: line 1579 (g_object_unref): assertion `G_IS_OBJECT (object)' failed ** (gqview.static:17242): WARNING **: No builtin or dynamically loaded modules were found. Pango will not work correctly. This probably means there was an error in the creation of: '/etc/pango/i386/pango.modules' You may be able to recreate this file by running pango-querymodules. (gqview.static:17242): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_object_ref): assertion `G_IS_OBJECT (object)' failed ** (gqview.static:17242): CRITICAL **: file pango-engine.c: line 68 (_pango_engine_shape_shape): assertion `PANGO_IS_FONT (font)' failed ** ERROR **: file shape.c: line 75 (pango_shape): assertion failed: (glyphs->num_glyphs > 0) aborting... ****************** So, if originally linked dinamically, the binary will evilishly use dlopen, which statifier obviously cannot handle. If you know how to make a static binary of gqview, if you have made one before or anything, please reply. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click