Twinklebear / oidn-rs

Rust bindings to Intel's OpenImageDenoise Library
MIT License
23 stars 12 forks source link

library error #27

Open suprohub opened 2 weeks ago

suprohub commented 2 weeks ago

/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 foroidn v2.2.2 error: failed to run custom build command foroidn v2.2.2 note: 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

Twinklebear commented 2 weeks ago

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)

suprohub commented 1 week ago

its dont work

suprohub commented 1 week ago

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

suprohub commented 1 week ago

i get error NotPresent

Twinklebear commented 1 week ago

/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

suprohub commented 1 week ago

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

suprohub commented 1 week ago

uhm its works

suprohub commented 1 week ago

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

suprohub commented 1 week ago

oh no it comes back

suprohub commented 1 week ago

it compiles once and now still error

Twinklebear commented 1 week ago

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