On Sat, Dec 03, 2011 at 07:56:14PM +0000, pete wrote:
> Hi,
> 
> I am continuing my BLFS build by attempting to add printing support.
> 
> I have just managed to build CUPS-1.5.0, jasper-1.900.1, 
> Ghostscript-9.04, Gutenprint-5.2.7 (with kernel linux-3.0.4) with only 
> minor problems.
> 
> CUPS-1.5.0 and jasper-1.900.1 built OK.
> 
> To get Ghostscript-9.04 to build, I had to split the sed after configure 
> into two separate commands to get it to work.
> 
> Gutenprint-5.2.7 needed a sed to add stdio.h to 
> src/CUPS/commandtoepson.c and commandtocanon.c.
> 
> When I logged on to localhost:631, it did not exist! However, the other 
> parts of localhost:631 (/printers etc.) all worked OK.
> So I was able to get CUPS to recognise and setup my EPSON SX415 printer.
>                       
> I was able to print successfully a jpeg file, which proved the interface 
> to the printer.
> 
> Unfortunately, I could not print any other type of file!
> I get the "Unsupported document-format" error each time.
> 
> I think I am missing a pstoraster (or gstoraster) file which should be 
> part of Ghostscript.

 My install logs (on an older system) show /etc/cups.gstoraster.convs
and /usr/lib/cupsfilter/gstoraster - the latter is the program
created as bin/gstoraster during the install or soinstall (not sure
which).

 I'm unsure what you mean by 'it did not exist!' - clearly some of
cups is present, or else you would not have been able to get cups to
find your printer.

 Trying to debug errors in the printing stack is hard, if altering
the cups logging to 'verbose' doesn't help.  I suspect you might
have already done that.

  My own build of ghostscript-9.04 is quite different from what's
in the book: apart from some fixes from, I think, ubuntu and fedora,
I build with

  rm -rf libpng jpeg lcms expat freetype zlib tiff jasper jbig2dec

  ./configure --prefix=/usr --with-system-libtiff --enable-dynamic \
   --with-drivers=ALL,x11 --disable-compile-inits \
   --without-jasper \
   --without-jbig2dec \
   --enable-cups --with-install-cups

 I decided I didn't need jasper or jbig2dec in my own builds.
It still needs a sed for system expat -

 sed -i  -e 's|=imdi|&\n\n# Use system expat library\n\nSHARE_EXPAT=1|' Makefile

 but seems to correctly determine the others, including my installed
lcms1.

 then I build with

  make && make so

  make install soinstall

 and I still do the old 'extra headers and symlinks' although I
doubt anything on my system needs them:

  install -v -m644 base/*.h /usr/include/ghostscript
  ln -v -s -f ghostscript /usr/include/ps

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to