LAOS CUPS driver OSX » History » Version 9
jaap, 2012-12-02 13:12
1 | 1 | m.winkler | h1. LAOS CUPS driver installation under Mac OSX 10.7 |
---|---|---|---|
2 | |||
3 | 2 | m.winkler | {{>toc}} |
4 | |||
5 | 7 | m.winkler | This was only tested on Mac OSX 10.7 |
6 | if you use an other version of Mac OSX just give it a try |
||
7 | |||
8 | 1 | m.winkler | h2. Before you start |
9 | |||
10 | 6 | m.winkler | |
11 | 1 | m.winkler | h3. Requirements : |
12 | |||
13 | You will need Apples Xcode + Apple's Command Line Developer Tools |
||
14 | |||
15 | read http://www.macports.org/install.php, that should provide you with all you need |
||
16 | |||
17 | 6 | m.winkler | |
18 | 1 | m.winkler | h3. Environment: |
19 | |||
20 | If you have macports or homebrew installed make shure your PATH variable lists |
||
21 | |||
22 | /usr/bin /bin /usr/sbin /sbin before any other bin or sbin directories |
||
23 | |||
24 | example macports |
||
25 | |||
26 | $ echo $PATH |
||
27 | /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/user/bin/:/Users/user/bin/ |
||
28 | 3 | m.winkler | $ export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/user/bin/:/Users/user/bin/" |
29 | 1 | m.winkler | |
30 | |||
31 | if you want to check against which libraries your programm has been linked use |
||
32 | |||
33 | 6 | m.winkler | $ otool -L <notextile><</notextile>binary<notextile>></notextile> |
34 | 1 | m.winkler | |
35 | make shure that you don't link against /opt/local/lib, this is a macports library path and shouldn't be used if you want to |
||
36 | have a native OSX installation |
||
37 | |||
38 | if you run in problems with the linking use |
||
39 | |||
40 | $ LDFLAGS="-L/usr/lib" ./configure |
||
41 | |||
42 | that will force the linker to search /usr/lib first. |
||
43 | |||
44 | |||
45 | 3 | m.winkler | h2. Installation of dependencies and laos-cups |
46 | 1 | m.winkler | |
47 | 6 | m.winkler | |
48 | 1 | m.winkler | h3. ghostscript |
49 | |||
50 | read first http://www.ghostscript.com/doc/9.06/Make.htm#Mac_build |
||
51 | |||
52 | $ wget http://downloads.ghostscript.com/public/ghostscript-9.06.tar.gz |
||
53 | 3 | m.winkler | $ tar -xvzf ghostscript-9.06.tar.gz |
54 | $ cd ghostscript-9.06 |
||
55 | $ ./configure |
||
56 | $ make |
||
57 | $ sudo make install |
||
58 | 1 | m.winkler | |
59 | h3. tftp-hpa |
||
60 | |||
61 | the OSX tftp client doesn't work with cups-laos, install the extended version |
||
62 | |||
63 | $ wget http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-5.2.tar.gz |
||
64 | $ tar -xvzf tftp-hpa-5.2.tar.gz |
||
65 | 3 | m.winkler | $ cd tftp-hpa-5.2 |
66 | $ ./configure --without-ipv6 |
||
67 | $ make |
||
68 | 8 | m.winkler | |
69 | 1 | m.winkler | backup the original, and install tftp-hpa |
70 | 3 | m.winkler | |
71 | $ sudo cp /usr/bin/tftp /usr/bin/tftp.orig |
||
72 | 1 | m.winkler | $ cp tftp/tftp /usr/bin/tftp |
73 | |||
74 | |||
75 | h3. pstoedit |
||
76 | |||
77 | 9 | jaap | after ghostscript is installed pstoedit will compile |
78 | 1 | m.winkler | |
79 | $ git clone -b laos https://github.com/LaosLaser/pstoedit.git |
||
80 | 3 | m.winkler | $ cd pstoedit |
81 | $ ./configure |
||
82 | $ make |
||
83 | $ sudo make install |
||
84 | 1 | m.winkler | |
85 | 6 | m.winkler | |
86 | 1 | m.winkler | h3. cups-laos cups backend + ppd |
87 | |||
88 | $ git clone https://github.com/LaosLaser/Software |
||
89 | 3 | m.winkler | $ cd Softwate/cups-laos/src |
90 | $ make |
||
91 | $ sudo cp cups-laos /usr/libexec/cups/backend/ |
||
92 | $ sudo chmod 755 /usr/libexec/cups/backend/cups-laos |
||
93 | 1 | m.winkler | |
94 | read https://developer.apple.com/library/mac/#documentation/Printing/Conceptual/UsingPPDFiles/ppd_tasks/ppd_tasks.html section "Installing PPD Files" |
||
95 | |||
96 | $ sudo mkdir /Library/Printers/PPDs/Contents/Resources/en.lproj |
||
97 | 3 | m.winkler | $ sudo cp CUPS-LAOS.ppd /Library/Printers/PPDs/Contents/Resources/en.lproj |
98 | $ sudo chmod 755 /Library/Printers/PPDs/Contents/Resources/en.lproj/CUPS-LAOS.ppd |
||
99 | 1 | m.winkler | |
100 | |||
101 | h2. Install the laser cutter under CUPS |
||
102 | |||
103 | 3 | m.winkler | now you can add a laser cutter eader trough http://localhost:631 |
104 | 1 | m.winkler | or OSX System Preferences -> Printer -> + -> cups-laos |
105 | 3 | m.winkler | |
106 | |||
107 | 1 | m.winkler | h2. Notes |
108 | 3 | m.winkler | |
109 | 6 | m.winkler | h3. Bug: device URI can't be changed while installing laser cutter in CUPS admin panel |
110 | 3 | m.winkler | |
111 | Connection is allways "cups-laos://127.0.0.1:69/laos" and can only be changed |
||
112 | by editing /etc/cups/printers.conf |
||
113 | |||
114 | search for |
||
115 | |||
116 | DeviceURI cups-laos://127.0.0.1:69/laos |
||
117 | |||
118 | and replace 127.0.0.1 with the destination of your laser cutter |
||
119 | |||
120 | |||
121 | 4 | m.winkler | h3. "wget: command not found" |
122 | 3 | m.winkler | |
123 | if you are not using macports or homebrew but have already Apples Xcode + Apple's Command Line Developer Tools installed, |
||
124 | you can install wget with |
||
125 | |||
126 | $ curl -o wget-latest.tar.gz http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz |
||
127 | $ tar xzf wget-latest.tar.gz |
||
128 | $ cd wget-x.y.z # Verzeichnis, das im latest Archiv verpackt war, z.B. wget-1.11.4 |
||
129 | $ ./configure |
||
130 | $ make |
||
131 | $ sudo make install |
||
132 | |||
133 | otherwise just download the sources with your browser |