GTK-2.0 static linked application need minimal dependencies
I tried to build a application (abiword) with gtk2. I figured out that there is a minimal requirement on gtk2: this files must be existing: # ls -lR /opt/gtk2 /opt/gtk2: insgesamt 0 drwxrwxrwx4 root sys96 11-22 11:17 etc /opt/gtk2/etc: insgesamt 0 drwxrwxrwx2 root sys96 11-22 11:17 gtk-2.0 drwxrwxrwx2 root sys96 11-22 11:03 pango /opt/gtk2/etc/gtk-2.0: insgesamt 4 -rw-rw-rw-1 root sys 417 11-22 11:17 gtk.immodules /opt/gtk2/etc/pango: insgesamt 16 -rw-r--r--1 root sys 11446 11-22 11:03 pangox.aliases -rw-rw-rw-1 root sys 119 11-22 11:03 pango.modules or the following error message occurs: # abiword GLib: Cannot convert message: Conversion from character set 'UTF-8' to 'iso88591' is not supported ** (AbiWord_s:12417): WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" ** (AbiWord_s:12417): WARNING **: Couldn't load font "Sans 10" falling back to "Sans 10" ** (AbiWord_s:12417): WARNING **: All font failbacks failed means this, that I should configure gtk2 with the flag '--sysconfdir' in pango and in gtk2? to place the config files f. e. in /abiword/etc to distribute it with the final executable?. thanks Martin ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GTK-2.0 static linked application need minimal dependencies
> means this, that I should configure gtk2 with the flag '--sysconfdir' > in pango and in gtk2? to place the config files f. e. > in /abiword/etc to distribute it with the final executable?. Not necessarily. You can also set environment variables. What we do for GPS is to use a wrapper (shell script) that does the setting, and then call the real executable: << #!/bin/sh # Copyright 2002 by ACT Europe. prog=`basename $0` root=`dirname $0` # Strip 'bin' directory to retrieve the real root root=`dirname $root` LD_LIBRARY_PATH=$root/lib:$LD_LIBRARY_PATH PANGO_RC_FILE=$root/etc/gps/pangorc GTK_IM_MODULE_FILE=$root/etc/gps/gtk.immodules GTK_DATA_PREFIX=$root export LD_LIBRARY_PATH PANGO_RC_FILE GTK_DATA_PREFIX GTK_IM_MODULE_FILE exec $root/bin/${prog}_exe "$@" >> This script is licensed under the GPL, so feel free to use it (or a similar technique) for any GPL program. Now, it would be really nice if all these env variable setting could be avoided. Arno ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list