Skip to content

Compile openexr on Windows

Tested on version 3.2.1

Requirements

  • cmake (tested with v3.26.1)
  • gcc (tested with v10.3)

Build and compile

bash
cd <SRC_ROOT_DIR>
cmake -S . -B <SRC_ROOT_DIR>/build -DCMAKE_INSTALL_PREFIX=<SRC_ROOT_DIR>/install
cmake --build <SRC_ROOT_DIR>/build --target install --config Release

or if you using gcc and cmake on rez:

bash
rez env cmake gcc -- cmake <SRC_ROOT_DIR> --install-prefix <SRC_ROOT_DIR>/build
rez env cmake gcc -- cmake --build <SRC_ROOT_DIR>/build --target install --config Release

References