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