OSXBuild31 » History » Version 3

Chris Cannam, 2018-07-17 01:44 PM

1 1 Chris Cannam
h1. Building SV v3.1 on macOS
2 1 Chris Cannam
3 2 Chris Cannam
We bundle miscellaneous dependent library binaries into the @sv-dependency-builds@ subrepo, and so do not use @configure@ on macOS. (It may be possible to do so, using Homebrew packages, but it's untested.)
4 2 Chris Cannam
5 2 Chris Cannam
We *do* require Qt5 be installed externally, either through Homebrew or using the Qt installer. We also need an SML compiler for the Repoint dependency manager.
6 2 Chris Cannam
7 3 Chris Cannam
h2. Which SV branch to use
8 3 Chris Cannam
9 3 Chris Cannam
Use the @default@ branch of the SV Mercurial repo unless you have a particular reason to know otherwise.
10 3 Chris Cannam
11 3 Chris Cannam
h2. Build process
12 3 Chris Cannam
13 3 Chris Cannam
 * Check out the correct branch (probably @default@ as described above)
14 2 Chris Cannam
 * Install Qt5, either through Homebrew or using the Qt installer
15 2 Chris Cannam
 * Install an SML compiler, e.g. with @brew install polyml@
16 2 Chris Cannam
 * In the SV repo, run @./repoint install@ to pull in the subrepos
17 2 Chris Cannam
 * Run @qmake -r sonic-visualiser.pro@ (you may have to specify the full path for Qt5 @qmake@)
18 2 Chris Cannam
 * Run @make@
19 2 Chris Cannam
20 2 Chris Cannam
This builds a @Sonic Visualiser.app@, but at this point it still contains references to the external Qt libraries so it can't usefully be distributed. The script @deploy/osx/deploy.sh@ fixes these and packages up a @.dmg@ file. (It also code-signs it, which will fail if you don't have the signing keys. Even so, the @.app@ directory and pre-packaging volume should be left in a working state.)