Building SpRay on macOS
Install an OpenMP library. We show an example of installing libomp
using Homebrew
.
brew install libomp
Build and install Embree. Make sure your Embree installation has the lib
directory. We tested SpRay with Embree v2.17.1.
Check out SpRay with all submodules.
git clone https://github.com/TACC/SpRay.git
cd SpRay
git submodule init
git submodule update
Or simply,
git clone --recurse-submodules https://github.com/TACC/SpRay.git
cd SpRay
Create a directory and build.
mkdir build
cd build
cmake -DOpenMP_INSTALL_DIR=$(brew --prefix libomp) -DEMBREE_INSTALL_DIR=<path_to_embree_install> ..
make
If you wish to install SpRay,
make install