nlfiedler / magick-rust

Rust bindings for ImageMagick
https://crates.io/crates/magick_rust
Apache License 2.0
253 stars 68 forks source link

Build error: `you should set MAGICKCORE_HDRI_ENABLE` (Debian Experimental) #131

Closed Des-Nerger closed 2 weeks ago

Des-Nerger commented 3 weeks ago

magick_rust_build_error_MAGICKCORE_HDRI_ENABLE.log

nlfiedler commented 3 weeks ago

For this particular platform, you may need to add default-features = false to the magick-rust dependency. The crate is building fine on macOS and the docker image, so it seems specific to this platform.

Des-Nerger commented 3 weeks ago

I tried magick_rust = { version = "1.0.0", default-features = false }, but unfortunately it doesn't seem to have any effect: the build log and error gotten are exactly the same.

nlfiedler commented 2 weeks ago

I'd like to debug this further. What Debian release are you using, and version of ImageMagick? Any other details that might make a difference?

Des-Nerger commented 2 weeks ago

The problem was caused by the Debian package not supplying the MagickCore-config script. I added a workaround (see the pull request above).