Skip to content

Instantly share code, notes, and snippets.

@egpbos
Created January 17, 2018 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egpbos/d682cdf0188c85eae89c071bdb92ac38 to your computer and use it in GitHub Desktop.
Save egpbos/d682cdf0188c85eae89c071bdb92ac38 to your computer and use it in GitHub Desktop.
Installing xtensor-io on macOS

Installing xtensor-io on macOS high sierra

Do all of this in a conda env

conda create -n this_env
source activate this_env

Install conda dependencies

conda install boost=1.65
conda install 'cmake>=3.9.3'  # for boost >=1.65

Build and install ilmbase

tar xzf ilmbase-2.2.0.tar.gz
cd ilmbase-2.2.0
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
make -j3
make install

Build and install openexr

tar xzf openexr-2.2.0.tar.gz
cd openexr-2.2.0
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DILMBASE_PACKAGE_PREFIX=$CONDA_PREFIX
make -j3
make install

Build and install openimageio

git clone https://github.com/OpenImageIO/oiio
cd oiio
mkdir build
cd build
cmake .. -DUSE_FFMPEG=ON -DOIIO_BUILD_TOOLS=OFF -DOIIO_BUILD_TESTS=OFF -DUSE_PYTHON=OFF -DUSE_OPENCV=OFF -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_SYSTEM_IGNORE_PATH=/usr/lib  -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_C_COMPILER=/usr/bin/cc -DCMAKE_CXX_COMPILER=/usr/bin/c++
make -j3
make install

Install xtensor-io and build and run tests

git clone //github.com/QuantStack/xtensor-io.git
cd xtensor-io
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DDOWNLOAD_GTEST=ON
make
make install
cd test
./test_xtensor_io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment