[Bug 108718] - Fix for bug 102142 - failed to load "./stock_add_16.png" didn't take?



http://bugzilla.gnome.org/show_bug.cgi?id=108718
gtk+ | general | Ver: 2.2.x





------- Additional Comments From vincent fortier1 ec gc ca  2004-10-06 15:06 -------

I may have find a way to resolve this problem ... at least on HPUX 10.20.

I had the same error message until I finally investigate more on libpng.
1) In the Makefile on libpng it is specified to use the same options has zlib uses.
2) Tiff and jpeg had both .a (static) ans .sl (shared libs) but zlib and png
only had static (.a) files under their /opt/*/lib/*

Here is my system:
Everything is under /opt/Whatever/
I've built successfully:
binutils 2.15
GCC 3.4.2
gettext 0.11.5
libiconv 1.9.2
jpeg-6b
tiff-3.6.1
expat-1.95.8
xft 2.1.2
freetype 2.1.9
fontconfig 2.2.3
xcursor 1.0.2
xrender 0.8.3

Here is how I made gtk+ working properly:
1) I've recompiled zlib 1.2.1 with the option --shared
2) I've used makefile.hpux from libpng and modified it so that CFLAGS and
CCFLAGS would be the same has zlib's Makefile:
       CC=gcc
       CFLAGS=-I$(ZLIBINC) -fPIC -O3 -DUSE_MMAP
       CCFLAGS=-I$(ZLIBINC) -fPIC -O3 -DUSE_MMAP
and remove the +z from:
           $(CC) -c $(CFLAGS) -o $@ $*.c
           #$(CC) -c $(CFLAGS) +z -o $@ $*.c
and ran 'gmake' then 'gmake install'
3) Recompiled glib, atk and pango
     Note: I've always included in CPPFLAGS and LDFLAGS and/or PKG_CONFIG_PATH
what was missing from the configure portion

I have then tried once again gtk+-2.4.10 and it passed through stock-icons
portion.  Here was my environment before building:
export CPPFLAGS="-I/opt/gettext/include  -I/opt/expat/include
-I/opt/tiff/include -I/opt/jpeg/include -I/opt/zlib/include -I/opt/libpng/include"
export LDFLAGS="-L/opt/gettext/lib -L/opt/expat/lib -L/opt/tiff/lib
-L/opt/jpeg/lib -L/opt/zlib/lib -L/opt/libpng/lib"
export
PKG_CONFIG_PATH="/opt/glib/lib/pkgconfig/:/opt/xft/lib/pkgconfig/:/opt/freetype/lib/pkgconfig/:/opt/fontconfig/lib/pkgconfig/:/opt/pango/lib/pkgconfig/:/opt/atk/lib/pkgconfig/:/opt/xcursor/lib/pkgconfig/:/opt/xrender/lib/pkgconfig/"

Note that I had to rename /usr/include/X11 to /usr/include/X11.orig then make a
symlink between /usr/include/X11 -> /usr/include/X11R6 because even if I was
specifying the lib and include path it was still searching into /usr/include/X11
instead of /usr/include/X11R6/

then ran the configure:
./configure --prefix=/opt/gtk+-2.4.9 --disable-glibtest --disable-threads
--x-includes=/usr/include/X11R6/X11 --x-libraries=/usr/lib/X11R6

Hoping this heps!



------- You are receiving this mail because: -------
You are on the CC list for the bug.



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