xfce4-mouse-settings-CRITICAL **: XI is not present or too old

Paul Griffith paulg at cse.yorku.ca
Wed Jul 8 15:22:34 CEST 2009


Greetings,

I was able to compile Xfce 4.6 on our CentOS (RHEL) 4.6 system. While I was doing so testing, I notice that the mouse settings refuse to launch. When I run xfce4-mouse-settings from the command line I get the following.

azzy 335 % xfce4-mouse-settings
xfce4-mouse-settings:309 : xfce4-mouse-settings-CRITICAL **: XI is not present or too old.


Here is the code block that triggers the error!

xfce4-settings-4.6.1/dialogs/mouse-settings/main.c

1225     /* check for Xi 1.4 */
1226     version = XGetExtensionVersion (GDK_DISPLAY (), INAME);
1227     if (!version || !version->present || version->major_version < 1 || version->minor_version < 4)
1228     {
1229         g_critical ("XI is not present or too old.");
1230
1231         return EXIT_FAILURE;
1232     }


I was able to find this Gentoo bug report http://bugs.gentoo.org/show_bug.cgi?id=262333. From the bug report it seems that XGetExtensionVersion  returns the version of the Xorg server not the version of Xi.

A check of xfce4-settings-4.6.1/dialogs/keyboard-settings/main.c show that the keyboard settings doesn't need a specific version of the Xorg server or Xi and I assume that since the keyboard is a input device is should also care about libXi. Is the mouse-settings expecting to support more mouse like devices (tablets,etc).

I am running Xi 1.2.1, and here are the stock CentOS xorg RPMS we have installed! We are running Xorg 6.8.2 (Released: 2005-02-09). From the source code (xfce4-settings-4.6.1/dialogs/mouse-settings/main.c)  I would need to run Xorg 7.3, which has Xorg server 1.4. In Xorg 7.3 it uses libXi v1.3.1 - so the error is misleading! Do we realy need Xorg 7.3 or do we need a recent enough version of Xi ?


CentOS RPMS installed...
xorg-x11-Mesa-libGL-6.8.2-1.EL.33
xorg-x11-xfs-6.8.2-1.EL.33
xorg-x11-deprecated-libs-6.8.2-1.EL.33
xorg-x11-twm-6.8.2-1.EL.33
xorg-x11-6.8.2-1.EL.33
xorg-x11-xdm-6.8.2-1.EL.33
xorg-x11-devel-6.8.2-1.EL.33
xorg-x11-sdk-6.8.2-1.EL.33.0.2
xorg-x11-Mesa-libGLU-6.8.2-1.EL.33
xorg-x11-tools-6.8.2-1.EL.33
xorg-x11-Xdmx-6.8.2-1.EL.33
xorg-x11-doc-6.8.2-1.EL.33.0.2
xorg-x11-libs-6.8.2-1.EL.33
xorg-x11-font-utils-6.8.2-1.EL.33
xorg-x11-xauth-6.8.2-1.EL.33
xorg-x11-deprecated-libs-devel-6.8.2-1.EL.33


Any suggestions  or work arounds ?

Thank You
Paul



More information about the Xfce4-dev mailing list