LAOS CUPS driver OSX » History » Version 7
m.winkler, 2012-11-20 01:25
| 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 | |||
| 60 | h3. GraphicsMagick |
||
| 61 | |||
| 62 | This is work in progress, pstoedit uses Magick++ so i compiled it but stripped almost everything to have a clean compile without installing |
||
| 63 | further dependencies, need to have a look in pstoedit/src/drvlaos.cpp to see what is actually used for image manipulation |
||
| 64 | |||
| 65 | |||
| 66 | $ wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.17.tar.gz |
||
| 67 | 3 | m.winkler | $ tar -xvzf GraphicsMagick-1.3.17.tar.gz |
| 68 | $ cd GraphicsMagick-1.3.17/ |
||
| 69 | $ ./configure --disable-openmp --without-bzlib --without-jbig --without-jpeg --without-jp2 --without-lcms --without-lcms2 --without-lzma --without-png --without-tiff --without-trio --without-ttf --without-wmf --without-xml --without-zlib --without-x --without-png |
||
| 70 | $ make |
||
| 71 | $ sudo make install |
||
| 72 | 1 | m.winkler | |
| 73 | |||
| 74 | pstoedit will look for Magick++-config instead of GraphicsMagick++-config |
||
| 75 | so we create a link to cover this |
||
| 76 | |||
| 77 | $ sudo ln -s /usr/local/bin/GraphicsMagick++-config /usr/local/bin/Magick++-config |
||
| 78 | |||
| 79 | |||
| 80 | h3. tftp-hpa |
||
| 81 | |||
| 82 | the OSX tftp client doesn't work with cups-laos, install the extended version |
||
| 83 | |||
| 84 | $ wget http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-5.2.tar.gz |
||
| 85 | 3 | m.winkler | $ tar -xvzf tftp-hpa-5.2.tar.gz |
| 86 | $ cd tftp-hpa-5.2 |
||
| 87 | $ ./configure --without-ipv6 |
||
| 88 | 1 | m.winkler | |
| 89 | 3 | m.winkler | backup the original, and install tftp-hpa |
| 90 | |||
| 91 | 1 | m.winkler | $ sudo cp /usr/bin/tftp /usr/bin/tftp.orig |
| 92 | 3 | m.winkler | $ cp tftp/tftp /usr/bin/tftp |
| 93 | 1 | m.winkler | |
| 94 | |||
| 95 | |||
| 96 | h3. pstoedit |
||
| 97 | |||
| 98 | after gostscript and GraphicsMagick is installed pstoedit will compile |
||
| 99 | |||
| 100 | $ git clone -b laos https://github.com/LaosLaser/pstoedit.git |
||
| 101 | 3 | m.winkler | $ cd pstoedit |
| 102 | $ ./configure |
||
| 103 | $ make |
||
| 104 | $ sudo make install |
||
| 105 | 1 | m.winkler | |
| 106 | 6 | m.winkler | |
| 107 | 1 | m.winkler | h3. cups-laos cups backend + ppd |
| 108 | |||
| 109 | $ git clone https://github.com/LaosLaser/Software |
||
| 110 | 3 | m.winkler | $ cd Softwate/cups-laos/src |
| 111 | $ make |
||
| 112 | $ sudo cp cups-laos /usr/libexec/cups/backend/ |
||
| 113 | $ sudo chmod 755 /usr/libexec/cups/backend/cups-laos |
||
| 114 | 1 | m.winkler | |
| 115 | read https://developer.apple.com/library/mac/#documentation/Printing/Conceptual/UsingPPDFiles/ppd_tasks/ppd_tasks.html section "Installing PPD Files" |
||
| 116 | |||
| 117 | $ sudo mkdir /Library/Printers/PPDs/Contents/Resources/en.lproj |
||
| 118 | 3 | m.winkler | $ sudo cp CUPS-LAOS.ppd /Library/Printers/PPDs/Contents/Resources/en.lproj |
| 119 | $ sudo chmod 755 /Library/Printers/PPDs/Contents/Resources/en.lproj/CUPS-LAOS.ppd |
||
| 120 | 1 | m.winkler | |
| 121 | |||
| 122 | 3 | m.winkler | h2. Install the laser cutter under CUPS |
| 123 | 1 | m.winkler | |
| 124 | |||
| 125 | 3 | m.winkler | now you can add a laser cutter eader trough http://localhost:631 |
| 126 | 1 | m.winkler | or OSX System Preferences -> Printer -> + -> cups-laos |
| 127 | 3 | m.winkler | |
| 128 | |||
| 129 | 1 | m.winkler | h2. Notes |
| 130 | 3 | m.winkler | |
| 131 | 6 | m.winkler | h3. Bug: device URI can't be changed while installing laser cutter in CUPS admin panel |
| 132 | 3 | m.winkler | |
| 133 | Connection is allways "cups-laos://127.0.0.1:69/laos" and can only be changed |
||
| 134 | by editing /etc/cups/printers.conf |
||
| 135 | |||
| 136 | search for |
||
| 137 | |||
| 138 | DeviceURI cups-laos://127.0.0.1:69/laos |
||
| 139 | |||
| 140 | and replace 127.0.0.1 with the destination of your laser cutter |
||
| 141 | |||
| 142 | |||
| 143 | 4 | m.winkler | h3. "wget: command not found" |
| 144 | 3 | m.winkler | |
| 145 | if you are not using macports or homebrew but have already Apples Xcode + Apple's Command Line Developer Tools installed, |
||
| 146 | you can install wget with |
||
| 147 | |||
| 148 | $ curl -o wget-latest.tar.gz http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz |
||
| 149 | $ tar xzf wget-latest.tar.gz |
||
| 150 | $ cd wget-x.y.z # Verzeichnis, das im latest Archiv verpackt war, z.B. wget-1.11.4 |
||
| 151 | $ ./configure |
||
| 152 | $ make |
||
| 153 | $ sudo make install |
||
| 154 | |||
| 155 | otherwise just download the sources with your browser |