We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[dependencies] libwebp2 = { version = "0.0.2", features = ["download"] }
cargo build failed
I can successfully build test for libwebp2, but it fails to build when it is used as a dependency for other crates.
No response
The text was updated successfully, but these errors were encountered:
The build.rs file of the libwebp2 crate uses the code to link to a static library with an absolute path.
println!("cargo:rustc-link-arg={}", libpath.display());
Sorry, something went wrong.
#9557 (comment)
This looks like an issue with the libwebp2 crate, which appears to have all versions yanked.
libwebp2
cargo:rustc-link-arg causes rustc to pass an additional raw argument to the linker. Passing an absolute path alone here is likely incorrect.
cargo:rustc-link-arg
rustc
The correct solution is to use cargo:rustc-link-lib=LIB to link the native library.
No branches or pull requests
Problem
cargo build failed
I can successfully build test for libwebp2, but it fails to build when it is used as a dependency for other crates.
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: