Closed luckfamousa closed 6 months ago
Did you change the default feature flags? By default it should be using the openjpeg-sys
backend (C code) instead of openjp2
backend (Rust code). I don't have a Mac to test on, but I will try that docker file.
I was able to use that Dockerfile
to build jpeg2k
with both backends (openjpeg-sys
and openjp2
). I don't really recommend using the openjp2
backend yet, it is still mostly unsafe Rust code (converted from C code).
If you need sandboxing to process Jpeg2000 images, I would recommend using this wrapper: https://github.com/Neopallium/jpeg2k-sandboxed
It compiles the Jpeg2k code into a WebAssembly module and then runs it inside a wasmtime
sandbox.
I have published an update to openjp2
that should fix that error (0.3.1
).
You can update your local Cargo.lock
to pull in the fix:
cargo update -p openjp2
Let me know if it still fails to compile.
When I try to build an app using jpeg2k using Docker on a M2 Mac I get a number of errors of this type:
The Dockerfile I am using for building: