From: Steve W <s....@ve...> - 2004-05-28 17:56:15
|
Ping and Debian fans, Here is the write-up I promised earlier this week. I wanted to wait until I had the tools, particularly wacomcpl up and running before I published. I also wanted to make sure things actually worked, so I rebuilt everything from scratch using these steps, but I may have missed some things. I encourage comments and suggestions. Hope this is helpful. -Steve Wallace ----------------------------------------------------------------------- Procedure for building linuxwacom package on Debian Sid/unstable with a 2.6 series kernel. These instructions are current as of May 28, 2004. I have not tested on straight Debian Sarge/testing but it should work there as well. Note that the process required to build against a 2.4 series kernel is different and not described here. Also, note that most of these steps as written require root privilege. There are better ways of doing most of this (eg. fakeroot) but I wanted to keep it simple. 1) Get development libraries needed for tools. The libncurses, tcl, tk, libgtk and libx11 development libraries are needed to build the tools. The versions shown below were current at the time of this writing. At the moment libgtk is only needed for xidump, on my system it pulled in six other development libraries so if you don't need xidump you might consider leaving out libgtk-dev. apt-get install libncurses5-dev tcl8.4-dev tk8.4-dev libgtk2.0-dev libx11-dev 2) Get kernel source and build tools. Unpack source. apt-get install kernel-package kernel-source-2.6.6 cd /usr/src tar -xjvf kernel-source-2.6.6.tar.bz2 ln -s kernel-source-2.6.6 linux cd /usr/src/linux 3) Configure kernel. I used the existing stock kernel configuration but feel free to configure your own. Using the --revision switch is suggested but not required. See /usr/share/doc/kernel-package/README.gz for more information. Note that running "make-kpkg configure" is required at this point because it creates the .../include/linux/version.h file need by linuxwacom configure. cp /boot/config-2.6.6-1-686 .config make-kpkg --revision myhost.1 configure 4) Set up links to Tcl and Tk. The naming structure expected by linuxwacom does not match Debian's unique layout. I put these links in /root but they can go anywhere. Note that this is only required to build the wacomcpl tool. Be sure to link to the library versions you actually installed in step one above. cd /root mkdir tcl cd /root/tcl ln -s /usr/include/tcl8.4 include mkdir lib cd /root/tcl/lib ln -s /usr/lib/libtcl8.4.so.0 libtcl8.4.so.0 ln -s /usr/lib/libtk8.4.so.0 libtk.so.0 5) Download the current linuxwacom package from http://linuxwacom.sourceforge.net. I used the now current 0.6.3 version. Unpack the archive somewhere convenient I chose /home/steve/wacom. cd /home/steve/wacom tar -xjvf ../linuxwacom-0.6.3.tar.bz2 cd linuxwacom-0.6.3 6) Run configure to check your system and copy the module sources into the kernel source tree. If you set up the /usr/src/linux link in step 2 above you are fine, otherwise add --with-kernel option. ./configure --with-tcl=/root/tcl --enable-wacom --enable-hid \ --enable-usbmouse --enable-evdev --enable-mousedev 7) Build your new kernel. This builds the entire kernel and all modules specified in your .config file, so it may take a while. I am using initrd here, but if you configure your own smaller kernel that is not required. cd /usr/src/linux make-kpkg --initrd --revision myhost.1 kernel_image 8) Install your new kernel. cd /usr/src dpkg -i kernel-image-2.6.6_myhost.1_i386.deb 9) Build and install linuxwacom tools. cd /home/steve/wacom/linuxwacom-0.6.3/ make make install 10) Manually install the correct wacom_drv.o for your version of X11 and kernel. cp prebuilt/wacom_drv.o_4.3k2.6 /usr/X11R6/lib/modules/input/wacom_drv.o 11) Edit your XF86Config-4 file as desribed in the linuxwacom Howto. Note that if you have any unused input devices in your XF86Config-4 file they must have a one word identifer or wacomcpl may not work. I had to delete the unused "Configured Mouse" section from my file. Reboot. Enjoy. |