Linking against Gtk3 version of libxfce4ui

flo.xfce at gmx-topmail.de flo.xfce at gmx-topmail.de
Fri Jun 26 11:56:31 CEST 2015


Yes I'm well aware that I can't link against both Gtk2 and 3. But it
happens though. No idea why. So here are my changes to the configure script:
--- orig.ac.in	2015-06-26 11:46:24.543753131 +0200
+++ configure.ac.in	2015-06-25 17:59:36.260291407 +0200
@@ -61,10 +61,10 @@
 XDT_CHECK_LIBX11_REQUIRE()

 dnl required
-XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.4.0])
-XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.7.0])
+XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.12.0])
+XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0])
 XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [0.1.0svn-r26876])
-XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.14.0])
+XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.16.0])
 XDT_CHECK_PACKAGE([DBUS], [dbus-1], [1.0.0])
 XDT_CHECK_PACKAGE([DBUS_GLIB], [dbus-glib-1], [0.72])
 XDT_CHECK_PACKAGE([LIBNOTIFY], [libnotify], [0.7.0])

And yes, I regnerated the Makefiles.
And this is ldd's output:

ldd /usr/bin/xfce4-notifyd-config
	linux-vdso.so.1 (0x00007ffd5d9c3000)
	libgtk-3.so.0 => /usr/lib/libgtk-3.so.0 (0x00007fb767508000)
	libgdk-3.so.0 => /usr/lib/libgdk-3.so.0 (0x00007fb767241000)
	libcairo-gobject.so.2 => /usr/lib/libcairo-gobject.so.2
(0x00007fb767038000)
	libxfce4ui-1.so.0 => /usr/lib/libxfce4ui-1.so.0 (0x00007fb766e26000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007fb7667e4000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007fb76652f000)
[...]

libxfce4ui-2.so[.0] exists and links against gtk3, I checked this with
ldd, too.
Now this is all information I can think of I can provide.

Regards

On 06/26/2015 03:36 AM, Matthew Brush wrote:
> On 2015-06-25 09:07 AM, flo.xfce at gmx-topmail.de wrote:
>> Hey everyone,
>> I'm working on porting xfce4-notifyd at the moment but I just can't test
>> it. It always links against libxfce4ui-1, which is the Gtk2 version on
>> my system, where libxfce4ui-2 is the Gtk3 version.
>> I changed the configure script to include
>> XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0]), but this has
>> no effect.
>> No other gtk-depending lib is linked, I checked with ldd. The problem
>> lays with libxfce4ui.
>> Any hints?
>>
> 
> Did you change this line:
> 
> http://git.xfce.org/apps/xfce4-notifyd/tree/configure.ac.in#n65
> 
> to `libxfce4ui-2`, and this line:
> 
> http://git.xfce.org/apps/xfce4-notifyd/tree/configure.ac.in#n67
> 
> to `gtk+-2.0` and change the 3rd argument to the GTK+ 3 version? If you
> weren't aware, you can't link gtk2 and gtk3 libraries into same process.
> 
> Also, just to be sure, you need to re-run autoreconf or autogen.sh or
> whatever, after messing with the `configure.ac[.in]` files.
> 
> Without seeing the changed code, that's all I can suggest.
> 
> Cheers,
> Matthew Brush
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce4-dev


More information about the Xfce4-dev mailing list