Jetzt wird der Treiber gebaut. Ich logge mich dazu erneut als root ein, obwohl das hierfür noch gar nicht erforderlich ist, wechsle ins Verzeichnis mit dem Plustek-Treiber und starte dort das make-Programm ohne Parameter:
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 #Sehr schön. Keine Fehlermeldungen sind zu sehen. (Von den zahlreichen Kompileraufrufen, die nach make erfolgen habe ich einige rausgeschnitten und dort [snip] hingeschrieben, damit das Protokoll nicht zu lang wird.) Das Kompilieren hat nun also funktioniert. Wenn wir nun wieder in dieses Verzeichnis schauen, dann sehen wir dort:
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 #Man sieht: Ein neues File ist entstanden, nämlich
-rw-r--r-- 1 root root 143741 Sep 19 05:26 pt_drv.oWenn dieses File nicht da sein sollte, dann hat etwas mit dem Kompilieren nicht geklappt. Wahrscheinlich sind irgendwelche Fehlermeldungen aufgetreten. Diese genau ansehen, nachdenken ob man von den Schritten in den vorigen Abschnitten auch alle notwendigen erledigt hat und dann als nächstes ins File FAQ reinschauen, das wir oben in diesem Verzeichnis schon gesehen haben. Wenn aber alles geklappt hat, dann kann man als nächstes die Treiber installieren.