Skip to content

Build Instructions for OS X

simonfuhrmann edited this page Feb 20, 2013 · 33 revisions

General build instructions

Toubleshooting

  • PNG library missing?
  • For MVE: Edit mve/libs/mve/Makefile, add include path -I/usr/X11/include (for libpng) to EXT_INCL
  • For UMVE: Edit mve/apps/umve/umve.pro, add linker path -L/usr/X11/lib to LIBS variable
  • Qt libraries missing?
    • Add QMAKE_LIBDIR_QT = ${HOME}/QtSDK/Desktop/Qt/4.8.1/gcc/lib/
    • You may also remove QMAKE_LIBDIR_QT
  • 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 a Makefile:
  • 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