Now we're going to compile the driver. I log in again as root, although this shouldn't be necessary for the compilation itself. I change to the directory with the Plustek driver and start make there without any parameters:
Have a lot of fun... mathplanet:~ # cd /tmp/Scanner/plustek_driver/ mathplanet:/tmp/Scanner/plustek_driver # ls . BUILD ChangeLog INSTALL Makefile TEST.txt VERSION0 h .. COPYING FAQ INSTALL.GER README TODO VERSION1 src mathplanet:/tmp/Scanner/plustek_driver # la -la total 120 drwxr-xr-x 4 root root 4096 Sep 2 05:54 . drwxr-xr-x 3 root root 4096 Sep 2 05:54 .. -rw-r--r-- 1 517 200 2 Apr 22 16:06 BUILD -rw-r--r-- 1 517 200 15131 Dec 30 2000 COPYING -rw-r--r-- 1 517 200 3673 Apr 19 12:57 ChangeLog -rw-r--r-- 1 517 200 13040 Apr 19 12:57 FAQ -rw-r--r-- 1 517 200 11085 Apr 22 15:45 INSTALL -rw-r--r-- 1 517 200 12519 Apr 14 16:17 INSTALL.GER -rw-r--r-- 1 517 200 5595 Apr 22 14:43 Makefile -rw-r--r-- 1 517 200 12035 Apr 19 12:59 README -rw-r--r-- 1 517 200 3049 Apr 22 16:03 TEST.txt -rw-r--r-- 1 517 200 696 Apr 19 21:05 TODO -rw-r--r-- 1 517 200 3 Apr 9 20:04 VERSION0 -rw-r--r-- 1 517 200 1 Apr 9 20:04 VERSION1 drwxr-xr-x 2 root root 4096 Sep 2 05:54 h drwxr-xr-x 2 root root 4096 Sep 2 05:54 src mathplanet:/tmp/Scanner/plustek_driver # make gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=39 -D_PTDRV_BUILD=4 -D__KERNEL__ -I/usr/src/linux/include -I./h -I./.. -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -M ./src/*.c > .depend gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=39 -D_PTDRV_BUILD=4 -D__KERNEL__ -I/usr/src/linux/include -I./h -I./.. -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c src/dac.c -o obj/dac.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=39 -D_PTDRV_BUILD=4 -D__KERNEL__ -I/usr/src/linux/include -I./h -I./.. -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c src/detect.c -o obj/detect.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=39 -D_PTDRV_BUILD=4 -D__KERNEL__ -I/usr/src/linux/include -I./h -I./.. -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c src/genericio.c -o obj/genericio.o [snip] gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=39 -D_PTDRV_BUILD=4 -D__KERNEL__ -I/usr/src/linux/include -I./h -I./.. -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c src/p12.c -o obj/p12.o gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -D_PTDRV_V1=0 -D_PTDRV_V0=39 -D_PTDRV_BUILD=4 -D__KERNEL__ -I/usr/src/linux/include -I./h -I./.. -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c src/p12ccd.c -o obj/p12ccd.o ld -r obj/dac.o obj/detect.o obj/genericio.o obj/image.o obj/map.o obj/misc.o obj/models.o obj/io.o obj/procfs.o obj/motor.o obj/p9636.o obj/ptdrv.o obj/scale.o obj/tpa.o obj/p48xx.o obj/p12.o obj/p12ccd.o -o pt_drv.o mathplanet:/tmp/Scanner/plustek_driver #That was fine. No error messages to be seen anywhere. (I snipped some of the many compiler messages out in the middle to make the output shorter.) The compilation succeeded. If we look into the same directory again now, we find:
mathplanet:/tmp/Scanner/plustek_driver # ls -la total 612 drwxr-xr-x 6 root root 4096 Sep 19 05:26 . drwxr-xr-x 3 root root 4096 Sep 2 05:54 .. -rw-r--r-- 1 root root 335888 Sep 19 05:24 .depend -rw-r--r-- 1 517 200 2 Apr 22 16:06 BUILD -rw-r--r-- 1 517 200 15131 Dec 30 2000 COPYING -rw-r--r-- 1 517 200 3673 Apr 19 12:57 ChangeLog -rw-r--r-- 1 517 200 13040 Apr 19 12:57 FAQ -rw-r--r-- 1 517 200 11085 Apr 22 15:45 INSTALL -rw-r--r-- 1 517 200 12519 Apr 14 16:17 INSTALL.GER -rw-r--r-- 1 517 200 5595 Apr 22 14:43 Makefile -rw-r--r-- 1 517 200 12035 Apr 19 12:59 README -rw-r--r-- 1 517 200 3049 Apr 22 16:03 TEST.txt -rw-r--r-- 1 517 200 696 Apr 19 21:05 TODO -rw-r--r-- 1 517 200 3 Apr 9 20:04 VERSION0 -rw-r--r-- 1 517 200 1 Apr 9 20:04 VERSION1 drwxr-xr-x 2 root root 4096 Sep 19 05:24 doc drwxr-xr-x 2 root root 4096 Sep 2 05:54 h drwxr-xr-x 2 root root 4096 Sep 19 05:26 obj -rw-r--r-- 1 root root 143741 Sep 19 05:26 pt_drv.o drwxr-xr-x 2 root root 4096 Sep 2 05:54 src mathplanet:/tmp/Scanner/plustek_driver #You see: A new file has been created. It is:
-rw-r--r-- 1 root root 143741 Sep 19 05:26 pt_drv.oIf that file isn't there, something went wrong. Probably there was an error message somewhere. Take a good look at it and check again if you have really done all the preceeding steps in the preceeding sections correctly. In such a case, the next thing to do is consulting the FAQ file in this very directory (see above). There should be further troubleshooting information. If everything went fine, we can now proceed to installing the driver.