Dave Trowbridge | 30 Nov 05:48

Can't generate PDF file in Windows

When I select "Generate PDF" in the right-click menu in Windows explorer, no PDF
file is generated, and the log file reads as follows:

# -*-compilation-*-
Changing working directory to `C:/Program Files/LilyPond/usr/bin'
Processing `C:/Program Files/LilyPond/usr/bin/bwv1007_prelude_clarinet.ly'
Parsing...

This is a file I converted from an earlier Lilypond version using convert-ly.
Johan Vromans | 30 Nov 11:59
Favicon

Re: Can't generate PDF file in Windows

Dave Trowbridge <dave <at> davetrowbridge.com> writes:

> When I select "Generate PDF" in the right-click menu in Windows explorer, no PDF
> file is generated, and the log file reads as follows:
> 
> # -*-compilation-*-
> Changing working directory to `C:/Program Files/LilyPond/usr/bin'
> Processing `C:/Program Files/LilyPond/usr/bin/bwv1007_prelude_clarinet.ly'
> Parsing...
> 
> This is a file I converted from an earlier Lilypond version using convert-ly.

If you used a \score { ... }, did you include a \layout { ...} as
well? Otherwise LilyPond just won't produce anything.

-- Johan
Mats Bengtsson | 30 Nov 23:38
Favicon

Re: Can't generate PDF file in Windows

Quoting Johan Vromans <jvromans <at> squirrel.nl>:

>
> If you used a \score { ... }, did you include a \layout { ...} as
> well? Otherwise LilyPond just won't produce anything.

Not exactly true! You have to include a \layout block if you have a
\midi block, but not otherwise.

   /Mats
Johan Vromans | 1 Dec 09:25
Favicon

Re: Can't generate PDF file in Windows

Mats Bengtsson <mats.bengtsson <at> ee.kth.se> writes:

> Not exactly true! You have to include a \layout block if you have a
> \midi block, but not otherwise.

Oops. I stand corrected -- thanks, Mats!

-- Johan
Dave Trowbridge | 30 Nov 06:03

Re: Can't generate PDF file in Windows

Dave Trowbridge <dave <at> davetrowbridge.com> writes:

When I try it in a command window, this is what I get:

C:\Program Files\LilyPond\usr\bin>lilypond --pdf bwv1007_prelude_clarinet.ly
GNU LilyPond 2.10.33
programming error: cannot find absolute argv0
continuing, cross fingers
ERROR: In procedure primitive-load-path:
ERROR: Unable to find file "ice-9/boot-9.scm" in load path
Gilles THIBAULT | 30 Nov 11:12
Favicon

Re: Can't generate PDF file in Windows


> When I try it in a command window, this is what I get:
>
> C:\Program Files\LilyPond\usr\bin>lilypond --pdf 
> bwv1007_prelude_clarinet.ly
> GNU LilyPond 2.10.33
> programming error: cannot find absolute argv0
> continuing, cross fingers
> ERROR: In procedure primitive-load-path:
> ERROR: Unable to find file "ice-9/boot-9.scm" in load path
>
I suppose the problem is that you have first to change the current directory 
to the directory of your ly file, with the command "cd".
For example
  cd /D "D:\myLyFiles\prelude.ly"
Then you can call
    lilypond prelude.ly

You can also make a little bat file (called "lily.bat" for example)  which 
will do that automatically.

@echo off
cd /D "%~dp1"
lilypond "%~nx1"

At last, you can even replace the "lilypond" command by the complete path of 
lily.bat, in the action associated with "Generate PDF" item of ly files 
menu.

Gilles 
(Continue reading)


Gmane