-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: failed to run custom build command for libdeflate-sys v1.20.0
#624
Comments
Your build issue appears to be caused by using an outdated or crippled version of Interestingly, I couldn't replicate this build error when attempting to compile to WASM on a Linux host. Instead, I encountered a missing module error for the So, currently, I don't consider WebAssembly a supported target for OxiPNG. While OxiPNG itself may not prevent WebAssembly builds, its dependencies are another story. After resolving your |
Just for the record, oxipng 9.0 did build successfully in Squoosh, using wasm-pack. |
Thank you for your reply. I also tried to compile wasm after seeing the successful case in Squoosh I will try other solutions. If there is a convenient method, I will reply back. |
Not necessarily though? Frankly, targeting WebAssembly is fragile, and OxiPNG hasn't seen much love for that target since around 2020. Even if back then it worked fine, and we didn't do anything in OxiPNG proper to purposefully break that compatibility, dependencies have also been updated and changed, and as far as I know they weren't audited to guarantee WebAssembly support. This arguably is a deficiency somewhere that should be looked into, but we don't have enough information to confirm that the deficiency indeed belongs to OxiPNG. So far, the facts I've seen point to causes outside of OxiPNG's control. |
I just tried this on a linux machine and it worked fine, without errno. I think it's only needed for the |
Ah, yes, good catch! |
Hello, I have a problem compiling oxipng to wasm. I have set features = ["freestanding"], but I still get an error.
this is my cargo.toml:
This is an error message
The text was updated successfully, but these errors were encountered: