Bulding Inviwo on Mac OSX
To build from source, use homebrew to install packages.
Required packages
XCode Download
CMake >= 2.8.4 brew install cmake
* Qt5 >= 5.3 brew install qt5
Optional packages
Python3 brew install python3
HDF5 brew install hdf5 --with-cxx --c++11
Setup Instructions
-
Clone all repos to your computer. Remember that you choose the parent directory of the repo, such that choosing ~/Inviwo for inviwo-dev will put your files in ~/Inviwo/inviwo-dev
-
Run CMake (terminal or gui) and run configure using the inviwo-dev directory as your source, and a build directory of your choice outside of the source code. For CMake to find Qt5 automatically we have to add the Qt5 install path to CMAKE_PREFIX_PATH. This can be done by:
export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.4.0/; open /Applications/CMake.app
-
Add path to modules outside of inviwo-dev in IVW_EXTERNAL_MODULES in the format of "~/Inviwo/otherrepo/modules;~/mysite/myrepo/mymodules". Run configure.
-
Then run "make" on your build directory and you will find the application in build/bin/inviwo.
-
DONE!
Notes * Edit the ALL_BUILD Scheme in XCode: * Under Run/Info set the Executable to inviwo.exe * Under Run/Options make sure that "Document Versions" is deselected