Re: Lilypond not rendering PDF on Mac

2019-01-10 Thread Stanton Sanderson
A word of caution- do a search of “using MacPorts and Homebrew together” before
trying one with the other. As I understand it, Homebrew leaves pieces 
{grounds?) in many locations which can cause problems with other apps. There 
are ways of letting them coexist, but be cautious.MacPorts, however, is easily 
uninstalled (as is Fink- which I used to use). I use MacPorts because it better 
fit my needs.

Stan

> On Jan 10, 2019, at 2:48 AM, Werner LEMBERG  wrote:
> 
> 
>> Right. 2.19.82 is the current devel download from the LilyPond site.
>> It is also possible to install it through using the homebrew package
>> manager.
> 
> As far as I can see, Homebrew core doesn't support lilypond at all –
> there is no recipe in the `homebrew-core' git repository.  And
> `homebrew-cask' has been recently `updated', apparently, from 2.19.82
> to 2.18.2, no longer providing access to the development version.
> 
> Try the `lilypond-devel' package from MacPorts instead.
> 
> 
>Werner
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-10 Thread Werner LEMBERG

> Right. 2.19.82 is the current devel download from the LilyPond site.
> It is also possible to install it through using the homebrew package
> manager.

As far as I can see, Homebrew core doesn't support lilypond at all –
there is no recipe in the `homebrew-core' git repository.  And
`homebrew-cask' has been recently `updated', apparently, from 2.19.82
to 2.18.2, no longer providing access to the development version.

Try the `lilypond-devel' package from MacPorts instead.


Werner
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Mark Probert
Jacques wrote:
> 
> Always been installing Lily from the ready-to-install dmg’s, and 
> never had such problems. My current version is 2.19.82.
> 
Right. 2.19.82 is the current devel download from the LilyPond 
site.  It is also possible to install it through using the 
homebrew package manager. It appears as though, at a rough guess, 
the build of that is broken (it links against an old version of 
ghostscript).

It would seem the best way to install lilypond is to download 
it from the official site.

 .. mark.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Jacques Menu
Hello,

Did you check the order of the folders in $PATH? Maybe there’s in a wrong order.

I’m still running OS X 10.13.6 though, to avoid upgrading Finale which I use 
for tests. 

Always been installing Lily from the ready-to-install dmg’s, and never had such 
problems. My current version is 2.19.82.

JM

> Le 10 janv. 2019 à 03:06, Mark Probert  a écrit :
> 
> 
> Stephen wrote:
>> 
>> I've been playing around with a few of the suggestions, including 
>> Homebrew and updating Ghostscript, 
>> 
> So I have two machines, both Macs on OSX 10.13.6, and one runs
> fine, and the other doesn't. 
> 
> The working one is 2.19.82, so the dev branch installed from the
> LilyPond website (I guess)
> 
> The broken one is 2.18.2, installed from homebrew. Lilypond seems
> to work fine, however it breaks on using ghostscript. It seems this
> version was built against an older version of the gs dynamic library
> and now it spits the dummy, but it does produce the .ps file:
> 
> ---< cut >---
> $ lilypond --png WMX4LBIK6L3LQEX4WG
> GNU LilyPond 2.18.2
> Processing `WMX4LBIK6L3LQEX4WG'
> Parsing...
> ...
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Layout output to `WMX4LBIK6L3LQEX4WG.ps'...
> Converting to PNG...dyld: Library not loaded: 
> ./bin/../sobin/libgs.8.70.dylib
>  Referenced from: 
> /Applications/LilyPond.app/Contents/Resources/bin/../bin/gs
>  Reason: image not found
> 
> fatal error: GS exited with status: 6
> ---< cut >---
> 
> Running ps2pdf (from the new version of ghostscript) produces a correct 
> PDF of the lilypond input. 
> 
> Downloading and installing the development version[1] seems to fix the 
> problem (I run the cammandline and I get the --png I am after). 
> 
> HTH
> 
> .. mark.
> 
> [1] 
> http://lilypond.org/download/binaries/darwin-x86/lilypond-2.19.82-1.darwin-x86.tar.bz2
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Mark Probert


Stephen wrote:
> 
> I've been playing around with a few of the suggestions, including 
> Homebrew and updating Ghostscript, 
>
So I have two machines, both Macs on OSX 10.13.6, and one runs
fine, and the other doesn't. 

The working one is 2.19.82, so the dev branch installed from the
LilyPond website (I guess)

The broken one is 2.18.2, installed from homebrew. Lilypond seems
to work fine, however it breaks on using ghostscript. It seems this
version was built against an older version of the gs dynamic library
and now it spits the dummy, but it does produce the .ps file:

---< cut >---
$ lilypond --png WMX4LBIK6L3LQEX4WG
GNU LilyPond 2.18.2
Processing `WMX4LBIK6L3LQEX4WG'
Parsing...
...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `WMX4LBIK6L3LQEX4WG.ps'...
Converting to PNG...dyld: Library not loaded: 
./bin/../sobin/libgs.8.70.dylib
  Referenced from: 
/Applications/LilyPond.app/Contents/Resources/bin/../bin/gs
  Reason: image not found

fatal error: GS exited with status: 6
---< cut >---

Running ps2pdf (from the new version of ghostscript) produces a correct 
PDF of the lilypond input. 

Downloading and installing the development version[1] seems to fix the 
problem (I run the cammandline and I get the --png I am after). 

HTH

 .. mark.

[1] 
http://lilypond.org/download/binaries/darwin-x86/lilypond-2.19.82-1.darwin-x86.tar.bz2


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Stephen Wilkinson
Thank you very much everyone. Got the development version and seems to be
working at last.

On Thu, Jan 10, 2019 at 2:08 AM Mark Probert  wrote:

>
> Stephen wrote:
> >
> > I've been playing around with a few of the suggestions, including
> > Homebrew and updating Ghostscript,
> >
> So I have two machines, both Macs on OSX 10.13.6, and one runs
> fine, and the other doesn't.
>
> The working one is 2.19.82, so the dev branch installed from the
> LilyPond website (I guess)
>
> The broken one is 2.18.2, installed from homebrew. Lilypond seems
> to work fine, however it breaks on using ghostscript. It seems this
> version was built against an older version of the gs dynamic library
> and now it spits the dummy, but it does produce the .ps file:
>
> ---< cut >---
> $ lilypond --png WMX4LBIK6L3LQEX4WG
> GNU LilyPond 2.18.2
> Processing `WMX4LBIK6L3LQEX4WG'
> Parsing...
> ...
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Layout output to `WMX4LBIK6L3LQEX4WG.ps'...
> Converting to PNG...dyld: Library not loaded:
> ./bin/../sobin/libgs.8.70.dylib
>   Referenced from:
> /Applications/LilyPond.app/Contents/Resources/bin/../bin/gs
>   Reason: image not found
>
> fatal error: GS exited with status: 6
> ---< cut >---
>
> Running ps2pdf (from the new version of ghostscript) produces a correct
> PDF of the lilypond input.
>
> Downloading and installing the development version[1] seems to fix the
> problem (I run the cammandline and I get the --png I am after).
>
> HTH
> [1]
>
> http://lilypond.org/download/binaries/darwin-x86/lilypond-2.19.82-1.darwin-x86.tar.bz2
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Mark Probert


Stephen wrote:
> 
> I've been playing around with a few of the suggestions, including 
> Homebrew and updating Ghostscript, 
> 
So I have two machines, both Macs on OSX 10.13.6, and one runs
fine, and the other doesn't. 

The working one is 2.19.82, so the dev branch installed from the
LilyPond website (I guess)

The broken one is 2.18.2, installed from homebrew. Lilypond seems
to work fine, however it breaks on using ghostscript. It seems this
version was built against an older version of the gs dynamic library
and now it spits the dummy, but it does produce the .ps file:

---< cut >---
$ lilypond --png WMX4LBIK6L3LQEX4WG
GNU LilyPond 2.18.2
Processing `WMX4LBIK6L3LQEX4WG'
Parsing...
...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `WMX4LBIK6L3LQEX4WG.ps'...
Converting to PNG...dyld: Library not loaded: 
./bin/../sobin/libgs.8.70.dylib
  Referenced from: 
/Applications/LilyPond.app/Contents/Resources/bin/../bin/gs
  Reason: image not found

fatal error: GS exited with status: 6
---< cut >---

Running ps2pdf (from the new version of ghostscript) produces a correct 
PDF of the lilypond input. 

Downloading and installing the development version[1] seems to fix the 
problem (I run the cammandline and I get the --png I am after). 

HTH
[1] 
http://lilypond.org/download/binaries/darwin-x86/lilypond-2.19.82-1.darwin-x86.tar.bz2


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Hans Åberg


> On 9 Jan 2019, at 13:27, Stephen Wilkinson  
> wrote:
> 
> >$ lilypond -V --ps --pdf test.ly
> 
> This also hangs, and produces the following output. Any help would be much 
> appreciated!
> 
> /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49:
>  Error: unsupported compressor 8

The following links suggests it has something to do with XQuartz. LilyPond has 
some X11 stuff, it seems.

https://bugs.launchpad.net/inkscape/+bug/1723724
https://inkscape.org/learn/faq/#inkscape-fails-launch-os-x-108-and-later



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Werner LEMBERG


> I should add that I use MacPorts, but not to install Frescobaldi and
> Lilypond.

Recently, I've completely updated MacPorts's `lilypond-devel' package
(but not `lilypond'), which should be primarily used today since the
2.18 series is no longer supported.

In case there are problems please report them!


Werner

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Stan Sanderson
Stephen-

I should add that I use MacPorts, but not to install Frescobaldi and Lilypond. 

Stan


> On Jan 9, 2019, at 3:47 PM, Stephen Wilkinson 
>  wrote:
> 
> Ok, weirdly enough just running ps2pdf on the generated PDFs does work - both 
> the version in the Lilypond app and the new Ghostscript version. But Lilypond 
> is still hanging when doing the conversion itself
> 
> On Wed, Jan 9, 2019 at 9:39 PM Stephen Wilkinson 
> mailto:stephen.wilkinson...@gmail.com>> 
> wrote:
> Sorry, spoke too soon, got it working again now. So, almost back where we 
> started. I can confirm though that the generated .ps files do open fine in 
> other programs. So I guess the problem must be the pstopdf stage.
> 
> On Wed, Jan 9, 2019 at 9:29 PM Stephen Wilkinson 
> mailto:stephen.wilkinson...@gmail.com>> 
> wrote:
> >While it doesn’t help much to have someone tell you it works on their 
> >machine, it does at least tell you it's possible.
> Good to know, thanks!
> 
> I've been playing around with a few of the suggestions, including Homebrew 
> and updating Ghostscript, and have now helpfully got to the point where 
> Lilypond won't open at all, on its own or in Frescobaldi. Using --V comes up 
> with the same 'unsupported compressor' errors as before, and then it just 
> hangs without fully opening. So, fun times...
> 
> On Wed, Jan 9, 2019 at 8:47 PM Stan Sanderson  > wrote:
> I’m running  Mac OS 10.14.2 with Lilypond 2.19.82 installed from the site’s 
> disk image and using Fescobaldi 2.20.0, Frescobaldi is set to output pdf and 
> does so without a problem. ps2pdf is located in /usr/local/bin/ps2pdf.
> 
> Compiling a file directly from the Lilypond app also produces the expected 
> pdf file.
> 
> While it doesn’t help much to have someone tell you it works on their 
> machine, it does at least tell you it's possible. 
> 
> In my case, I have been using Lilypond somewhat continuously on Macs over the 
> years and upgrading the OS as it comes. I have never experienced the problem 
> you mentioned.
> 
> (off-topic: The only concern I have is that the next version of the OS will 
> require 64-bit apps; Lilypond is 32)
> 
> 
> > On Jan 8, 2019, at 11:32 AM, Stephen Wilkinson 
> > mailto:stephen.wilkinson...@gmail.com>> 
> > wrote:
> > 
> > Sorry, not sure if I've posted this twice
> > 
> > I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),  but 
> > have run into a problem at the beginning. Lilypond hangs when rendering a 
> > file at the 'Converting to .pdf.' stage. 
> > 
> > I've tried this both with the default test file and scores I've already 
> > got, and both through and without Frescobaldi. I've got it rendering to 
> > SVGs as a workaround, but Frescobaldi's handling of them isn't quite as 
> > fluent, so it would be nice to be able to make PDFs as normal. Any ideas? 
> > Thanks
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org 
> > https://lists.gnu.org/mailman/listinfo/lilypond-user 
> > 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Stephen Wilkinson
Ok, weirdly enough just running ps2pdf on the generated PDFs does work -
both the version in the Lilypond app and the new Ghostscript version. But
Lilypond is still hanging when doing the conversion itself

On Wed, Jan 9, 2019 at 9:39 PM Stephen Wilkinson <
stephen.wilkinson...@gmail.com> wrote:

> Sorry, spoke too soon, got it working again now. So, almost back where we
> started. I can confirm though that the generated .ps files do open fine in
> other programs. So I guess the problem must be the pstopdf stage.
>
> On Wed, Jan 9, 2019 at 9:29 PM Stephen Wilkinson <
> stephen.wilkinson...@gmail.com> wrote:
>
>> >While it doesn’t help much to have someone tell you it works on their
>> machine, it does at least tell you it's possible.
>> Good to know, thanks!
>>
>> I've been playing around with a few of the suggestions, including
>> Homebrew and updating Ghostscript, and have now helpfully got to the point
>> where Lilypond won't open at all, on its own or in Frescobaldi. Using --V
>> comes up with the same 'unsupported compressor' errors as before, and then
>> it just hangs without fully opening. So, fun times...
>>
>> On Wed, Jan 9, 2019 at 8:47 PM Stan Sanderson  wrote:
>>
>>> I’m running  Mac OS 10.14.2 with Lilypond 2.19.82 installed from the
>>> site’s disk image and using Fescobaldi 2.20.0, Frescobaldi is set to output
>>> pdf and does so without a problem. ps2pdf is located in
>>> /usr/local/bin/ps2pdf.
>>>
>>> Compiling a file directly from the Lilypond app also produces the
>>> expected pdf file.
>>>
>>> While it doesn’t help much to have someone tell you it works on their
>>> machine, it does at least tell you it's possible.
>>>
>>> In my case, I have been using Lilypond somewhat continuously on Macs
>>> over the years and upgrading the OS as it comes. I have never experienced
>>> the problem you mentioned.
>>>
>>> (off-topic: The only concern I have is that the next version of the OS
>>> will require 64-bit apps; Lilypond is 32)
>>>
>>>
>>> > On Jan 8, 2019, at 11:32 AM, Stephen Wilkinson <
>>> stephen.wilkinson...@gmail.com> wrote:
>>> >
>>> > Sorry, not sure if I've posted this twice
>>> >
>>> > I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),
>>> but have run into a problem at the beginning. Lilypond hangs when rendering
>>> a file at the 'Converting to .pdf.' stage.
>>> >
>>> > I've tried this both with the default test file and scores I've
>>> already got, and both through and without Frescobaldi. I've got it
>>> rendering to SVGs as a workaround, but Frescobaldi's handling of them isn't
>>> quite as fluent, so it would be nice to be able to make PDFs as normal. Any
>>> ideas? Thanks
>>> > ___
>>> > lilypond-user mailing list
>>> > lilypond-user@gnu.org
>>> > https://lists.gnu.org/mailman/listinfo/lilypond-user
>>>
>>>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Stephen Wilkinson
Sorry, spoke too soon, got it working again now. So, almost back where we
started. I can confirm though that the generated .ps files do open fine in
other programs. So I guess the problem must be the pstopdf stage.

On Wed, Jan 9, 2019 at 9:29 PM Stephen Wilkinson <
stephen.wilkinson...@gmail.com> wrote:

> >While it doesn’t help much to have someone tell you it works on their
> machine, it does at least tell you it's possible.
> Good to know, thanks!
>
> I've been playing around with a few of the suggestions, including Homebrew
> and updating Ghostscript, and have now helpfully got to the point where
> Lilypond won't open at all, on its own or in Frescobaldi. Using --V comes
> up with the same 'unsupported compressor' errors as before, and then it
> just hangs without fully opening. So, fun times...
>
> On Wed, Jan 9, 2019 at 8:47 PM Stan Sanderson  wrote:
>
>> I’m running  Mac OS 10.14.2 with Lilypond 2.19.82 installed from the
>> site’s disk image and using Fescobaldi 2.20.0, Frescobaldi is set to output
>> pdf and does so without a problem. ps2pdf is located in
>> /usr/local/bin/ps2pdf.
>>
>> Compiling a file directly from the Lilypond app also produces the
>> expected pdf file.
>>
>> While it doesn’t help much to have someone tell you it works on their
>> machine, it does at least tell you it's possible.
>>
>> In my case, I have been using Lilypond somewhat continuously on Macs over
>> the years and upgrading the OS as it comes. I have never experienced the
>> problem you mentioned.
>>
>> (off-topic: The only concern I have is that the next version of the OS
>> will require 64-bit apps; Lilypond is 32)
>>
>>
>> > On Jan 8, 2019, at 11:32 AM, Stephen Wilkinson <
>> stephen.wilkinson...@gmail.com> wrote:
>> >
>> > Sorry, not sure if I've posted this twice
>> >
>> > I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),
>> but have run into a problem at the beginning. Lilypond hangs when rendering
>> a file at the 'Converting to .pdf.' stage.
>> >
>> > I've tried this both with the default test file and scores I've already
>> got, and both through and without Frescobaldi. I've got it rendering to
>> SVGs as a workaround, but Frescobaldi's handling of them isn't quite as
>> fluent, so it would be nice to be able to make PDFs as normal. Any ideas?
>> Thanks
>> > ___
>> > lilypond-user mailing list
>> > lilypond-user@gnu.org
>> > https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Stephen Wilkinson
>While it doesn’t help much to have someone tell you it works on their
machine, it does at least tell you it's possible.
Good to know, thanks!

I've been playing around with a few of the suggestions, including Homebrew
and updating Ghostscript, and have now helpfully got to the point where
Lilypond won't open at all, on its own or in Frescobaldi. Using --V comes
up with the same 'unsupported compressor' errors as before, and then it
just hangs without fully opening. So, fun times...

On Wed, Jan 9, 2019 at 8:47 PM Stan Sanderson  wrote:

> I’m running  Mac OS 10.14.2 with Lilypond 2.19.82 installed from the
> site’s disk image and using Fescobaldi 2.20.0, Frescobaldi is set to output
> pdf and does so without a problem. ps2pdf is located in
> /usr/local/bin/ps2pdf.
>
> Compiling a file directly from the Lilypond app also produces the expected
> pdf file.
>
> While it doesn’t help much to have someone tell you it works on their
> machine, it does at least tell you it's possible.
>
> In my case, I have been using Lilypond somewhat continuously on Macs over
> the years and upgrading the OS as it comes. I have never experienced the
> problem you mentioned.
>
> (off-topic: The only concern I have is that the next version of the OS
> will require 64-bit apps; Lilypond is 32)
>
>
> > On Jan 8, 2019, at 11:32 AM, Stephen Wilkinson <
> stephen.wilkinson...@gmail.com> wrote:
> >
> > Sorry, not sure if I've posted this twice
> >
> > I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),
> but have run into a problem at the beginning. Lilypond hangs when rendering
> a file at the 'Converting to .pdf.' stage.
> >
> > I've tried this both with the default test file and scores I've already
> got, and both through and without Frescobaldi. I've got it rendering to
> SVGs as a workaround, but Frescobaldi's handling of them isn't quite as
> fluent, so it would be nice to be able to make PDFs as normal. Any ideas?
> Thanks
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Stan Sanderson
I’m running  Mac OS 10.14.2 with Lilypond 2.19.82 installed from the site’s 
disk image and using Fescobaldi 2.20.0, Frescobaldi is set to output pdf and 
does so without a problem. ps2pdf is located in /usr/local/bin/ps2pdf.

Compiling a file directly from the Lilypond app also produces the expected pdf 
file.

While it doesn’t help much to have someone tell you it works on their machine, 
it does at least tell you it's possible. 

In my case, I have been using Lilypond somewhat continuously on Macs over the 
years and upgrading the OS as it comes. I have never experienced the problem 
you mentioned.

(off-topic: The only concern I have is that the next version of the OS will 
require 64-bit apps; Lilypond is 32)
 

> On Jan 8, 2019, at 11:32 AM, Stephen Wilkinson 
>  wrote:
> 
> Sorry, not sure if I've posted this twice
> 
> I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),  but 
> have run into a problem at the beginning. Lilypond hangs when rendering a 
> file at the 'Converting to .pdf.' stage. 
> 
> I've tried this both with the default test file and scores I've already got, 
> and both through and without Frescobaldi. I've got it rendering to SVGs as a 
> workaround, but Frescobaldi's handling of them isn't quite as fluent, so it 
> would be nice to be able to make PDFs as normal. Any ideas? Thanks
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


max and min operators in draw_round_box (was: Lilypond not rendering PDF on Mac)

2019-01-09 Thread Tyler Mitchell
On Wed, Jan 09, 2019 at 12:27:13PM +, Stephen Wilkinson wrote:
> [...] it seems to be a struggle to get the postscript file to
> open in anything at all.

I looked at this and it seems the culprit is the draw_round_box
procedure which uses 'max' and 'min' operators, which are not part
of standard PostScript, but are available in Ghostscript:

https://en.wikibooks.org/wiki/PostScript_FAQ#Where_are_min_and_max_functions?

Adding this to the PostScript output (before draw_round_box is
defined) makes it double-clickable in OS X:

 /min { 2 copy gt { exch } if pop } bind def
 /max { 2 copy lt { exch } if pop } bind def


Is it possible to include these in music-drawing-routines.ps so
that the .ps output could be processed with non-Ghostscript
interpreters?

Cheers,
Tyler

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Tyler Mitchell
On Wed, Jan 09, 2019 at 12:27:13PM +, Stephen Wilkinson wrote:
> It makes a postscript file, but it looks a mess. I'm now suspecting this
> stage is the problem, rather than the pstopdf, because it seems to be a
> struggle to get the postscript file to open in anything at all. Again
> though, it's making SVGs from Frescobaldi fine.

I also can't open .ps files produced by LilyPond without first
running 'ps2pdf' on them. If I try opening them in Preview, the
error I get in the system log is:

2019-01-09 9:40:52.859 AM Preview[13176]: PostScript conversion encountered 
errors: %%[ Error: undefined; OffendingCommand: max ]%%

I would guess that, if lilypond --ps test.ly works and produces a
PostScript file without error, then it's the ps2pdf coversion
that's failing.

If you have access to another system with Ghostscript installed,
you could copy your test.ps file there, then run:

$ ps2pdf test.ps

That should prove that the PostScript generation is working well.
(Or you could send the list a test.ps file and we could try it.)

> >$ lilypond -V --ps --pdf test.ly
> 
> This also hangs, and produces the following output.
> 
> 2019-01-09 09:18:03.956 LilyPond[4962:1292605] PyObjCPointer created: at 
> 0xa82d5290 of type {__CFBoolean=}

What I'm wondering is whether the version of Ghostscript bundled
with LilyPond might need updating for compatibility. On my system,
I use Homebrew, and I have a more up-to-date version of gs:

Homebrew version:

  $ which lilypond
  /usr/local/bin/lilypond
  $ gs -v
  GPL Ghostscript 9.26 (2018-11-20)

Version shipping with 2.18.2:

  GPL Ghostscript 8.70 (2009-07-31)
  Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.

Version shipping with 2.19.82:

  GPL Ghostscript 9.21 (2017-03-16)
  Copyright (C) 2017 Artifex Software, Inc.  All rights reserved.

I am (happily) stuck at El Capitan at the moment, so I can't test
this easily on High Sierra, but perhaps using a newer Ghostscript
is worth a try.

Tyler

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Stephen Wilkinson
>Was this one installed from lilypond.org or from any other source ?
>From lilypond.org. Can't say I particularly enjoy the prospect of compiling
from source...


On Wed, Jan 9, 2019 at 1:24 PM Jean-Julien Fleck 
wrote:

> Hello,
>
> Le mer. 9 janv. 2019 à 13:52, Andrew Bernard  a
> écrit :
>
>> Do we even support that version of Mac OS?
>>
>
> At least it's working for me.
> But I recall I encountered the same issue when using lilypond from a
> Macport installation.
> It was solved when I used the one available on lilypond.org.
>
> Was this one installed from lilypond.org or from any other source ?
>
> Cheers,
>
> --
> JJ Fleck
> Physique et Informatique
> PCSI1 Lycée Kléber
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Andrew Bernard
Thats a big version jump for Apple, up to 14 from 13.

Andrew

On Thu, 10 Jan 2019 at 00:13, Tim McNamara  wrote:

> That's what I was wondering.  Might be helpful to make from source rather
> than using the precompiled binary.  The MacOS update to 14.2 might have
> broken something- different version of some library or other- but building
> anew might resolve it, at the risk of dependency hell.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Jean-Julien Fleck
Hello,

Le mer. 9 janv. 2019 à 13:52, Andrew Bernard  a
écrit :

> Do we even support that version of Mac OS?
>

At least it's working for me.
But I recall I encountered the same issue when using lilypond from a
Macport installation.
It was solved when I used the one available on lilypond.org.

Was this one installed from lilypond.org or from any other source ?

Cheers,

-- 
JJ Fleck
Physique et Informatique
PCSI1 Lycée Kléber
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Tim McNamara
That's what I was wondering.  Might be helpful to make from source rather than 
using the precompiled binary.  The MacOS update to 14.2 might have broken 
something- different version of some library or other- but building anew might 
resolve it, at the risk of dependency hell.

> On Jan 9, 2019, at 6:36 AM, Andrew Bernard  wrote:
> 
> Do we even support that version of Mac OS?
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Andrew Bernard
Do we even support that version of Mac OS?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-09 Thread Stephen Wilkinson
Thanks everyone, here's the latest:

>I would suggest you check that you can run Lilypond in command-line mode
using the “-ps” switch to generate a PostScript file

It makes a postscript file, but it looks a mess. I'm now suspecting this
stage is the problem, rather than the pstopdf, because it seems to be a
struggle to get the postscript file to open in anything at all. Again
though, it's making SVGs from Frescobaldi fine.

>I would try running something like:
>
>$ lilypond -V --ps --pdf test.ly

This also hangs, and produces the following output. Any help would be much
appreciated!

2019-01-09 09:18:03.956 LilyPond[4962:1292605] PyObjCPointer created: at
0xa82d5290 of type {__CFBoolean=}

2019-01-09 09:18:03.956 LilyPond[4962:1292605] PyObjCPointer created: at
0xa82d5288 of type {__CFBoolean=}

2019-01-09 09:18:03.958 LilyPond[4962:1292605] PyObjCPointer created: at
0xa82d5298 of type {__CFNumber=}

2019-01-09 09:18:03.958 LilyPond[4962:1292605] PyObjCPointer created: at
0xa82d52a8 of type {__CFNumber=}

2019-01-09 09:18:03.958 LilyPond[4962:1292605] PyObjCPointer created: at
0xa82d52b8 of type {__CFNumber=}

/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49:
Error: unsupported compressor 8

/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Libraries/CompressData/CompressData.c:353:
Error: Unknown compression scheme encountered for file
'/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist'

/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49:
Error: unsupported compressor 8

/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Libraries/CompressData/CompressData.c:353:
Error: Unknown compression scheme encountered for file
'/System/Library/CoreServices/CoreTypes.bundle/Contents/Library/AppExceptions.bundle/Exceptions.plist'

/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Common/ChunkCompression.cpp:49:
Error: unsupported compressor 8

/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.200.3/Libraries/CompressData/CompressData.c:353:
Error: Unknown compression scheme encountered for file
'/System/Library/LinguisticData/Latn/Dict2.dat'

On Tue, Jan 8, 2019 at 11:29 PM Henning Hraban Ramm 
wrote:

> Am 2019-01-08 um 18:32 schrieb Stephen Wilkinson <
> stephen.wilkinson...@gmail.com>:
>
> > I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),
> but have run into a problem at the beginning. Lilypond hangs when rendering
> a file at the 'Converting to .pdf.' stage.
>
> Probably you need to add the path to your lilypond and ps2pdf binaries to
> your $PATH.
>
> Depending on where you installed LilyPond.app, it should be something like
> /Applications/LilyPond.app/Contents/Resources/bin/
>
> Add to your ~/.bashrc (or ~/.profile):
>
> export PATH=$PATH:/Applications/LilyPond.app/Contents/Resources/bin/
>
> Greetlings, Hraban
> ---
> fiëé visuëlle
> Henning Hraban Ramm
> https://www.fiee.net
>
>
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-08 Thread Henning Hraban Ramm
Am 2019-01-08 um 18:32 schrieb Stephen Wilkinson 
:

> I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),  but 
> have run into a problem at the beginning. Lilypond hangs when rendering a 
> file at the 'Converting to .pdf.' stage. 

Probably you need to add the path to your lilypond and ps2pdf binaries to your 
$PATH.

Depending on where you installed LilyPond.app, it should be something like 
/Applications/LilyPond.app/Contents/Resources/bin/

Add to your ~/.bashrc (or ~/.profile):

export PATH=$PATH:/Applications/LilyPond.app/Contents/Resources/bin/

Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
https://www.fiee.net





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-08 Thread Tyler Mitchell
On Tue, Jan 08, 2019 at 05:32:11PM +, Stephen Wilkinson wrote:
> Sorry, not sure if I've posted this twice

Yes.

> I've recently installed Lilypond (2.18.2) onto a new Mac (OS X
> 14.2), but have run into a problem at the beginning. Lilypond
> hangs when rendering a file at the 'Converting to .pdf.' stage.

I would try running something like:

$ lilypond -V --ps --pdf test.ly

It will show the command it's using to convert the .ps file to PDF,
eg:

gs -dNOSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 
-dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite 
-sOutputFile=./test.pdf -c.setpdfwrite -ftest.ps

And, you'll be left with the original .ps file.

So then you could try that gs command, perhaps even adding -dDEBUG
to see what's going on.

Cheers,
Tyler

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond not rendering PDF on Mac

2019-01-08 Thread Michael Hendry
> On 8 Jan 2019, at 17:32, Stephen Wilkinson  
> wrote:
> 
> Sorry, not sure if I've posted this twice
> 
> I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),  but 
> have run into a problem at the beginning. Lilypond hangs when rendering a 
> file at the 'Converting to .pdf.' stage. 
> 
> I've tried this both with the default test file and scores I've already got, 
> and both through and without Frescobaldi. I've got it rendering to SVGs as a 
> workaround, but Frescobaldi's handling of them isn't quite as fluent, so it 
> would be nice to be able to make PDFs as normal. Any ideas? Thanks

Hi, Stephen.

This is all sounding very familiar - I switched to Mac in 2013, and I’m sorry 
to say I solved this or a similar problem without taking note of how I did it.

I think it may have had to do with the installation of (the right version of?) 
GhostScript.

I would suggest you check that you can run Lilypond in command-line mode using 
the “-ps” switch to generate a PostScript file.

See: http://lilypond.org/doc/v2.19/Documentation/usage.pdf

If that works, and inspection of the resulting .ps file with a text editor 
looks credible, the conversion of PS to PDF is your problem.

You should already have a copy of “ps2pdf” installed, along with lilypond.

Try entering...

which ps2pdf

…on the command-line and see what you get.

On my Mac I get:

| => which ps2pdf
ps2pdf is /usr/local/bin/ps2pdf
ps2pdf is /Applications/LilyPond.app/Contents/Resources/bin/ps2pdf
ps2pdf is /usr/local/bin/ps2pdf

I’m not sure how lilypond finds ps2pdf (or equivalent) when it converts a PS to 
a PDF file, but if you have a working copy of ps2pdf on your Mac it needs to be 
in the path that lilypond searches for executables.

Sorry not to be more specific, hope this helps.

Regards,

Michael




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Lilypond not rendering PDF on Mac

2019-01-08 Thread Stephen Wilkinson
Sorry, not sure if I've posted this twice

I've recently installed Lilypond (2.18.2) onto a new Mac (OS X 14.2),  but
have run into a problem at the beginning. Lilypond hangs when rendering a
file at the 'Converting to .pdf.' stage.

I've tried this both with the default test file and scores I've already
got, and both through and without Frescobaldi. I've got it rendering to
SVGs as a workaround, but Frescobaldi's handling of them isn't quite as
fluent, so it would be nice to be able to make PDFs as normal. Any ideas?
 Thanks
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user