Re: Making an static binary of gqview

Valery Reznic <valery_reznic-/[email protected]> Thu, 26 May 2005 19:51:59 +0000 (UTC)
Newsgroups gmane.comp.gnome.apps.gqview.user
Message-ID <[email protected]>
Masataka Takayanagi <masatakayanagi@...> writes:

> 
> 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
> 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.
Ok, I know. statifier obviously can not handle dlopen by itself, but it can with
your help: you just need to use LD_PRELOAD, i.e your command should looks like

statifier -sLD_PRELOAD=all_libraries_you_think_gqview_need gqview gqview.static

Valery






-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005