LAOS CUPS driver OSX » History » Revision 1
    Revision 1/10
      | Next »
    
    m.winkler, 2012-11-19 19:37 
    
    
LAOS CUPS driver installation under Mac OSX 10.7¶
Before you start¶
Requirements :¶
You will need Apples Xcode + Apple's Command Line Developer Tools
read http://www.macports.org/install.php, that should provide you with all you need
Environment:¶
If you have macports or homebrew installed make shure your PATH variable lists
/usr/bin /bin /usr/sbin /sbin before any other bin or sbin directories
example macports
$ echo $PATH
     /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/user/bin/:/Users/user/bin/$ export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/user/bin/:/Users/user/bin/"if you want to check against which librarys your programm has been linked use
$ otool -L <binary>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 
have a native OSX installation
if you run in problems with the linking use
$ LDFLAGS="-L/usr/lib" ./configurethat will force the linker to search /usr/lib first.
Now we can start installing¶
ghostscript¶
read first http://www.ghostscript.com/doc/9.06/Make.htm#Mac_build
$ wget http://downloads.ghostscript.com/public/ghostscript-9.06.tar.gz
     $ tar -xvzf ghostscript-9.06.tar.gz
     $ cd ghostscript-9.06
     $ ./configure
     $ make
     $ sudo make installGraphicsMagick¶
This is work in progress, pstoedit uses Magick++ so i compiled it but stripped almost everything to have a clean compile without installing 
further dependencies, need to have a look in pstoedit/src/drvlaos.cpp to see what is actually used for image manipulation
$ wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.17.tar.gz
     $ tar -xvzf GraphicsMagick-1.3.17.tar.gz
     $ cd GraphicsMagick-1.3.17/
     $ ./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 
     $ make 
     $ sudo make installpstoedit will look for Magick++-config instead of GraphicsMagick++-config
so we create a link to cover this 
$ sudo ln -s /usr/local/bin/GraphicsMagick++-config /usr/local/bin/Magick++-configtftp-hpa¶
the OSX tftp client doesn't work with cups-laos, install the extended version
$ wget http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-5.2.tar.gz
     $ tar -xvzf tftp-hpa-5.2.tar.gz
     $ cd tftp-hpa-5.2
     $ ./configure --without-ipv6backup the original, and install tftp-hpa
     $ sudo cp /usr/bin/tftp /usr/bin/tftp.orig
     $ cp tftp/tftp /usr/bin/tftppstoedit¶
after gostscript and GraphicsMagick is installed pstoedit will compile
$ git clone -b laos https://github.com/LaosLaser/pstoedit.git
     $ cd pstoedit
     $ ./configure
     $ make
     $ sudo make installcups-laos cups backend + ppd¶
$ git clone https://github.com/LaosLaser/Software
     $ cd Softwate/cups-laos/src
     $ make$ sudo cp cups-laos /usr/libexec/cups/backend/
     $ sudo chmod 755 /usr/libexec/cups/backend/cups-laosread https://developer.apple.com/library/mac/#documentation/Printing/Conceptual/UsingPPDFiles/ppd_tasks/ppd_tasks.html section "Installing PPD Files"
$ sudo mkdir /Library/Printers/PPDs/Contents/Resources/en.lproj
     $ sudo cp CUPS-LAOS.ppd /Library/Printers/PPDs/Contents/Resources/en.lproj
     $ sudo chmod 755 /Library/Printers/PPDs/Contents/Resources/en.lproj/CUPS-LAOS.ppdInstall the laser cutter under CUPS¶
now you can add a printer/laser cutter eader trough http://localhost:631 
or OSX System Preferences -> Printer -> + -> cups-laos
Bug: Connection is allways "cups-laos://127.0.0.1:69/laos" and can only be changed 
by editing the cups backend in Software/cups-laos/src/Config.cpp line 20 
than recompile, copy the new backend to /usr/libexec/cups/backend/ and reinstall
the printer/laser cutter in cups admin interface
Updated by m.winkler almost 13 years ago · 1 revisions