LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2200|回复: 8

请教wacom驱动的安装。

[复制链接]
发表于 2005-3-31 15:53:53 | 显示全部楼层 |阅读模式
系统是fc3(或centos4),wacom(usb的)试了多次都没成功,论坛上的资料也很少。有哪位DX有成功经验,能否写个大概的过程。感激不尽!! :thank
发表于 2005-3-31 21:56:52 | 显示全部楼层
到这里看看:
linuxwacom.sourceforge.net
上面有很多资料,安装需要给内核打补丁,否则定位会有抖动
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-1 01:05:53 | 显示全部楼层
谢谢!请问给内核打补丁是否已经包含在安装驱动的过程中了?我以前的几次都是
cp src/2.6.10/wacom.c /usr/src/linux/drivers/usb/input/   
cd /usr/src/linux
make
然后在最后make install时出错,好象是找不到某个文件或路径(2.6.10的内核,具体有点忘了,找时间再试试)后面就装不下去了,但后面有很多步骤,有点搞不清哪些是要作的,比如./configure --enable-hid --enable-usbmouse --enable-mousedev --enable-evdev这些是否也要进行。(我是usb光电鼠+usb键盘)后面还要改XFree86,却没xorg的改法?难道可以通用?
用linux到现在其他问题或解决或将就,只有wacom驱动的问题让我一直郁闷的很,每次失败就怪linux怎么装驱动如此不方便,但不成功实在不甘心啊,呵呵。
如果方便还请cobranail大侠指点一下,多谢了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-1 10:33:15 | 显示全部楼层
奇怪了,这次第二步就出错了:
----------------------------------------
  BUILD ENVIRONMENT:
       architecture - i686
       linux kernel - yes 2.6.10
  module versioning - yes -DCONFIG_MODVERSIONS -DMODVERSIONS -include /usr/src/l inux/include/linux/modversions.h
      kernel source - yes /usr/src/linux
           Xorg SDK - no
          XSERVER64 - no
               XLib - yes /usr/X11R6/lib
                TCL - no
                 TK - no
            ncurses - yes
                GTK - no

  BUILD OPTIONS:
            wacom.o - yes
            wacdump - yes
             xidump - yes
        libwacomcfg - yes
         libwacomxi - no
          xsetwacom - yes
              hid.o - no
         usbmouse.o - no
            evdev.o - no
         mousedev.o - no
            input.o - no
        tabletdev.o - no
        wacom_drv.o - no
----------------------------------------
[zwf@zwfcentos linuxwacom-0.6.7]$ make
make  all-recursive
make[1]: Entering directory `/home/zwf/linuxwacom-0.6.7'
Making all in src
make[2]: Entering directory `/home/zwf/linuxwacom-0.6.7/src'
Making all in .
make[3]: Entering directory `/home/zwf/linuxwacom-0.6.7/src'
source='wacomcfg.c' object='wacomcfg.lo' libtool=yes \
depfile='.deps/wacomcfg.Plo' tmpdepfile='.deps/wacomcfg.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -Wall -ped antic -g -O2 -c -o wacomcfg.lo `test -f 'wacomcfg.c' || echo './'`wacomcfg.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -pedantic -g -O2 -c wacomcfg.c -MT wacomc fg.lo -MD -MP -MF .deps/wacomcfg.TPlo  -fPIC -DPIC -o .libs/wacomcfg.lo
In file included from wacomcfg.c:26:
wacomcfg.h:25:22: X11/Xlib.h: No such file or directory
In file included from wacomcfg.c:26:
wacomcfg.h:55: error: syntax error before '*' token
wacomcfg.c:45:35: X11/extensions/XInput.h: No such file or directory
wacomcfg.c:46:36: X11/extensions/XIproto.h: No such file or directory
wacomcfg.c:61: error: syntax error before "Display"
wacomcfg.c:61: warning: no semicolon at end of struct or union
wacomcfg.c:63: error: syntax error before "pDevs"
wacomcfg.c:63: warning: type defaults to `int' in declaration of `pDevs'
wacomcfg.c:63: error: ISO C forbids data definition with no type or storage clas s
wacomcfg.c:65: error: syntax error before '}' token
wacomcfg.c:65: warning: ISO C does not allow extra `;' outside of a function
wacomcfg.c:70: error: syntax error before "XDevice"
wacomcfg.c:70: warning: no semicolon at end of struct or union
wacomcfg.c:71: warning: ISO C does not allow extra `;' outside of a function
wacomcfg.c: In function `CfgError':
wacomcfg.c:80: error: dereferencing pointer to incomplete type
wacomcfg.c:81: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `CfgGetDevs':
wacomcfg.c:91: error: dereferencing pointer to incomplete type
wacomcfg.c:91: error: `XDeviceInfoPtr' undeclared (first use in this function)
wacomcfg.c:91: error: (Each undeclared identifier is reported only once
wacomcfg.c:91: error: for each function it appears in.)
wacomcfg.c:91: error: syntax error before "XListInputDevices"
wacomcfg.c:93: error: dereferencing pointer to incomplete type
wacomcfg.c: At top level:
wacomcfg.c:103: error: syntax error before '*' token
wacomcfg.c: In function `WacomConfigInit':
wacomcfg.c:109: warning: implicit declaration of function `XQueryExtension'
wacomcfg.c:109: error: `pDisplay' undeclared (first use in this function)
wacomcfg.c:109: error: `INAME' undeclared (first use in this function)
wacomcfg.c:111: error: `pfnErrorHandler' undeclared (first use in this function)
wacomcfg.c:117: error: invalid application of `sizeof' to incomplete type `wacom cfg.c'
wacomcfg.c:125: error: dereferencing pointer to incomplete type
wacomcfg.c:126: error: dereferencing pointer to incomplete type
wacomcfg.c:127: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `WacomConfigListDevices':
wacomcfg.c:151: error: dereferencing pointer to incomplete type
wacomcfg.c:156: error: dereferencing pointer to incomplete type
wacomcfg.c:158: error: dereferencing pointer to incomplete type
wacomcfg.c:158: error: `IsXExtensionDevice' undeclared (first use in this functi on)
wacomcfg.c:160: error: dereferencing pointer to incomplete type
wacomcfg.c:174: error: dereferencing pointer to incomplete type
wacomcfg.c:177: error: dereferencing pointer to incomplete type
wacomcfg.c:180: error: dereferencing pointer to incomplete type
wacomcfg.c:182: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `WacomConfigOpenDevice':
wacomcfg.c:218: error: `XDevice' undeclared (first use in this function)
wacomcfg.c:218: error: `pDev' undeclared (first use in this function)
wacomcfg.c:219: error: `XDeviceInfoPtr' undeclared (first use in this function)
wacomcfg.c:219: error: syntax error before "pDevInfo"
wacomcfg.c:226: error: dereferencing pointer to incomplete type
wacomcfg.c:230: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:231: error: dereferencing pointer to incomplete type
wacomcfg.c:232: error: `pDevInfo' undeclared (first use in this function)
wacomcfg.c:232: error: dereferencing pointer to incomplete type
wacomcfg.c:242: warning: implicit declaration of function `XOpenDevice'
wacomcfg.c:242: error: dereferencing pointer to incomplete type
wacomcfg.c:251: error: invalid application of `sizeof' to incomplete type `wacom cfg.c'
wacomcfg.c:252: error: dereferencing pointer to incomplete type
wacomcfg.c:253: error: dereferencing pointer to incomplete type
wacomcfg.c:254: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `WacomConfigCloseDevice':
wacomcfg.c:264: warning: implicit declaration of function `XCloseDevice'
wacomcfg.c:264: error: dereferencing pointer to incomplete type
wacomcfg.c:264: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `WacomConfigSetRawParam':
wacomcfg.c:274: error: `XDeviceResolutionControl' undeclared (first use in this function)
wacomcfg.c:274: error: syntax error before "c"
wacomcfg.c:275: error: `cp' undeclared (first use in this function)
wacomcfg.c:275: error: `c' undeclared (first use in this function)
wacomcfg.c:276: error: `XDeviceControl' undeclared (first use in this function)
wacomcfg.c:276: error: `dc' undeclared (first use in this function)
wacomcfg.c:276: error: syntax error before ')' token
wacomcfg.c:282: error: `DEVICE_RESOLUTION' undeclared (first use in this functio n)
wacomcfg.c:291: warning: implicit declaration of function `XChangeDeviceControl'
wacomcfg.c:292: error: dereferencing pointer to incomplete type
wacomcfg.c:293: error: dereferencing pointer to incomplete type
wacomcfg.c:298: error: `BadValue' undeclared (first use in this function)
wacomcfg.c:299: error: dereferencing pointer to incomplete type
wacomcfg.c:301: error: `Success' undeclared (first use in this function)
wacomcfg.c:302: error: dereferencing pointer to incomplete type
make[3]: *** [wacomcfg.lo] 错误 1
make[3]: Leaving directory `/home/zwf/linuxwacom-0.6.7/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/zwf/linuxwacom-0.6.7/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/zwf/linuxwacom-0.6.7'
make: *** [all] 错误 2
不知哪里有问题?
回复 支持 反对

使用道具 举报

发表于 2005-4-1 12:35:58 | 显示全部楼层
不只是wacom.c,其他的几个.c文件也要复制过去,替换掉原来内核中的
需要重新编译内核,只编译模块我也没有成功
xorg.conf和XF86Config是一样改的

我的xorg.conf中关于waccom的设置:

Section "InputDevice"
  Driver        "wacom"
  Identifier    "wacom"
  Option        "Device"        "/dev/input/event3"   # USB ONLY
  Option        "Type"          "stylus"
  Option        "Mode" "Absolute"
  Option        "Threshold" "45"
  Option       "Suppress"  "6"
  Option       "ressCurve" "5,0,100,95"
  Option        "USB"           "on"                  # USB ONLY
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice    "wacom"  "SendCoreEvents"

EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-1 16:42:53 | 显示全部楼层
多谢指点!!!让我少走弯路。再次感谢!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-2 10:34:44 | 显示全部楼层
再次品尝失败,我的安装过程如下:
1)./configure --enable-wacom
2)make
3)cp wacom/src/2.6.10/wacom.ko /lib/modules/2.6.10/kernel/drivers/usb/input
4)reboot
5)cp wacom/src/2.6.10/wacom.c /usr/src/linux/drivers/usb/input/
6)cd /usr/src/linux
7)make
8)make modules_install
9)make install       #这里我的第8和第9与wacom DOC的步骤相反了。是按编译内核的做了。
10)reboot
到此都还顺利,后面该怎么继续呢?我一直没搞清楚,于是试着再 Building usbmouse.o, evdev.o, mousedev.o, and hid.o (for kernel 2.6)
11)./configure --enable-hid --enable-usbmouse --enable-mousedev --enable-evdev --with-kernel=/usr/src/linux
12)make                  #这里出错,看提示好象和hid有关,于是去掉--enable-hid
13)./configure --enable-usbmouse --enable-mousedev --enable-evdev --with-kernel=/usr/src/linux
14)make           #成功了。
15)cp wacom/src/2.6.10/usbmouse.ko /lib/modules/2.6.10/kernel/drivers/usb/usb   #怎么usb里没usb这目录,自己建了一个。
16)cp wacom/src/2.6.10/evdev.ko /lib/modules/2.6.10/kernel/drivers/input
17)cp wacom/src/2.6.10/mousedev.ko /lib/modules/2.6.10/kernel/drivers/input
18)reboot
19)cp wacom/src/2.6.10/evdev.c /usr/src/linux/drivers/input/
20)cp wacom/src/2.6.10/mousedev.c /usr/src/linux/drivers/input/
21)cp wacom/src/2.6.10/usbmouse.c /usr/src/linux/drivers/usb/input/
22)cd /usr/src/linux
然后再编译一遍内核。。。。。。
接下来该怎么做?可能少了许多步骤吧,wacom_drv.o没出现过。
还有大侠的xorg.conf能都贴出来让我参考一下吗?
给大侠添麻烦了,还请见谅。谢谢!
回复 支持 反对

使用道具 举报

发表于 2005-4-3 18:06:43 | 显示全部楼层
运行一下modprobe wacom evdev hid
把这些模块都加载
如果能成功加载,就不用再编译内核了

wacom_drv.o在下载的驱动的prebuild目录里,找个合适自己的,改名,覆盖掉原来系统里的

然后再修改xorg.conf

Option "Device" "/dev/input/event3" 要根据自己的设置,我的是event3

仔细看看文档吧,文档写的很详细了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-3 22:28:48 | 显示全部楼层
谢谢cobranail大侠的热心,主要我的E文太烂,到现在也没有完整的安装概念。linux对我来说只是应用的
平台,不可能象论坛上的高手那样从根本去了解。非常感谢你的帮助!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表