-
Notifications
You must be signed in to change notification settings - Fork 298
Build instructions for macOS
Hugues Delorme edited this page Jun 2, 2022
·
11 revisions
Mayo requires Qt5 and OpenCascade ≥ 7.3.0
Supported compilers are GCC ≥ 9 and LLVM/Clang ≥ 5
Check your macOS system provides official packages at least for OpenCascade v7.3.0
Install OpenCascade libraries :
brew install opencascade
Install Qt5 libraries :
brew install qt@5
brew link qt@5 --force
Get Mayo source code :
git clone https://github.com/fougue/mayo.git
Build Mayo out-of-source :
mkdir mayo-build
cd mayo-build
CASCADE_CELLAR_DIR=`brew --cellar opencascade`
CASCADE_VERSION=`brew info opencascade | grep -E --only-matching --max-count=1 "[0-9]\.[0-9]\.[0-9]"`
CASCADE_BASE_DIR=$CASCADE_CELLAR_DIR/$CASCADE_VERSION
qmake ../mayo CASCADE_INC_DIR=$CASCADE_BASE_DIR/include/opencascade CASCADE_LIB_DIR=$CASCADE_BASE_DIR/lib
make -j2
Run Mayo :
./mayo.app/Contents/MacOS/mayo