-
Notifications
You must be signed in to change notification settings - Fork 419
Build Instructions for OS X
Simon Fuhrmann edited this page Sep 30, 2013
·
33 revisions
Wiki Home ▸ The MVE Users Guide ▸ Build Instructions for OS X
- Install Git (from http://git-scm.com/)
- Install MacOSX Command Line Tools for XCode (from https://developer.apple.com/downloads/)
- Install homebrew (from http://mxcl.github.com/homebrew/)
brew install libjpeg libtiff glew
- Install Qt (for UMVE only, from http://qt-project.org/downloads)
- Not sure about Qt 5.0 but at latest Qt 4.8 worked
- Clone MVE repository:
git clone git://github.com/simonfuhrmann/mve.git
- Build MVE and UMVE
cd mve; make
cd apps/umve; qmake; make; open umve.app
- PNG library missing?
- For MVE: Edit
mve/libs/mve/Makefile
, add include path-I/usr/X11/include
(for libpng) toEXT_INCL
- For UMVE: Edit
mve/apps/umve/umve.pro
, add linker path-L/usr/X11/lib
toLIBS
variable - Qt libraries missing?
- Add
QMAKE_LIBDIR_QT = ${HOME}/QtSDK/Desktop/Qt/4.8.1/gcc/lib/
- You may also remove
QMAKE_LIBDIR_QT
- Add
- No
qmake
available after installing Qt? - Add
qmake
to$PATH
:export PATH=$PATH:$HOME/QtSDK/Desktop/Qt/474/gcc/bin/
- When
qmake
does not generate aMakefile
: - Try
qmake -spec macx-g++
- Further problems when compiling Qt sources:
- Depending on your build environment, creating a
umve.pro.priv
file with the following content may help: QMAKE_CFLAGS_X86_64 += -mmacosx-version-min=10.7
QMAKE_CXXFLAGS_X86_64 = $$QMAKE_CFLAGS_X86_64
QMAKE_LIBDIR_QT = /usr/local/Cellar/qt/4.8.3/lib
CONFIG -= app_bundle