-
Notifications
You must be signed in to change notification settings - Fork 347
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
Compiling to x86_64-unknown-linux-gnu with alsa using libudev dependency #1437
Comments
Emilgardis
changed the title
Compiling from arm64 to x86_64 with alsa
Compiling to x86_64-unknown-linux-gnu with alsa using libudev dependency
Feb 6, 2024
I'm not able to replicate this, neither with v0.2.5 or using here's my try at reproducing it cargo init
cargo add libudev-sys # Cross.toml
[target.x86_64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"""apt-get update && apt-get install --assume-yes \
pkg-config:$CROSS_DEB_ARCH \
libssl-dev:$CROSS_DEB_ARCH \
ca-certificates:$CROSS_DEB_ARCH \
libasound2-dev:$CROSS_DEB_ARCH \
libpulse-dev:$CROSS_DEB_ARCH \
libdbus-1-dev:$CROSS_DEB_ARCH \
portaudio19-dev:$CROSS_DEB_ARCH \
libudev-dev:$CROSS_DEB_ARCH \
"""
] ❯ cross build --release --target x86_64-unknown-linux-gnu
Compiling pkg-config v0.3.29
Compiling libc v0.2.153
Compiling libudev-sys v0.1.4
Compiling libudev-test v0.1.0 (/project)
Finished release [optimized] target(s) in 44.24s |
Hm i'm not too sure why but the error I get now is related to alsa:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My compilation fails:
even though I added this to my
Cross.toml
:My run command is
cross build --release --target x86_64-unknown-linux-gnu
.I searched online and it looks like I might be missing from complicated linker env variables?
The text was updated successfully, but these errors were encountered: