iris icon indicating copy to clipboard operation
iris copied to clipboard

Cargo build cannot find OpenEXR

Open MarcRuble opened this issue 4 years ago • 0 comments

Hi,

I'm very new to Rust but would like to try out the raytracer. When I try to cargo build the current version of the code, I get the following error:

cargo build
   Compiling libc v0.2.85
   Compiling proc-macro2 v1.0.24
   Compiling cc v1.0.66
   Compiling pkg-config v0.3.19
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling sobol_burley v0.1.0
   Compiling once_cell v1.5.2
   Compiling half v1.7.1
   Compiling num_cpus v1.13.0
   Compiling quote v1.0.8
   Compiling openexr-sys v0.7.1
error: failed to run custom build command for `openexr-sys v0.7.1`

Caused by:
  process didn't exit successfully: `<mylocalpath>\iris\target\debug\build\openexr-sys-d388370f5641f6cc\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=OPENEXR_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENEXR_STATIC
  cargo:rerun-if-env-changed=OPENEXR_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'couldn't find OpenEXR: environment variable OPENEXR_DIR is unset and pkg-config failed: Failed to run `"pkg-config" "--libs" "--cflags" "OpenEXR" "OpenEXR >= 2.0.0"`: The system cannot find the file specified. (os error 2)', C:\Users\Marc\.cargo\registry\src\github.com-1ecc6299db9ec823\openexr-sys-0.7.1\build.rs:32:21
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

I guess this has something to do with the problem mentioned here: https://githubmemory.com/repo/cessen/openexr-rs/issues/48 Is there any workaround for building and running Iris right now?

Thanks a lot and best regards, Marc

MarcRuble avatar Nov 19 '21 19:11 MarcRuble