Open plafer opened 3 years ago
Running cargo update
updated the culprit: url
from 1.7.0
to 1.7.2
.
@plafer I had the same issue on Alpine. Installing dbus helped me. I found this Issue https://github.com/greshake/i3status-rust/issues/194 so maybe that helps you.
deleting the Cargo.lock helped me
All of the previous solutions looked relevant at different points. Conclusion: must run cargo update
before building and also have a recent version of cargo
in the system that is running the build. I had 1.74 on my machine but scripts/local-build.sh
runs an old Docker image with cargo 0.24. There is no release of the image in the last 6 years but it was possible to enter the image and (since regular rustup update
did not affect the cargo version there) reinstall Rust.
docker run -it -v $PWD:/work majorz/rust-amd64:rust-1.24.1 bash
rustup self uninstall
curl https://sh.rustup.rs/ -sSf | sh
cargo --version # cargo 1.74.1 (ecb9851af 2023-10-18).
rustup target add x86_64-unknown-linux-gnu
cargo build --release --target=/x86_64-unknown-linux-gnu
local-build.sh
does not seem worth much as-is. For anyone seeing this, I recommend sticking to basic cargo build
and trying the last two lines on your host to build the desired target.
I have made myself this build script for cross building for arm64 on Debian Bullseye. It doesn't use docker. Perhaps it is of use to someone. https://github.com/hupster/wifi-connect-build
I tried 2 different ways to build, and both failed. What am I doing wrong?
On Ubuntu 20.04, x86_64.
Try 1
Try 2