The Linux Wacom Project
SourceForge.net Logo

Linux Wacom Project HOWTO

13.2 - Building xsetwacom






Building xsetwacom

xsetwacom uses libwacomcfg.so to communicate with Wacom X (XFree86 or Xorg) driver, wacom_drv.(s)o. So, libwacomcfg.so should be built and installed.

libwacomcfg.so relies on Xlib. In the configure script, it will default the Xlib path to /usr/X11R6 or /usr/lib (/usr/X11R6/lib64 or /usr/lib64 if --enable-xserver64 option is set) by checking the existence of xf86Version.h. If your Xlib is not installed under /usr/X11R6 or /usr/lib, you'll need to specify the path (dir) by --with-xlib=dir. Let's see what we get from configure:

[jej@ayukawa linuxwacom]$./configure
...
----------------------------------------
  BUILD ENVIRONMENT:
       architecture - i686
       linux kernel - yes 2.4
  module versioning - yes -DONFIG_MODVERSIONS -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h
      kernel source - yes /usr/src/linux
            XFree86 - no 
          XSERVER64 - no 
           dlloader - no 
               XLib - yes /usr/X11R6
                TCL - yes /usr
                 TK - yes /usr
            ncurses - yes

  BUILD OPTIONS:
            wacom.o - no
            wacdump - yes
             xidump - yes
        libwacomcfg - yes
         libwacomxi - yes
          xsetwacom - yes
              hid.o - no
         usbmouse.o - no
            evdev.o - no
         mousedev.o - no
            input.o - no
        tabletdev.o - no
       wacom_drv.so - no
        wacom_drv.o - no
----------------------------------------

As shown above, the build options indicate that libwacomcfg and xsetwacom will be built. If not, then scroll back through the configuration to see if there aren't any errors or warnings that would explain this.

Next, run make. The output will be stored in the linuxwacom package's src/util and src/util/.libs directory. They will be installed by running make install (you need to switch to superuser to run this command).

If wacom_drv.(s)o was running while installing xsetwacom, xsetwacom can be launched immediately after make install and exit.

If wacom_drv.o is installed by the same make install as xsetwacom is, restarting X server is required to use the newly built wacom_drv.(s)o. We strongly recommand to build and install wacom_drv.(s)o and xsetwacom from the same release package since the out of sync wacom_drv.(s)o and xsetwacom may crash your X server.






Copyright (C) 2002-2009 - LinuxWacom -Last updated October 31, 2009
This website and its contents are licensed under the GNU GENERAL PUBLIC LICENSE.