| 1 |
|
| 2 |
Lexmark 3200 ghostscript driver for Linux |
| 3 |
========================================= |
| 4 |
|
| 5 |
by Daniel Gordini ([email protected]) |
| 6 |
|
| 7 |
http://www.geocities.com/dgordini |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
Version 0.4.1 - Dec 19, 2000 |
| 12 |
|
| 13 |
|
| 14 |
These are the quick instructions needed to recompile a version |
| 15 |
of Ghostscript >=7.00 for Linux that supports this driver. |
| 16 |
The instruction assume you will use the "unix-gcc.mak" makefile, |
| 17 |
i.e. you are using gcc on a Unix system to compile Ghostscript. |
| 18 |
This is of course true for Linux. |
| 19 |
|
| 20 |
Instructions: |
| 21 |
|
| 22 |
1) Obtain and unpack the Ghostscript source distribution. |
| 23 |
|
| 24 |
2) Copy the driver source (gdevlx32.c) into the gsX.YZ/src |
| 25 |
directory (e.g. gs7.05/src). |
| 26 |
|
| 27 |
3) Modify the "contrib.mak" file as stated in the "Drivers.htm" |
| 28 |
documentation file, adding the following lines at the end: |
| 29 |
|
| 30 |
|
| 31 |
## --- Add everything down from here, this line excluded --- ## |
| 32 |
|
| 33 |
|
| 34 |
### ---------------- Lexmark 3200 device ----------------- ### |
| 35 |
|
| 36 |
lxm3200_=$(GLOBJ)gdevlx32.$(OBJ) |
| 37 |
|
| 38 |
$(DD)lxm3200.dev: $(lxm3200_) $(DD)page.dev |
| 39 |
$(SETPDEV) $(DD)lxm3200 $(lxm3200_) |
| 40 |
|
| 41 |
$(GLOBJ)gdevlx32.$(OBJ): $(GLSRC)gdevlx32.c $(PDEVH) $(gsparam_h) |
| 42 |
$(GLCC) $(GLO_)gdevlx32.$(OBJ) $(C_) $(GLSRC)gdevlx32.c |
| 43 |
|
| 44 |
|
| 45 |
## --- Add everything up to here, this line excluded --- ## |
| 46 |
|
| 47 |
The blanks must be made by one or more TABs, and not by spaces. |
| 48 |
This is important: if you put spaces there, the compilation will stop |
| 49 |
with a "missing separator" error. |
| 50 |
|
| 51 |
4) Modify the "unix-gcc.mak" file including the driver name shown above in |
| 52 |
the list of the drivers to compile. To do it, first look for the line |
| 53 |
which starts "DEVICE_DEVS6=". It should contain a list of driver names, |
| 54 |
such as "$(DD)bj10e.dev", "$(DD)bjc600.dev" and so on. |
| 55 |
It is very likely that the list is broken in more than one line. |
| 56 |
Please note that each line, except the last, ends with a "\" (backslash) |
| 57 |
character. This is the continuation character, and it means that the list |
| 58 |
does not end with the "newline" character but continues on the next line. |
| 59 |
If the backslash is there, it MUST ALWAYS be the last character of the line: |
| 60 |
there must be no spaces, tabs or any other character between the backslash |
| 61 |
and the newline. |
| 62 |
Add the device name "$(DD)lxm3200.dev" at the end of the last line. |
| 63 |
Be careful not to put it after a backslash. |
| 64 |
|
| 65 |
5) Recompile ghostscript with the command "make -f src/unix-gcc.mak" |
| 66 |
from the top of the unpacked ghostscript source tree. |
| 67 |
|
| 68 |
6) Install the freshly compiled version of ghostscript, using the command |
| 69 |
"make -f src/unix-gcc.mak install" |
| 70 |
|
| 71 |
7) Enjoy your Lexmark 3200! |
| 72 |
|
| 73 |
Additional notes: |
| 74 |
|
| 75 |
1) The easiest way to install this driver is by using the current |
| 76 |
ESP Ghostscript which incorporates the latest version. |
| 77 |
Just do a usual configuration, e.g. |
| 78 |
./configure --prefix=/usr/local --with-fontpath=/usr/local/share/ghostscript/fonts |
| 79 |
and then make; make install. |
| 80 |
|
| 81 |
2) Now the driver supports the Lexmark Z12 and Z31 (for additional informations |
| 82 |
see the RELEASE_NOTES). |
| 83 |
|
| 84 |
If you have problems compiling Ghostscript, you should be able to solve them |
| 85 |
by reading carefully the documentation, expecially the section "Adding a |
| 86 |
driver" in the "Drivers.htm" file. DO NOT ASK ME FOR HELP IN COMPILING |
| 87 |
GHOSTSCRIPT, unless the compilation error is generated in the driver's file |
| 88 |
itself (that is gdevlx32.c). |