WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: LilyPond error converting to pdf  (Read 3413 times)

Offline combo3

  • Full Member
  • ***
  • Posts: 148
LilyPond error converting to pdf
« on: October 01, 2009, 04:28:38 PM »
I am going through the 'First Steps' tutorial found here:

http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Compiling-a-file#Compiling-a-file

tc@box:~$ cat test.ly
{
  c' e' g' e'
}

tc@box:~$ lilypond test.ly
GNU LilyPond 2.12.2
Processing `test.ly'
Parsing...
test.ly:0: warning: : no \version statement found, please add

\version "2.12.2"

for future compatibility
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `test.ps'...
Converting to `./test.pdf'...
`gs -q  -dSAFER  -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89  -dCompatibilityLevel=1.4  -dNOPAUSE -dBATCH -r1200  -sDEVICE=pdfwrite -sOutputFile="./test.pdf" -c .setpdfwrite -f "test.ps"' failed (32512)
error: failed files: "test.ly"

Seems ghostscript is required, but I get the same error even after installing the gs extension.

Any ideas?

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: LilyPond error converting to pdf
« Reply #1 on: October 01, 2009, 04:57:20 PM »
It doesn't seem to work with TC_2*.  Maybe need to compile a new version.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: LilyPond error converting to pdf
« Reply #2 on: October 01, 2009, 10:10:04 PM »
Given the amount of change,  I  think a good workaround is to have older versions available in grub with setups that are working well.  Lilypond can work with a small setup with only the programs you need for a music environment, for example. It works great with stable _1.2  and boots in seconds.  I've been toying with the idea of loading specific groups of extensions, for example, only when I need them vs having 100+ all the time.     

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: LilyPond error converting to pdf
« Reply #3 on: October 02, 2009, 02:16:41 AM »
lilypond Steps:

[removed due to policy]apps/lily-test.png

Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: LilyPond error converting to pdf
« Reply #4 on: October 02, 2009, 02:26:52 AM »
Perhaps it has to do with a change in user permissions?

Sudo seems to work:

tc@box:~$ sudo lilypond test.ly
GNU LilyPond 2.12.2
Processing `test.ly'
Parsing...
test.ly:0: warning: : no \version statement found, please add

\version "2.12.2"

for future compatibility
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `test.ps'...
Converting to `./test.pdf'...

tc@box:~$ ls
lilypond/ test.ly   test.pdf  test.ps

I tested the extension in TC 1.4.3, 2.2 and 2.3.1

The problem occurs after TC 2.2


Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: LilyPond error converting to pdf
« Reply #5 on: October 02, 2009, 02:43:29 AM »
Yeah, I spent a few hours on it building from scratch, after building guile, libltdl.so.3 (missing from current libtool extension)., etc, but it still had problems. I also tried the install script. Maybe an older version would work, I don't know.  This reminds me of the skype ordeal.  Maybe they'll come up with a version that's more compatible, but for now it works great with  tc_1X. (or < 2.3)


Edit:  Okay....you guessed it....run with "sudo"  I'm running tinycore_2.4rc2
Code: [Select]
tc@box:~$ sudo lilypond /mnt/hda3/lilypond/Steps
GNU LilyPond 2.12.2
Processing `/mnt/hda3/lilypond/Steps'
Parsing...
Interpreting music... [8][16][24]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `Steps.ps'...
Converting to `./Steps.pdf'...
« Last Edit: October 02, 2009, 03:04:09 AM by jpeters »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: LilyPond error converting to pdf
« Reply #6 on: October 02, 2009, 03:11:03 AM »
after building guile, libltdl.so.3 (missing from current libtool extension).,

..but nevertheless in the libltdl extension  ;)

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: LilyPond error converting to pdf
« Reply #7 on: October 02, 2009, 03:21:33 AM »
after building guile, libltdl.so.3 (missing from current libtool extension).,

..but nevertheless in the libltdl extension  ;)

which is why it's always good to take a break between projects.  :)