oidn-rs icon indicating copy to clipboard operation
oidn-rs copied to clipboard

library error

Open suprohub opened this issue 1 year ago • 11 comments

/home/hom/.cargo/bin/cargo check --message-format json --workspace --all-targets -Z unstable-options --keep-going Compiling oidn v2.2.2 error: failed to run custom build command for oidn v2.2.2error: failed to run custom build command foroidn v2.2.2note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation. Caused by: process didn't exit successfully:/home/hom/RustroverProjects/pio/target/debug/build/oidn-c895223cfa369538/build-script-build(exit status: 101) --- stdout cargo:error=Please set OIDN_DIR=<path to OpenImageDenoise install root> --- stderr thread 'main' panicked at /home/hom/.cargo/registry/src/index.crates.io-6f17d22bba15001f/oidn-2.2.2/build.rs:12:13: Failed to find OpenImageDenoise stack backtrace: 0: rust_begin_unwind at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:647:5 1: core::panicking::panic_fmt at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/panicking.rs:72:14 2: build_script_build::main 3: core::ops::function::FnOnce::call_once note: Some details are omitted, run withRUST_BACKTRACE=fullfor a verbose backtrace. but i install openimagedenoise lib on arch linux

suprohub avatar Apr 18 '24 15:04 suprohub

You'll still need to set OIDN_DIR to the path to the OIDN library for the build script to find it: https://github.com/Twinklebear/oidn-rs/blob/master/build.rs#L6-L9 , it doesn't check if the file exists in your system library headers. So if you installed it on your system, you'd have something like /usr/local/ or something (the path without the lib prefix)

Twinklebear avatar Apr 18 '24 15:04 Twinklebear

its dont work

suprohub avatar Apr 18 '24 17:04 suprohub

i write export OIDN_DIR=/usr/local and i still get error

suprohub avatar Apr 18 '24 17:04 suprohub

i get error NotPresent

suprohub avatar Apr 18 '24 17:04 suprohub

/usr/local/ is just an example, arch may have not installed it under that path. You should check where libOpenImageDenoise is located on your system

Twinklebear avatar Apr 18 '24 17:04 Twinklebear

its /lib, so in OIDN_DIR i put / ???

suprohub avatar Apr 18 '24 18:04 suprohub

uhm its works

suprohub avatar Apr 18 '24 18:04 suprohub

delete put lib in code, before send issue i try set /lib/

suprohub avatar Apr 18 '24 18:04 suprohub

oh no it comes back

suprohub avatar Apr 18 '24 18:04 suprohub

it compiles once and now still error

suprohub avatar Apr 18 '24 18:04 suprohub

With the same error? You need to have that environment variable set each time when building

Twinklebear avatar Apr 21 '24 15:04 Twinklebear