[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compiling on MacOS
From: |
Saul Tobin |
Subject: |
Compiling on MacOS |
Date: |
Fri, 27 Dec 2024 18:37:16 -0500 |
Hi all,
I'm trying to figure out how to compile Lilypond on MacOS (Sequoia, Intel
Mac, Homebrew) so I can do things when I'm away from my desktop.
So far I've succeeded in compiling Lilypond itself, but I'm completely
stumped on why I can't build regtests. The error I get is:
Making input/regression/out-test/collated-files.list < 1941 files
Making input/regression/out-test/collated-files.tely
Traceback (most recent call last):
File
"/Users/<myusername>/<path>/<to>/lilypond/scripts/build/lys-to-tely.py",
line 209, in <module>
files = open(input_filename, encoding='utf-8').read().split()
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory:
'out-test/collated-files.list'
make[3]: *** [out-test/collated-files.tely] Error 1
make[2]: *** [lysdoc-test] Error 2
make[1]: *** [test] Error 2
make: *** [test-baseline-pre] Error 2
As far as I can tell there's no log file created by either lys-to-tely.py
or by the preceding step creating collated-files.list.
I more or less followed the path described here
https://danieljohnson.name/blog/installing-lilypond-on-macos, with a few
differences:
1. I used the latest Flex from Homebrew (2.6.4), and except for some
probably harmless compiler warnings it seems to work fine.
2. I installed all fonts listed in the contributor docs at the MacOS
level. I tried passing --with-fonts-dir to configure as recommended in the
docs, but the flag wasn't recognized. I'm guessing this might be something
that changed with the pango overhaul, but didn't get updated in the
contributor docs?
3. Installing dblatex was a nightmare. It isn't packaged for Homebrew
except in some very out of date third party taps and by default Homebrew
blocks pip from being used without a virtual environment. Worse, dblatex is
straight up incompatible with both Python 3.13 (which is the system Python3
default) and with Python setuptools >65. I wasted a lot of time trying to
install it with pip, as even when it worked it failed to properly install
the executable script. I was finally able to install dblatex 0.3.11 from
source using Python 3.10, after manually editing the version string to work
with setuptools and the shell script to explicitly use python3.10. Honestly
I'm mildly surprised this hasn't caused issues on other platforms. The
dblatex project seems to be on life support.
4. I used the following:
PATH="/usr/local/opt/gettext/bin:/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH"
CC=gcc-14 CPP=cpp-14 CXX=g++-14 LDFLAGS="-L/usr/local/opt/flex/lib
-L/usr/local/opt/bison/lib -L/usr/local/opt/gettext/lib"
CPPFLAGS="-I/usr/local/opt/flex/include -I/usr/local/opt/bison/include
-I/usr/local/opt/gettext/include" ../autogen.sh --disable-optimising
Configure completes with no warnings. I used the same environment
variables for invoking make and make test-baseline.
Any ideas?
Saul
- Compiling on MacOS,
Saul Tobin <=