Re: More patches
- From: Denis Oliver Kropp <dok directfb org>
- To: Sven Neumann <sven gimp org>
- Cc: gtk-devel-list gnome org
- Subject: Re: More patches
- Date: Sat, 02 Feb 2008 02:53:04 +0100
Sven Neumann wrote:
Hi,
On Thu, 2008-01-31 at 06:06 +0100, Denis Oliver Kropp wrote:
gdk-directfb-cleanups.patch
Applied.
gdk-directfb-copy-to-image.patch
Applied.
gtk-add-glib-libs-to-executables.patch
This was a scary build issue. I installed glib, pango and gtk, but kept using
my system's atk. When gtk-query-immodules-2.0 was built it failed to link as
it missed a lot of new functions in the glib, e.g. glib_checksum_new(). I found
out that it somehow tried to link against my system's glib, though using pkg-config
the correct new glib was returned. Not sure if it's libstuhl or just the order
on the linker command line, but adding $(GLIB_LIBS) explicitly did the trick.
I did not apply this one as it affects other backends as well. Will
leave it up to the GTK+ developers to decide if this is the right thing
to do or not...
What if Gimp is also affected?
dok shizo[~] . env/gtkdfb
dok shizo(gtkdfb)[~] echo $LD_LIBRARY_PATH
/opt/gtkdfb/lib
dok shizo(gtkdfb)[~] echo $PKG_CONFIG_PATH
/opt/gtkdfb/lib/pkgconfig
dok shizo(gtkdfb)[~] cd cvs/gnome/gimp/
dok shizo(gtkdfb)[~/cvs/gnome/gimp] make
make all-recursive
make[1]: Entering directory `/home/dok/cvs/gnome/gimp'
Making all in m4macros
make[2]: Entering directory `/home/dok/cvs/gnome/gimp/m4macros'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/dok/cvs/gnome/gimp/m4macros'
Making all in tools
[...]
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/dok/cvs/gnome/gimp/plug-ins/sel2path'
Making all in uri
make[3]: Entering directory `/home/dok/cvs/gnome/gimp/plug-ins/uri'
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes
-Wmissing-declarations -Winit-self -Wpointer-arith -o uri uri.o uri-backend-gnomevfs.o ../../libgimp/libgimpui-2.0.la
../../libgimpwidgets/libgimpwidgets-2.0.la ../../libgimpconfig/libgimpconfig-2.0.la ../../libgimpmath/libgimpmath-2.0.la
../../libgimp/libgimp-2.0.la ../../libgimpcolor/libgimpcolor-2.0.la ../../libgimpbase/libgimpbase-2.0.la -pthread
-L/opt/gtkdfb/lib -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo-2
-lbonobo-activation -lart_lgpl_2 -lgtk-directfb-2.0 -lgdk-directfb-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0
-lpango-1.0 -lcairo -lgconf-2 -lgmodule-2.0 -ldl -lORBit-2 -lgthread-2.0 -lrt -lgobject-2.0 -lgnome-keyring -lglib-2.0
-pthread -L/opt/gtkdfb/lib -lgtk-directfb-2.0 -lgdk-directfb-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0
gcc -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith
-o .libs/uri uri.o uri-backend-gnomevfs.o -pthread -pthread ../../libgimp/.libs/libgimpui-2.0.so
/home/dok/cvs/gnome/gimp/libgimp/.libs/libgimp-2.0.so -L/opt/gtkdfb/lib
/home/dok/cvs/gnome/gimp/libgimpwidgets/.libs/libgimpwidgets-2.0.so -L/usr/local/lib
/home/dok/cvs/gnome/gimp/libgimpmodule/.libs/libgimpmodule-2.0.so ../../libgimpwidgets/.libs/libgimpwidgets-2.0.so
../../libgimpconfig/.libs/libgimpconfig-2.0.so ../../libgimpmath/.libs/libgimpmath-2.0.so
../../libgimp/.libs/libgimp-2.0.so /home/dok/cvs/gnome/gimp/libgimpconfig/.libs/libgimpconfig-2.0.so
/home/dok/cvs/gnome/gimp/libgimpmath/.libs/libgimpmath-2.0.so
/home/dok/cvs/gnome/gimp/libgimpcolor/.libs/libgimpcolor-2.0.so
/home/dok/cvs/gnome/gimp/libgimpbase/.libs/libgimpbase-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so
../../libgimpbase/.libs/libgimpbase-2.0.so /usr/lib64/libgnomeui-2.so -L/usr/lib64 /usr/lib64/libjpeg.so
/usr/lib64/libbonoboui-2.so /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libgnomecanvas-2.so
/usr/lib64/libgailutil.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so
/usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpangoft2-1.0.so /usr/lib64/libpango-1.0.so
/usr/lib64/libgnome-2.so /usr/lib64/libgnomevfs-2.so /usr/lib64/libxml2.so /usr/lib64/libdbus-glib-1.so -lnsl -lssl
-lcrypto -lresolv -lutil /usr/lib64/libpopt.so /usr/lib64/libbonobo-2.so /usr/lib64/libbonobo-activation.so
/usr/lib64/libORBitCosNaming-2.so /usr/lib64/libart_lgpl_2.so /usr/lib64/libgconf-2.so /usr/lib64/libORBit-2.so
/usr/lib64/libgmodule-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgthread-2.0.so /usr/lib64/libgnome-keyring.so
/usr/lib64/libdbus-1.so /usr/lib64/libglib-2.0.so /opt/gtkdfb/lib/libgtk-directfb-2.0.so
/opt/gtkdfb/lib/libgdk-directfb-2.0.so /opt/gtkdfb/lib/libatk-1.0.so /opt/gtkdfb/lib/libgdk_pixbuf-2.0.so
/usr/local/lib/libgio-2.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so
/usr/local/lib/libglib-2.0.so /opt/gtkdfb/lib/libpangocairo-1.0.so /usr/lib64/libcairo.so
/opt/gtkdfb/lib/libpangoft2-1.0.so /opt/gtkdfb/lib/libpango-1.0.so -lm /opt/gtkdfb/lib/libcairo.so
/usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libexpat.so /usr/local/lib/libdirectfb.so
/usr/local/lib/libfusion.so /usr/local/lib/libdirect.so /usr/lib64/libpng12.so -lz /usr/lib64/libXrender.so
/usr/lib64/libX11.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libpixman-1.so
/opt/gtkdfb/lib/libgobject-2.0.so /opt/gtkdfb/lib/libgmodule-2.0.so -ldl /opt/gtkdfb/lib/libgthread-2.0.so -lpthread
-lrt /opt/gtkdfb/lib/libglib-2.0.so -Wl,--rpath -Wl,/opt/gtkdfb/lib
/opt/gtkdfb/lib/libgtk-directfb-2.0.so: undefined reference to `g_test_bug_base'
/opt/gtkdfb/lib/libgtk-directfb-2.0.so: undefined reference to `g_test_init'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_checksum_free'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_checksum_get_string'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_checksum_update'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_hash_table_iter_init'
/usr/local/lib/libgio-2.0.so: undefined reference to `glib_gettext'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_hash_table_iter_next'
/home/dok/cvs/gnome/gimp/libgimpwidgets/.libs/libgimpwidgets-2.0.so: undefined reference to `g_assertion_message'
/opt/gtkdfb/lib/libgtk-directfb-2.0.so: undefined reference to `g_dpgettext'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_checksum_new'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_warn_message'
/opt/gtkdfb/lib/libgtk-directfb-2.0.so: undefined reference to `pango_layout_set_height'
/opt/gtkdfb/lib/libgtk-directfb-2.0.so: undefined reference to `g_test_queue_destroy'
../../libgimp/.libs/libgimpui-2.0.so: undefined reference to `g_assertion_message_expr'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_uri_escape_string'
collect2: ld returned 1 exit status
make[3]: *** [uri] Error 1
make[3]: Leaving directory `/home/dok/cvs/gnome/gimp/plug-ins/uri'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dok/cvs/gnome/gimp/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dok/cvs/gnome/gimp'
make: *** [all] Error 2
dok shizo(gtkdfb)[~/cvs/gnome/gimp]
Do you see the "/usr/lib64/libglib-2.0.so" while others are taken from "/opt/gtkdfb/lib"?
From previous configure:
[...]
configure:26324: checking pkg-config is at least version 0.16
configure:26327: result: yes
configure:26345: checking for GLIB - version >= 2.14.1
configure:26469: gcc -o conftest -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations
-Winit-self -Wpointer-arith -pthread -I/opt/gtkdfb/include/glib-2.0 -I/opt/gtkdfb/lib/glib-2.0/include conftest.c
-pthread -L/opt/gtkdfb/lib -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 >&5
configure:26472: $? = 0
[...]
configure:28163: checking for pkg-config
configure:28194: result: /usr/bin/pkg-config
configure:28216: checking for GTK+ - version >= 2.12.1
configure:28336: gcc -o conftest -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations
-Winit-self -Wpointer-arith -D_REENTRANT -pthread -I/opt/gtkdfb/include/gtk-2.0 -I/opt/gtkdfb/lib/gtk-2.0/include
-I/usr/local/include/directfb -I/opt/gtkdfb/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/pixman-1 -I/opt/gtkdfb/include/atk-1.0 -I/opt/gtkdfb/include/pango-1.0 -I/opt/gtkdfb/include/glib-2.0
-I/opt/gtkdfb/lib/glib-2.0/include conftest.c -pthread -L/opt/gtkdfb/lib -lgtk-directfb-2.0 -lgdk-directfb-2.0
-latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt
-lglib-2.0 >&5
configure:28339: $? = 0
configure:28345: ./conftest
configure:28348: $? = 0
[...]
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]