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