LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tablet Driver? (http://www.linuxquestions.org/questions/linux-newbie-8/tablet-driver-848601/)

dorkytehl 12-06-2010 02:14 AM

Tablet Driver?
 
Hi. I just recently downloaded and extracted the Wacom tablet driver for Ubuntu 9.10 from here and extracted it to my home folder. So where do I put it now? When I type in the command prompt like the instructions say to do, it says 'no such file directory'. Sorry I'm pretty new to linux so I'm not familiar with the file system yet.

yooy 12-06-2010 02:26 AM

my wacom tablet bamboo worked out-of the box without installing any drivers on ubuntu 9

gd2shoe 12-06-2010 02:52 AM

First try the xserver-xorg-input-wacom package from the Ubuntu repository (you may need to adjust your /etc/X11/xorg.conf file.)

If that doesn't work, then make sure you have the 'build-essential' package installed. Extract the contents of the archive. This can be done from the command line as:
Code:

tar xjf linuxwacom-0.8.8-10.tar.bz2
presumably that will create a new folder with almost exactly the same name. 'cd' into it before following the rest of the instructions. I note they lack:
Code:

make test
sudo make install

(normal commands for most packages)

Note that installing a driver this way will cause problems when you update either X11 or the kernel. Doing so may require you to reinstall the driver. That's one of the strong reasons for using Ubuntu packages instead.

dorkytehl 12-06-2010 12:10 PM

It says 'No rule to make target test/install. Stop' whenever I put those in the command. So far all I've been able to do is change the command prompts directory to the driver folder.

gd2shoe 12-06-2010 03:59 PM

Does it have a ./configure.sh script? If so, run that first. It probes your system to see how things are set up, and builds and appropriate makefile.

Run 'make' at least. That should do the actual compiling. 'make test' (if available) makes sure that the compiled code runs just fine. 'sudo make install' is what normally installs the binaries in the appropriate places on the system. If that isn't provided, you'll need to install it by hand. Hopefully the make target for install will show up after running configure.sh (fingers crossed).

dorkytehl 12-06-2010 04:20 PM

Alright. I ran the configure script then tried to install... And got a string of errors. :/ Sorry, I'm not used to using the command terminal.

gd2shoe 12-06-2010 08:37 PM

That's quite alright. That's what this forum is for. :)

Again, make sure you have the build-essential package installed. (If you don't, install it and re-run the ./configure.sh) It contains all the stuff needed to compile and link against system shared libraries. Without it, you will get errors.

It would be helpful if you posted the output of the command. If it's real long, just post the last few lines (at least the last dozen). Use the [code] brackets to make it easier to read.

dorkytehl 12-06-2010 11:22 PM

I ran the configure file from the window in the wacom folder I downloaded. Here's what I get when I try to install from that directory with the terminal though.
Code:

Making install in src
make[1]: Entering directory `/home/dork/linuxwacom-0.8.8-10/src'
Making install in .
make[2]: Entering directory `/home/dork/linuxwacom-0.8.8-10/src'
make[3]: Entering directory `/home/dork/linuxwacom-0.8.8-10/src'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/man/man4" || /bin/mkdir -p "/usr/local/share/man/man4"
 /usr/bin/install -c -m 644 'wacom.4x.gz' '/usr/local/share/man/man4/wacom.4x.gz'
 /usr/bin/install -c -m 644 'xsetwacom.4x.gz' '/usr/local/share/man/man4/xsetwacom.4x.gz'
test -z "/usr/local/share/man/man4" || /bin/mkdir -p "/usr/local/share/man/man4"
 /usr/bin/install -c -m 644 'wacom.4x' '/usr/local/share/man/man4/wacom.4x'
test -z "/usr/local/share/man/man4" || /bin/mkdir -p "/usr/local/share/man/man4"
 /usr/bin/install -c -m 644 'wacom.4x.gz' '/usr/local/share/man/man4/wacom.4x.gz'
test -z "/usr/local/share/man/man4" || /bin/mkdir -p "/usr/local/share/man/man4"
 /usr/bin/install -c -m 644 'xsetwacom.4x' '/usr/local/share/man/man4/xsetwacom.4x'
test -z "/usr/local/share/man/man4" || /bin/mkdir -p "/usr/local/share/man/man4"
 /usr/bin/install -c -m 644 'xsetwacom.4x.gz' '/usr/local/share/man/man4/xsetwacom.4x.gz'
make[3]: Leaving directory `/home/dork/linuxwacom-0.8.8-10/src'
make[2]: Leaving directory `/home/dork/linuxwacom-0.8.8-10/src'
Making install in wacomxi
make[2]: Entering directory `/home/dork/linuxwacom-0.8.8-10/src/wacomxi'
make[3]: Entering directory `/home/dork/linuxwacom-0.8.8-10/src/wacomxi'
make[3]: Nothing to be done for `install-exec-am'.
test -z "" || /bin/mkdir -p ""
test -z "" || /bin/mkdir -p ""
test -z "" || /bin/mkdir -p ""
make[3]: Leaving directory `/home/dork/linuxwacom-0.8.8-10/src/wacomxi'
make[2]: Leaving directory `/home/dork/linuxwacom-0.8.8-10/src/wacomxi'
Making install in util
make[2]: Entering directory `/home/dork/linuxwacom-0.8.8-10/src/util'
/bin/bash ../../libtool --tag=CC  --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src/include    -Wall -pedantic  -g -O2 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include  -MT wacomcfg.lo -MD -MP -MF .deps/wacomcfg.Tpo -c -o wacomcfg.lo wacomcfg.c
 gcc -DHAVE_CONFIG_H -I. -I../../src/include -Wall -pedantic -g -O2 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -MT wacomcfg.lo -MD -MP -MF .deps/wacomcfg.Tpo -c wacomcfg.c  -fPIC -DPIC -o .libs/wacomcfg.o
In file included from wacomcfg.c:36:
wacomcfg.h:26:22: error: X11/Xlib.h: No such file or directory
wacomcfg.h:27:35: error: X11/extensions/XInput.h: No such file or directory
wacomcfg.h:28:36: error: X11/extensions/XIproto.h: No such file or directory
In file included from wacomcfg.c:36:
wacomcfg.h:58: error: expected specifier-qualifier-list before ‘Display’
wacomcfg.h:62: warning: struct has no members
wacomcfg.h:67: error: expected specifier-qualifier-list before ‘XDevice’
wacomcfg.h:75: error: expected ‘)’ before ‘*’ token
In file included from wacomcfg.c:39:
../include/Xwacom.h:23:24: error: X11/keysym.h: No such file or directory
wacomcfg.c: In function ‘CfgError’:
wacomcfg.c:72: error: ‘WACOMCONFIG’ has no member named ‘pfnError’
wacomcfg.c:73: error: ‘WACOMCONFIG’ has no member named ‘pfnError’
wacomcfg.c: In function ‘CfgGetDevs’:
wacomcfg.c:83: error: ‘WACOMCONFIG’ has no member named ‘pDevs’
wacomcfg.c:83: warning: implicit declaration of function ‘XListInputDevices’
wacomcfg.c:83: error: ‘WACOMCONFIG’ has no member named ‘pDisp’
wacomcfg.c:84: error: ‘WACOMCONFIG’ has no member named ‘nDevCnt’
wacomcfg.c:86: error: ‘WACOMCONFIG’ has no member named ‘pDevs’
wacomcfg.c: At top level:
wacomcfg.c:96: error: expected ‘)’ before ‘*’ token
wacomcfg.c: In function ‘WacomConfigTerm’:
wacomcfg.c:127: error: ‘WACOMCONFIG’ has no member named ‘pDevs’
wacomcfg.c:129: warning: implicit declaration of function ‘XFreeDeviceList’
wacomcfg.c:129: error: ‘WACOMCONFIG’ has no member named ‘pDevs’
wacomcfg.c: In function ‘WacomConfigListDevices’:
wacomcfg.c:140: error: ‘XDeviceInfo’ undeclared (first use in this function)
wacomcfg.c:140: error: (Each undeclared identifier is reported only once
wacomcfg.c:140: error: for each function it appears in.)
wacomcfg.c:140: error: ‘info’ undeclared (first use in this function)
wacomcfg.c:144: warning: ISO C90 forbids mixed declarations and code
wacomcfg.c:150: error: ‘WACOMCONFIG’ has no member named ‘pDevs’
wacomcfg.c:164: error: ‘WACOMCONFIG’ has no member named ‘nDevCnt’
wacomcfg.c:166: error: ‘WACOMCONFIG’ has no member named ‘pDevs’
wacomcfg.c:168: error: ‘IsXExtensionDevice’ undeclared (first use in this function)
wacomcfg.c:190: error: ‘WACOMCONFIG’ has no member named ‘nDevCnt’
wacomcfg.c:192: error: ‘WACOMCONFIG’ has no member named ‘pDevs’
wacomcfg.c: In function ‘WacomConfigOpenDevice’:
wacomcfg.c:300: error: ‘XDevice’ undeclared (first use in this function)
wacomcfg.c:300: error: ‘pDev’ undeclared (first use in this function)
wacomcfg.c:301: error: ‘XDeviceInfo’ undeclared (first use in this function)
wacomcfg.c:301: error: ‘pDevInfo’ undeclared (first use in this function)
wacomcfg.c:301: error: ‘info’ undeclared (first use in this function)
wacomcfg.c:301: warning: left-hand operand of comma expression has no effect
wacomcfg.c:302: warning: ISO C90 forbids mixed declarations and code
wacomcfg.c:308: error: ‘WACOMCONFIG’ has no member named ‘pDevs’
wacomcfg.c:312: error: ‘WACOMCONFIG’ has no member named ‘nDevCnt’
wacomcfg.c:314: error: ‘WACOMCONFIG’ has no member named ‘pDevs’
wacomcfg.c:338: warning: implicit declaration of function ‘XOpenDevice’
wacomcfg.c:338: error: ‘WACOMCONFIG’ has no member named ‘pDisp’
wacomcfg.c:350: error: ‘WACOMDEVICE’ has no member named ‘pDev’
wacomcfg.c: In function ‘WacomConfigCloseDevice’:
wacomcfg.c:359: error: ‘WACOMDEVICE’ has no member named ‘pDev’
wacomcfg.c:360: warning: implicit declaration of function ‘XFree’
wacomcfg.c:360: error: ‘WACOMDEVICE’ has no member named ‘pDev’
wacomcfg.c: In function ‘WacomConfigSetRawParam’:
wacomcfg.c:369: error: ‘XDeviceResolutionControl’ undeclared (first use in this function)
wacomcfg.c:369: error: expected ‘;’ before ‘c’
wacomcfg.c:370: error: ‘XDeviceControl’ undeclared (first use in this function)
wacomcfg.c:370: error: ‘dc’ undeclared (first use in this function)
wacomcfg.c:370: error: expected expression before ‘)’ token
wacomcfg.c:370: error: ‘c’ undeclared (first use in this function)
wacomcfg.c:376: error: ‘DEVICE_RESOLUTION’ undeclared (first use in this function)
wacomcfg.c:382: warning: implicit declaration of function ‘XChangeDeviceControl’
wacomcfg.c:382: error: ‘WACOMCONFIG’ has no member named ‘pDisp’
wacomcfg.c:382: error: ‘WACOMDEVICE’ has no member named ‘pDev’
wacomcfg.c:387: error: ‘BadValue’ undeclared (first use in this function)
wacomcfg.c:387: error: ‘BadRequest’ undeclared (first use in this function)
wacomcfg.c:396: error: ‘WACOMCONFIG’ has no member named ‘pDisp’
wacomcfg.c:396: error: ‘WACOMDEVICE’ has no member named ‘pDev’
wacomcfg.c:408: warning: implicit declaration of function ‘XSetDeviceMode’
wacomcfg.c:408: error: ‘WACOMCONFIG’ has no member named ‘pDisp’
wacomcfg.c:408: error: ‘WACOMDEVICE’ has no member named ‘pDev’
wacomcfg.c: In function ‘WacomConfigGetRawParam’:
wacomcfg.c:416: error: ‘XDeviceResolutionControl’ undeclared (first use in this function)
wacomcfg.c:416: error: expected ‘;’ before ‘c’
wacomcfg.c:417: error: ‘XDeviceResolutionState’ undeclared (first use in this function)
wacomcfg.c:417: error: ‘ds’ undeclared (first use in this function)
wacomcfg.c:418: warning: ISO C90 forbids mixed declarations and code
wacomcfg.c:424: error: ‘c’ undeclared (first use in this function)
wacomcfg.c:424: error: ‘DEVICE_RESOLUTION’ undeclared (first use in this function)
wacomcfg.c:430: error: ‘WACOMCONFIG’ has no member named ‘pDisp’
wacomcfg.c:430: error: ‘WACOMDEVICE’ has no member named ‘pDev’
wacomcfg.c:431: error: ‘XDeviceControl’ undeclared (first use in this function)
wacomcfg.c:431: error: expected expression before ‘)’ token
wacomcfg.c:433: error: ‘BadValue’ undeclared (first use in this function)
wacomcfg.c:433: error: ‘BadRequest’ undeclared (first use in this function)
wacomcfg.c:439: error: expected expression before ‘)’ token
wacomcfg.c:454: error: ‘WACOMCONFIG’ has no member named ‘pDisp’
wacomcfg.c:455: error: ‘WACOMDEVICE’ has no member named ‘pDev’
wacomcfg.c:456: error: expected expression before ‘)’ token
wacomcfg.c:464: error: expected expression before ‘)’ token
wacomcfg.c:476: error: ‘WACOMCONFIG’ has no member named ‘pDisp’
wacomcfg.c:476: error: ‘WACOMDEVICE’ has no member named ‘pDev’
wacomcfg.c:477: error: expected expression before ‘)’ token
wacomcfg.c:479: warning: implicit declaration of function ‘XFreeDeviceControl’
wacomcfg.c:479: error: expected expression before ‘)’ token
make[2]: *** [wacomcfg.lo] Error 1
make[2]: Leaving directory `/home/dork/linuxwacom-0.8.8-10/src/util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/dork/linuxwacom-0.8.8-10/src'
make: *** [install-recursive] Error 1


gd2shoe 12-07-2010 12:02 AM

Code:

wacomcfg.h:26:22: error: X11/Xlib.h: No such file or directory
This is the first indication I see of a problem*. It looks like the X11 header files are not installed. I'm guessing these are in the xorg-dev package. I'd install that, and try again. There may be other dev packages that you need. Check the package for README files; see if they mention the dependencies.

*(Typically during compilation, the first error is the only one that is absolutely relevant. Others tend to be a result of prior errors.)

dorkytehl 12-10-2010 12:18 PM

The readme has something on that. But when I follow the steps it says there's no such file or directory. But here's the steps in the readme.

Code:

Most end users would probably only need to update the /etc/X11/xorg.conf file
and sometime probably the Wacom X driver as well to use the rich features that
Wacom tablets offer.  The steps could be as simple as:

    $ su
    # cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
    # gedit /etc/X11/xorg.conf

then follow the step listed at http://linuxwacom.sourceforge.net/index.php/howto/x11
or "man wacom" if you don't have network access to add sections for Wacom device.


MTK358 12-10-2010 01:08 PM

For a quick introduction to the command line, see the LinuxCommand tutorial linked to in my sig.

gd2shoe 12-10-2010 07:26 PM

Hmmm. xorg.cong is where the driver is enabled once it's compiled and installed. You haven't gotten that far yet. I don't think you can continue manual installation without the xorg-dev package.

I still think you should try the xserver-xorg-input-wacom package. In case you're not aware (newbie forum), most distributions maintain software repositories - servers stuffed with software and drivers (called packages) intended to be installed on those distros. You should have a software installation tool (like synaptic) That you can reach from the graphical menus. If not, you can always try:
Code:

aptitude update
aptitude install xserver-xorg-input-wacom


dorkytehl 01-01-2011 02:49 PM

I upgraded to 10.04 since it made it easier. Got the xorg-input-wacom file installed and I installed the prebuilt driver that I downloaded without any problems and it said to restart the computer. Which I did and... It still doesn't work.

dorkytehl 01-02-2011 12:52 PM

Think I figured something out. The make command isn't working... I've checked several other forums on this and they all say to install it. I checked the package manager and it is.

Weird...


All times are GMT -5. The time now is 05:56 PM.