From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 19 Jan 2010 07:14:41 -0800 Message-ID: Subject: Re: [9fans] How to add djet500' driver to gs? From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: c0a557d2-ead5-11e9-9d60-3106f5b1d025 > I'm currently trying to get my HP Deskjet 500 (/dev/lptr1data) working > in native Plan 9. Using 'lp -d hpdeskjet file' the printer works > basically; it takes in a sheet and starts printing. > But it prints only weird symbols and mishandles newlines etc.. > > I did a little research and found that there is a 'djet500' driver > (see /sys/src/cmd/gs/src/gdevdjet.c) available for gs but it is not > included in the stock gs binary according to the output of =C2=A0'gs -?'.= I > added the djet500 driver to /sys/src/cmd/gs/mkfile and run 'mk > fake-make' and then 'mk install' as described in the mkfile. > > It builds with no error messages but the output of the freshly > compiled 'gs -?' still doesn't show the new djet500 driver. > > What is the right/working procedure to add drivers to gs? It looks like the mkfile has a small bug in that src/plan9.mak, which fake-make works from, doesn't depend on mkfile itself, so mk didn't regenerate it after you changed the mkfile. You can check this theory by doing cd /sys/src/cmd/gs grep '^DEVICE_DEVS=3D' src/plan9.mak | grep djet500 I bet grep will not find anything. Assuming that's the case, you should be able to get the driver added by running cd /sys/src/cmd/gs rm src/plan9.mak # works around bug mk fake-make mk install Good luck. Russ