Skip to content

Build Instructions for OS X

simonfuhrmann edited this page Feb 20, 2013 · 33 revisions
  • 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 (from http://qt.nokia.com/downloads)

  • Select only QtCreator and latest Qt 4.8 libraries

  • Add qmake to $PATH: export PATH=$PATH:$HOME/QtSDK/Desktop/Qt/474/gcc/bin/

  • Clone MVE repository: git clone git://github.com/simonfuhrmann/mve.git

  • Edit mve/libs/mve/Makefile: Add include path -I/usr/X11/include (for libpng) to EXT_INCL

  • Edit mve/apps/umve/umve.pro:

    • Add linker path -L/usr/X11/lib to LIBS variable (for libpng)
    • Add QMAKE_LIBDIR_QT = ${HOME}/QtSDK/Desktop/Qt/4.8.1/gcc/lib/
    • You may also remove QMAKE_LIBDIR_QT
  • Build MVE and UMVE

  • cd mve; make

  • cd apps/umve; qmake; make; open umve.app

  • Sometimes, when qmake does not generate a Makefile but some random X-Code project, try

  • qmake -spec macx-g++ 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