lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generating EPS with lilypond


From: Trevor Bača
Subject: Re: Generating EPS with lilypond
Date: Mon, 28 Aug 2006 08:01:28 -0500

OK. Here's the output with --verbose. The calling shell script is now

%%% SHELL SCRIPT START %%%

#! /bin/sh

export LILYPOND_DESTDIR=`pwd`
export 
GS_LIB="/Applications/LilyPond.app/Contents/Resources/share/ghostscript/8.50/lib"
date
python "/Applications/LilyPond.app/Contents/Resources/lilycall.py"
"/Applications/LilyPond.app/" "--verbose" "--backend=eps" $1
echo 'debug'

%%% END SHELL SCRIPT %%%



Lots of stuff about fonts ...

%%% VERBOSE OUTPUT START %%%

Mon Aug 28 07:59:32 CDT 2006
GNU LilyPond 2.9.16
warning: Relocation: from
PATH=/Applications/LilyPond.app//Contents/Resources/bin/:/sw/bin:/sw/sbin:/usr/local/bin:/Applications/LilyPond.app/Contents/Resources/bin/:/Applications/LilyPond.app/Contents/Resources/share/ghostscript/8.50/lib/:/bin:/sbin:/usr/bin:/usr/sbin
argv0=lilypond
warning: Relocation: compile prefix=/usr/share/lilypond/2.9.16, new
prefix=/Applications/LilyPond.app/Contents/Resources
PATH=/Applications/LilyPond.app/Contents/Resources/bin (prepend)
Setting PATH to
/Applications/LilyPond.app/Contents/Resources/bin:/Applications/LilyPond.app//Contents/Resources/bin/:/sw/bin:/sw/sbin:/usr/local/bin:/Applications/LilyPond.app/Contents/Resources/bin/:/Applications/LilyPond.app/Contents/Resources/share/ghostscript/8.50/lib/:/bin:/sbin:/usr/bin:/usr/sbin
warning: Relocation:
framework_prefix=/Applications/LilyPond.app/Contents/Resources/bin/..
Setting INSTALLER_PREFIX to /Applications/LilyPond.app/Contents/Resources/bin/..
Relocation file
/Applications/LilyPond.app/Contents/Resources/bin/../etc/relocate//fontconfig.reloc
Setting FONTCONFIG_FILE to
/Applications/LilyPond.app/Contents/Resources/bin/../etc/fonts/fonts.conf
Setting FONTCONFIG_PATH to
/Applications/LilyPond.app/Contents/Resources/bin/../etc/fonts
Relocation file
/Applications/LilyPond.app/Contents/Resources/bin/../etc/relocate//gs.reloc
warning: no such directory:
/Applications/LilyPond.app/Contents/Resources/bin/../share/ghostscript/8.50/fonts
for GS_FONTPATH
warning: no such directory:
/Applications/LilyPond.app/Contents/Resources/bin/../share/gs/fonts
for GS_FONTPATH
warning: no such directory:
/Applications/LilyPond.app/Contents/Resources/bin/../share/ghostscript/8.50/Resource
for GS_LIB
GS_LIB=/Applications/LilyPond.app/Contents/Resources/bin/../share/ghostscript/8.50/lib
(prepend)
Setting GS_LIB to
/Applications/LilyPond.app/Contents/Resources/bin/../share/ghostscript/8.50/lib:/Applications/LilyPond.app//Contents/Resources/share/ghostscript/8.15/lib/
Relocation file
/Applications/LilyPond.app/Contents/Resources/bin/../etc/relocate//guile.reloc
GUILE_LOAD_PATH=/Applications/LilyPond.app/Contents/Resources/bin/../share/guile/1.8
(prepend)
Setting GUILE_LOAD_PATH to
/Applications/LilyPond.app/Contents/Resources/bin/../share/guile/1.8:/Applications/LilyPond.app//Contents/Resources/share/guile/1.6
Relocation file
/Applications/LilyPond.app/Contents/Resources/bin/../etc/relocate//libtool.reloc
DYLD_LIBRARY_PATH=/Applications/LilyPond.app/Contents/Resources/bin/../lib
(prepend)
Setting DYLD_LIBRARY_PATH to
/Applications/LilyPond.app/Contents/Resources/bin/../lib:/Applications/LilyPond.app//Contents/Resources/lib:
Relocation file
/Applications/LilyPond.app/Contents/Resources/bin/../etc/relocate//pango.reloc
Setting PANGO_SO_EXTENSION to .so
PATH=/Applications/LilyPond.app/Contents/Resources/bin/../bin (prepend)
Setting PATH to
/Applications/LilyPond.app/Contents/Resources/bin/../bin:/Applications/LilyPond.app/Contents/Resources/bin:/Applications/LilyPond.app//Contents/Resources/bin/:/sw/bin:/sw/sbin:/usr/local/bin:/Applications/LilyPond.app/Contents/Resources/bin/:/Applications/LilyPond.app/Contents/Resources/share/ghostscript/8.50/lib/:/bin:/sbin:/usr/bin:/usr/sbin
Setting GUILE_MIN_YIELD_1 to 70
Setting GUILE_MIN_YIELD_2 to 70
Setting GUILE_MIN_YIELD_MALLOC to 70

LILYPOND_DATADIR="/usr/share/lilypond/2.9.16"
LILYPONDPREFIX="/Applications/LilyPond.app//Contents/Resources/share/lilypond/current"
LOCALEDIR="/usr/share/locale"

Effective prefix:
"/Applications/LilyPond.app//Contents/Resources/share/lilypond/current"
FONTCONFIG_FILE="/Applications/LilyPond.app/Contents/Resources/bin/../etc/fonts/fonts.conf"
FONTCONFIG_PATH="/Applications/LilyPond.app/Contents/Resources/bin/../etc/fonts"
GS_LIB="/Applications/LilyPond.app/Contents/Resources/bin/../share/ghostscript/8.50/lib:/Applications/LilyPond.app//Contents/Resources/share/ghostscript/8.15/lib/"
GUILE_LOAD_PATH="/Applications/LilyPond.app/Contents/Resources/bin/../share/guile/1.8:/Applications/LilyPond.app//Contents/Resources/share/guile/1.6"
PANGO_RC_FILE="/Applications/LilyPond.app//Contents/Resources/etc/pango/pangorc"
PANGO_PREFIX="/Applications/LilyPond.app//Contents/Resources"
PATH="/Applications/LilyPond.app/Contents/Resources/bin/../bin:/Applications/LilyPond.app/Contents/Resources/bin:/Applications/LilyPond.app//Contents/Resources/bin/:/sw/bin:/sw/sbin:/usr/local/bin:/Applications/LilyPond.app/Contents/Resources/bin/:/Applications/LilyPond.app/Contents/Resources/share/ghostscript/8.50/lib/:/bin:/sbin:/usr/bin:/usr/sbin"
[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/lily.scm]
[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/lily-library.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/file-cache.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/define-event-classes.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/define-music-types.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/output-lib.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/c++.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/chord-ignatzek-names.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/chord-entry.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/chord-generic-names.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/stencil.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/markup.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/music-functions.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/part-combiner.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/autochange.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/define-music-properties.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/auto-beam.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/chord-name.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/parser-ly-from-scheme.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/ly-syntax-constructors.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/define-context-properties.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/translation-functions.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/script.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/midi.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/layout-beam.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/parser-clef.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/layout-slur.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/font.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/encoding.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/fret-diagrams.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/define-markup-commands.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/define-grob-properties.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/define-grobs.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/define-grob-interfaces.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/define-stencil-commands.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/titling.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/paper.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/backend-library.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/x11-color.scm][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/scm/safe-lily.scm]
Initializing FontConfig...
adding font directory:
/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/otf/
adding font directory:
/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/type1/Building
font database.
Processing `300.ly'
Parsing...[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/init.ly[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/declarations-init.ly[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/music-functions-init.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/nederlands.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/drumpitch-init.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/chord-modifiers-init.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/script-init.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/scale-definitions-init.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/grace-init.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/midi-init.ly[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/performer-init.ly]][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/paper-defaults.ly[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/titling-init.ly]][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/engraver-init.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/dynamic-scripts-init.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/spanners-init.ly][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ly/property-init.ly]][300.ly]
Interpreting music...
[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/otf/emmentaler-20.otf]
elapsed time: 0.02 seconds
Element count 25 (spanners 7)
Preprocessing graphical objects...
Grob count 
47[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/otf/emmentaler-11.otf][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/otf/emmentaler-13.otf][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/otf/emmentaler-14.otf][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/otf/emmentaler-16.otf][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/otf/emmentaler-18.otf][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/fonts/otf/emmentaler-23.otf]
Calculating line breaks... [2]
Optimal demerits: 103.495995
Drawing systems...
Element count 36.[0]
Calculating page breaks...[century_schoolbook_l_3.865234375]
Writing 300-systems.tex...
Writing 300-systems.texi...
Layout output to
`300-1.eps'...[/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ps/music-drawing-routines.ps][/Applications/LilyPond.app//Contents/Resources/share/lilypond/current/ps/lilyponddefs.ps]
Converting to `300-1.pdf'...
Invoking `gs   -dSAFER   -dEPSCrop  -dCompatibilityLevel=1.4
-dNOPAUSE -dBATCH -r1200  -sDEVICE=pdfwrite -sOutputFile="300-1.pdf"
-c .setpdfwrite -f "300-1.eps"'...GPL Ghostscript 8.50 (2005-12-31)
Copyright (C) 2005 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
WARNING: /Unicode /Decoding resource is not accessible but it is
useful for generating ToUnicode CMap.
Can't find (or can't open) font file c059013l.pfb.
Can't find (or can't open) font file
/Applications/LilyPond.app/Contents/Resources/share/ghostscript/8.50/Resource/Font/CenturySchL-Roma.
Can't find (or can't open) font file CenturySchL-Roma.
Querying operating system for font files...
Didn't find this font on the system!
Substituting font NewCenturySchlbk-Roman for CenturySchL-Roma.
Unable to substitute for font.
Error: /invalidfont in findfont
Operand stack:
  CenturySchL-Roma   2.19953   CenturySchL-Roma   Font
CenturySchL-Roma   407279   CenturySchL-Roma   --nostringval--
CenturySchL-Roma   NewCenturySchlbk-Roman
Execution stack:
  %interp_exit   .runexec2   --nostringval--   --nostringval--
--nostringval--   2   %stopped_push   --nostringval--
--nostringval--   --nostringval--   false   1   %stopped_push   1   3
%oparray_pop   1   3   %oparray_pop   --nostringval--   1   3
%oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--
--nostringval--   --nostringval--   2   %stopped_push
--nostringval--   2   3   %oparray_pop   --nostringval--   3   3
%oparray_pop   4   3   %oparray_pop   --nostringval--
--nostringval--   --nostringval--   --nostringval--   --nostringval--
false   1   %stopped_push   7   4   %oparray_pop   --nostringval--
--nostringval--   --nostringval--   --nostringval--   --nostringval--
%array_continue   --nostringval--   --nostringval--   1   -1   1
--nostringval--   %for_neg_int_continue
Dictionary stack:
  --dict:1122/1686(ro)(G)--   --dict:0/20(G)--   --dict:107/200(L)--
--dict:17/17(ro)(G)--   --dict:1122/1686(ro)(G)--
Current allocation mode is local
Last OS error: 2
Current file position is 5895
GPL Ghostscript 8.50: Unrecoverable error, exit code 1

`gs   -dSAFER   -dEPSCrop  -dCompatibilityLevel=1.4  -dNOPAUSE -dBATCH
-r1200  -sDEVICE=pdfwrite -sOutputFile="300-1.pdf" -c .setpdfwrite -f
"300-1.eps"' failed (256)
error: failed files: "300.ly"
debug

%%% END VERBOSE OUTPUT %%%








On 8/28/06, Mats Bengtsson <address@hidden> wrote:
Try to add --verbose to the call to LilyPond, to get a more informative
error message. Clearly, Ghostscript fails, but
it's hard to tell why from the current printouts.

   /Mats

Quoting Trevor Bača <address@hidden>:

> I'm having trouble invoking the eps backend in the first place.
>
> 2.9.16 under OS X Intel with this helper script to call lily.
>
> %%% HELPER SCRIPT %%%
>
> #! /bin/sh
>
> export LILYPOND_DESTDIR=`pwd`
> export
> 
GS_LIB="/Applications/LilyPond.app/Contents/Resources/share/ghostscript/8.50/lib"
> date
> python "/Applications/LilyPond.app/Contents/Resources/lilycall.py"
> "/Applications/LilyPond.app/" "--backend=eps" $1
> echo 'debug'
>
> %%% END HELPER SCRIPT %%%
>
>
> Here's the test file.
>
> %%% TEST FILE%%%
>
> \version "2.9.16"
>
> \new Staff {
>   c'4
> }
>
> %%% END TEST FILE %%%
>
>
>
> And here's the result of running the helper script against the test file.
>
> %%% OUTPUT %%%
>
> Sun Aug 27 23:44:35 CDT 2006
> GNU LilyPond 2.9.16
> Processing `300.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...
> Calculating line breaks... [2]
> Drawing systems...
> Calculating page breaks...
> Writing 300-systems.tex...
> Writing 300-systems.texi...
> Layout output to `300-1.eps'...
> Converting to `300-1.pdf'...
> `gs -q  -dSAFER   -dEPSCrop  -dCompatibilityLevel=1.4  -dNOPAUSE
> -dBATCH -r1200  -sDEVICE=pdfwrite -sOutputFile="300-1.pdf" -c
> .setpdfwrite -f "300-1.eps"' failed (256)
> error: failed files: "300.ly"
> debug
>
> %%% END OUTPUT %%%
>
>
> I'm missing something obvious since nobody else is having trouble
> invoking the eps backend in the first place ... any clues? (I haven't
> yet worked in the -dno-gs-font-load option because I'm wanting to get
> the eps stuff working first ...)
>
>
>
> --
> Trevor Bača
> address@hidden
> ... like the dew, or like lightning ...
>






--
Trevor Bača
address@hidden
... like the dew, or like lightning ...

Click here to call me:
http://try.click-and-connect.com/cnc/4/1753206736/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]