Tldr Lilypond needs to compile a perfect engraving. PATH="/usr/local/opt/texinfo/bin:/usr/local/opt/bison/bin:$PATH" make allĪnd that’s it! You should be able to invoke lilypond from the terminal now.> As an untrained but interested bystander/hobbyist, the scores engraved by Lilypond are orders of magnitude better than those produced by the mainstream WYSIWYG editors Gsed -i -e 's/-Werror=suggest-override//g' config.make PATH="/usr/local/opt/texinfo/bin:/usr/local/opt/bison/bin:$PATH" \ Also, for some reason Lilypond configures to escalate certain build warnings to fatal errors, so we have to remove that bit of configuration after we run the configure script. We have to specify all the GCC-related compilers and preprocessors when we run configure for Lilypond, or it will fall back to using the built-in Apple ones and then fail late in the build process. Apple pretends to have gcc installed, but in fact the gcc in /usr/bin is just a renamed clang. Lilypond won’t compile with clang, Apple’s built-in compiler. I couldn’t find a Homebrew package for this, so I installed from source: This utility is optional, but it will result in much smaller PDF output from Lilypond when building the documentation, so I installed it (in case I want to build the docs later). Gsed -i -e '/doc\/Makefile/d' -e '/tests\/Makefile/d' -e '/tests\/.*\/Makefile/d' configure.in Gsed -i -e '/doc \\/d' -e '/tests/d' -e 's/tools \\/tools/' Makefile.am You’ll want to be in a temp directory to execute the following: I couldn't get texi2dvi to successfully process the documentation (it made the build process choke and die) so I deke out that part of the build. So we get to install the older version of flex by hand. Homebrew supplies flex-2.6.4, but due to upstream bugs Lilypond will choke on any version higher than 2.5.37. Pango t1utils fontforge texinfo gettext poppler gnu-sedįinally, it may be necessary to get Homebrew to symlink some of these libraries/resources to common areas: Now we can install all the dependencies that Homebrew can provide us:īrew install bison gcc ghostscript fontconfig freetype \ If you had installed kpathsea separately before, and if its binaries live in /usr/local/bin, you will need to uninstall it now. The sadhen/sadhen tap supplies Guile 1.8, which is Lilypond’s preferred version of Guile.įormerly, we had to add another tap for kpathsea functionality, but mactex now bundles it properly. Dependencies supplied by Homebrewįirst, we’ll install MacTeX, a precompiled distribution of TeX. This will give you several new font families in your universal fonts directory. Change directories to a temp directory (such as /tmp) and execute the following: Lilypond uses the TeX Gyre font metafamily for its default text engraving. They do not install any GUI apps, nor do they register Lilypond.app in your “Applications” directory. These instructions install only the command-line Lilypond utilities. You should also feel comfortable using Terminal. If you want to follow the instructions here, you should have already installed Homebrew and become familiar with what it does. So I set to work figuring out how to compile Lilypond natively, using Homebrew as my build environment. There is an unofficial MacOS build, but installing it can be tricky, and it doesn't always keep up with the latest upstream version. The official compiled Lilypond package for the MacOS target is 32-bit such binaries are not supported by MacOS since Catalina. I use Lilypond for all my music engraving. UPDATED: These instructions now work with Lilypond 2.21.x.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |