友基数位板安装错误,请大家指导指导,谢谢!
Tofloor
poster avatar
lei232461433
deepin
2017-06-19 04:17
Author
最近尝试使用DEEPIN系统,在安装友基数位板的时候出现错误,对linux不熟,请大家指导一下,谢谢!
附错误内容:

wizardpen.h:134:1: warning: parameter names (without types) in function declaration
static void CloseProc (LocalDevicePtr);
^~~~~~
wizardpen.h:138:54: error: unknown type name ‘IDevPtr’
static InputInfoPtr WizardPenPreInit(InputDriverPtr, IDevPtr , int);
                                                      ^~~~~~~
wizardpen.h:141:5: warning: parameter names (without types) in function declaration
     static void USBReadInput (LocalDevicePtr);
     ^~~~~~
wizardpen.h:142:5: warning: parameter names (without types) in function declaration
     static Bool USBQueryHardware (LocalDevicePtr);
     ^~~~~~
wizardpen.h:144:55: error: expected ‘)’ before ‘int’
     static Bool WizardPenAutoDevProbe(LocalDevicePtr, int);
                                                       ^~~
wizardpen.c:98:5: error: ‘WizardPenPreInit’ undeclared here (not in a function)
     WizardPenPreInit,
     ^~~~~~~~~~~~~~~~
wizardpen.c:200:23: error: unknown type name ‘LocalDevicePtr’
WizardPenAutoDevProbe(LocalDevicePtr local, int verb)
                       ^~~~~~~~~~~~~~
wizardpen.c:301:38: error: unknown type name ‘IDevPtr’
WizardPenPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
                                      ^~~~~~~
wizardpen.c: In function ‘DeviceOn’:
wizardpen.c:602:5: error: unknown type name ‘LocalDevicePtr’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
     ^~~~~~~~~~~~~~
wizardpen.c:602:29: error: ‘LocalDevicePtr’ undeclared (first use in this function)
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                             ^~~~~~~~~~~~~~
wizardpen.c:602:29: note: each undeclared identifier is reported only once for each function it appears in
wizardpen.c:602:45: error: expected ‘,’ or ‘;’ before ‘dev’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                                             ^~~
wizardpen.c:603:60: error: invalid type argument of ‘->’ (have ‘int’)
     WizardPenPrivatePtr priv = (WizardPenPrivatePtr) (local->private);
                                                            ^~
wizardpen.c:605:51: error: invalid type argument of ‘->’ (have ‘int’)
     xf86MsgVerb(X_INFO, 4, "%s Device On\n", local->name);
                                                   ^~
wizardpen.c:607:10: error: invalid type argument of ‘->’ (have ‘int’)
     local->fd = xf86OpenSerial(local->options);
          ^~
wizardpen.c:607:37: error: invalid type argument of ‘->’ (have ‘int’)
     local->fd = xf86OpenSerial(local->options);
                                     ^~
wizardpen.c:608:14: error: invalid type argument of ‘->’ (have ‘int’)
     if (local->fd == -1)
              ^~
wizardpen.c:610:74: error: invalid type argument of ‘->’ (have ‘int’)
         xf86Msg(X_WARNING, "%s: cannot open input device %s: %s\n", local->name, xf86FindOptionValue(local->options, "Device"), strerror(errno));
                                                                          ^~
wizardpen.c:610:107: error: invalid type argument of ‘->’ (have ‘int’)
         xf86Msg(X_WARNING, "%s: cannot open input device %s: %s\n", local->name, xf86FindOptionValue(local->options, "Device"), strerror(errno));
                                                                                                           ^~
wizardpen.c:613:45: warning: implicit declaration of function ‘WizardPenAutoDevProbe’ [-Wimplicit-function-declaration]
         if ((priv->flags & AUTODEV_FLAG) && WizardPenAutoDevProbe(local, 4))
                                             ^~~~~~~~~~~~~~~~~~~~~
wizardpen.c:614:18: error: invalid type argument of ‘->’ (have ‘int’)
             local->fd = xf86OpenSerial(local->options);
                  ^~
wizardpen.c:614:45: error: invalid type argument of ‘->’ (have ‘int’)
             local->fd = xf86OpenSerial(local->options);
                                             ^~
wizardpen.c:615:18: error: invalid type argument of ‘->’ (have ‘int’)
         if (local->fd == -1)
                  ^~
wizardpen.c:623:37: error: invalid type argument of ‘->’ (have ‘int’)
         priv->buffer = XisbNew(local->fd, 200);
                                     ^~
wizardpen.c:626:34: error: invalid type argument of ‘->’ (have ‘int’)
             xf86CloseSerial(local->fd);
                                  ^~
wizardpen.c:627:18: error: invalid type argument of ‘->’ (have ‘int’)
             local->fd = -1;
                  ^~
wizardpen.c:636:25: error: invalid type argument of ‘->’ (have ‘int’)
     xf86FlushInput(local->fd);
                         ^~
wizardpen.c:637:27: warning: passing argument 1 of ‘xf86AddEnabledDevice’ makes pointer from integer without a cast [-Wint-conversion]
     xf86AddEnabledDevice (local);


Reply Favorite View the author
All Replies
avatar
lei232461433
deepin
2017-06-19 04:18
#1
n file included from wizardpen.c:58:0:
/usr/include/xorg/xf86Xinput.h:172:23: note: expected ‘InputInfoPtr {aka struct _InputInfoRec *}’ but argument is of type ‘int’
extern _X_EXPORT void xf86AddEnabledDevice(InputInfoPtr pInfo);
                       ^~~~~~~~~~~~~~~~~~~~
wizardpen.c: In function ‘DeviceOff’:
wizardpen.c:645:5: error: unknown type name ‘LocalDevicePtr’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
     ^~~~~~~~~~~~~~
wizardpen.c:645:29: error: ‘LocalDevicePtr’ undeclared (first use in this function)
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                             ^~~~~~~~~~~~~~
wizardpen.c:645:45: error: expected ‘,’ or ‘;’ before ‘dev’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                                             ^~~
wizardpen.c:646:60: error: invalid type argument of ‘->’ (have ‘int’)
     WizardPenPrivatePtr priv = (WizardPenPrivatePtr) (local->private);
                                                            ^~
wizardpen.c:648:52: error: invalid type argument of ‘->’ (have ‘int’)
     xf86MsgVerb(X_INFO, 4, "%s Device Off\n", local->name);
                                                    ^~
wizardpen.c:650:14: error: invalid type argument of ‘->’ (have ‘int’)
     if (local->fd != -1)
              ^~
wizardpen.c:652:9: warning: implicit declaration of function ‘RemoveEnabledDevice’ [-Wimplicit-function-declaration]
         RemoveEnabledDevice (local->fd);
         ^~~~~~~~~~~~~~~~~~~
wizardpen.c:652:35: error: invalid type argument of ‘->’ (have ‘int’)
         RemoveEnabledDevice (local->fd);
                                   ^~
wizardpen.c:658:30: error: invalid type argument of ‘->’ (have ‘int’)
         xf86CloseSerial(local->fd);
                              ^~
wizardpen.c:662:30: warning: passing argument 1 of ‘xf86RemoveEnabledDevice’ makes pointer from integer without a cast [-Wint-conversion]
     xf86RemoveEnabledDevice (local);
                              ^~~~~
In file included from wizardpen.c:58:0:
/usr/include/xorg/xf86Xinput.h:173:23: note: expected ‘InputInfoPtr {aka struct _InputInfoRec *}’ but argument is of type ‘int’
extern _X_EXPORT void xf86RemoveEnabledDevice(InputInfoPtr pInfo);
                       ^~~~~~~~~~~~~~~~~~~~~~~
wizardpen.c: In function ‘DeviceClose’:
wizardpen.c:670:5: error: unknown type name ‘LocalDevicePtr’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
     ^~~~~~~~~~~~~~
wizardpen.c:670:29: error: ‘LocalDevicePtr’ undeclared (first use in this function)
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                             ^~~~~~~~~~~~~~
wizardpen.c:670:45: error: expected ‘,’ or ‘;’ before ‘dev’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                                             ^~~
wizardpen.c:672:54: error: invalid type argument of ‘->’ (have ‘int’)
     xf86MsgVerb(X_INFO, 4, "%s Device Close\n", local->name);
                                                      ^~
wizardpen.c: In function ‘ControlProc’:
wizardpen.c:680:5: error: unknown type name ‘LocalDevicePtr’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
     ^~~~~~~~~~~~~~
wizardpen.c:680:29: error: ‘LocalDevicePtr’ undeclared (first use in this function)
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                             ^~~~~~~~~~~~~~
wizardpen.c:680:45: error: expected ‘,’ or ‘;’ before ‘dev’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                                             ^~~
wizardpen.c:682:54: error: invalid type argument of ‘->’ (have ‘int’)
     xf86MsgVerb(X_INFO, 4, "%s Control Proc\n", local->name);
                                                      ^~
wizardpen.c: In function ‘DeviceInit’:
wizardpen.c:689:5: error: unknown type name ‘LocalDevicePtr’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
     ^~~~~~~~~~~~~~
wizardpen.c:689:29: error: ‘LocalDevicePtr’ undeclared (first use in this function)
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                             ^~~~~~~~~~~~~~
wizardpen.c:689:45: error: expected ‘,’ or ‘;’ before ‘dev’
     LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
                                             ^~~
wizardpen.c:690:60: error: invalid type argument of ‘->’ (have ‘int’)
     WizardPenPrivatePtr priv = (WizardPenPrivatePtr) (local->private);
                                                            ^~
wizardpen.c:695:46: error: invalid type argument of ‘->’ (have ‘int’)
     xf86MsgVerb(X_INFO, 4, "%s Init\n", local->name);
                                              ^~
wizardpen.c:711:83: error: invalid type argument of ‘->’ (have ‘int’)
         xf86Msg(X_ERROR, "%s: unable to allocate ButtonClassDeviceStruct\n", local->name);
                                                                                   ^~
wizardpen.c:717:82: error: invalid type argument of ‘->’ (have ‘int’)
         xf86Msg(X_ERROR, "%s: unable to allocate FocusClassDeviceStruct\n", local->name);
                                                                                  ^~
wizardpen.c:722:68: error: invalid type argument of ‘->’ (have ‘int’)
         xf86Msg(X_ERROR, "%s: unable to init ptr feedback\n", local->name);
                                                                    ^~
wizardpen.c:735:14: error: invalid type argument of ‘->’ (have ‘int’)
         local->history_size,
              ^~
wizardpen.c:738:85: error: invalid type argument of ‘->’ (have ‘int’)
         xf86Msg(X_ERROR, "%s: unable to allocate ValuatorClassDeviceStruct\n", local->name);
                                                                                     ^~
wizardpen.c:758:9: error: too few arguments to function ‘InitValuatorAxisStruct’
         InitValuatorAxisStruct(dev,
         ^~~~~~~~~~~~~~~~~~~~~~
In file included from wizardpen.c:59:0:
/usr/include/xorg/exevents.h:58:23: note: declared here
extern _X_EXPORT Bool InitValuatorAxisStruct(DeviceIntPtr /* dev */ ,
                       ^~~~~~~~~~~~~~~~~~~~~~
wizardpen.c:768:9: error: too few arguments to function ‘InitValuatorAxisStruct’
         InitValuatorAxisStruct(dev,
         ^~~~~~~~~~~~~~~~~~~~~~
In file included from wizardpen.c:59:0:
/usr/include/xorg/exevents.h:58:23: note: declared here
extern _X_EXPORT Bool InitValuatorAxisStruct(DeviceIntPtr /* dev */ ,
                       ^~~~~~~~~~~~~~~~~~~~~~
wizardpen.c:778:9: error: too few arguments to function ‘InitValuatorAxisStruct’
         InitValuatorAxisStruct(dev,
         ^~~~~~~~~~~~~~~~~~~~~~
In file included from wizardpen.c:59:0:
/usr/include/xorg/exevents.h:58:23: note: declared here
extern _X_EXPORT Bool InitValuatorAxisStruct(DeviceIntPtr /* dev */ ,
                       ^~~~~~~~~~~~~~~~~~~~~~
wizardpen.c:799:86: error: invalid type argument of ‘->’ (have ‘int’)
         xf86Msg(X_ERROR, "%s: unable to allocate ProximityClassDeviceStruct\n", local->name);
                                                                                      ^~
wizardpen.c:803:32: warning: passing argument 1 of ‘xf86MotionHistoryAllocate’ makes pointer from integer without a cast [-Wint-conversion]
     xf86MotionHistoryAllocate (local);
                                ^~~~~
In file included from wizardpen.c:58:0:
/usr/include/xorg/xf86Xinput.h:189:23: note: expected ‘InputInfoPtr {aka struct _InputInfoRec *}’ but argument is of type ‘int’
extern _X_EXPORT void xf86MotionHistoryAllocate(InputInfoPtr pInfo);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
wizardpen.c:821:48: error: invalid type argument of ‘->’ (have ‘int’)
     xf86Msg(X_INFO, "%s Increment: %d\n", local->name, priv->increment);
                                                ^~
wizardpen.c: At top level:
wizardpen.c:829:15: error: unknown type name ‘LocalDevicePtr’
USBReadInput (LocalDevicePtr local)
               ^~~~~~~~~~~~~~
wizardpen.c:1234:12: error: unknown type name ‘LocalDevicePtr’
CloseProc (LocalDevicePtr local)
            ^~~~~~~~~~~~~~
In file included from wizardpen.c:77:0:
wizardpen.c: In function ‘QueryHardware’:
wizardpen.h:72:23: warning: implicit declaration of function ‘xf86usleep’ [-Wimplicit-function-declaration]
#define milisleep(ms) xf86usleep (ms * 1000)
                       ^
wizardpen.c:1248:5: note: in expansion of macro ‘milisleep’
     milisleep (250);
     ^~~~~~~~~
wizardpen.c: At top level:
wizardpen.c:1284:19: error: unknown type name ‘LocalDevicePtr’
USBQueryHardware (LocalDevicePtr local)
                   ^~~~~~~~~~~~~~
Makefile:452: recipe for target 'wizardpen.lo' failed
make[2]: *** [wizardpen.lo] Error 1
make[2]: Leaving directory '/home/lei/Downloads/xorg-input-wizardpen-0.8.0/src'
Makefile:575: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/lei/Downloads/xorg-input-wizardpen-0.8.0'
Makefile:406: recipe for target 'all' failed
make: *** [all] Error 2
Reply View the author
avatar
gplfeng
deepin
2017-09-07 22:53
#2
lsusb
xinput
ls /dev/input/by-id/
输入以上命令,然后将输出的内容发出来
Reply View the author