-
Notifications
You must be signed in to change notification settings - Fork 419
Build Instructions for OS X
andre-schulz edited this page May 10, 2024
·
33 revisions
Wiki Home ▸ MVE Users Guide ▸ Build Instructions for OS X
- Run
xcode-select --install
to install the macOS Command Line Tools - Install homebrew (from http://mxcl.github.com/homebrew/)
- Make sure
brew doctor
doesn't show any errors brew install git libpng jpeg libtiff qt@5
brew link --force qt@5
- Clone MVE repository
git clone git://github.com/simonfuhrmann/mve.git
- Build MVE and UMVE
cd mve; make
cd apps/umve; qmake; make; ./umve
-
libgomp
not found? - Remove the
OPENMP=-fopenmp
line fromMakefile.inc
- Alternative: Temporary
export OPENMP=""
in your shell - Problems with
qmake
? - Add
/usr/local/bin
and/or/usr/local/opt/qt/bin
to/etc/paths
- Maybe add
/usr/local/opt/qt/lib
to yourLIBRARY_PATH
- In homebrew of new version, packages are installed in
/opt/homebrew/...
instead of/usr/local/...
, which is the default path. - Execute
export CPATH=/opt/homebrew/include
andexport LIBRARY_PATH=/opt/homebrew/lib
to set environmental variable. -
-march=native
not found? EditMakefile.inc
and change it. Starting with clang 13,-mcpu=apple-m1
is available. Starting with clang 15,-march=native
is available for M1.