-
Notifications
You must be signed in to change notification settings - Fork 455
-
Hi, so, for the project I've been working on, I abandoned the idea of using a separate library for sockets. I think I have that working in Rust. My Buildroot Pi is missing a lot of dependencies, though, and since there is no easy way to see what those are without terminal access, I figured I would try an old recommendation and build with MUSL.
I am running apt-get install libasound2-dev as part of the prebuild but still getting this error...20260403_181615.jpg
Thoughts? Thanks in advance, sorry to keep bothering this forum! (I am still a bit new to Rust)
Update I'm thinking maybe I need a static library for ALSA- I tried creating one on the Raspberry Pi running Raspbian and copying it to /usr/lib/aarch64-linux-unknown-gnu, but that didn't work. Is there somewhere else I need to put it? Is there another command I need to run? Is there a way to check that it was even generated correctly?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
Could uou show us your Cross.toml that youve tried so far? Also please avoid taking pictures with a camera of the screen 😅 better to just copy the text as text 👍
Beta Was this translation helpful? Give feedback.
All reactions
-
Sorry about that, I posted that from my phone, that was all I had access to.
Cross.toml:
[target.aarch64-unknown-linux-musl]
pre-build = [
"dpkg --add-architecture arm64 && apt-get update && apt-get install -y libasound2-dev:arm64 libssl-dev:arm64 openssl:arm64",
]
[target.aarch64-unknown-linux-musl.env]
passthrough = [
"PKG_CONFIG_ALLOW_CROSS=1",
"PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig",
"PKG_CONFIG_SYSROOT_DIR=/"
]
There is no directory for aarch64-linux-musl on my system, at least, not that I can see.
I'm wondering if MUSL is even the best course of action here. It might be MPV missing the dependencies and not my program...
Beta Was this translation helpful? Give feedback.