OSXBuild31 » History » Version 2

Chris Cannam, 2018-07-12 03:26 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 2 Chris Cannam
 * Install Qt5, either through Homebrew or using the Qt installer
8 2 Chris Cannam
 * Install an SML compiler, e.g. with @brew install polyml@
9 2 Chris Cannam
 * In the SV repo, run @./repoint install@ to pull in the subrepos
10 2 Chris Cannam
 * Run @qmake -r sonic-visualiser.pro@ (you may have to specify the full path for Qt5 @qmake@)
11 2 Chris Cannam
 * Run @make@
12 2 Chris Cannam
13 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.)