Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MUSL Missing ALSA Dependency #1767

Unanswered
AidFTech asked this question in Q&A
Apr 3, 2026 · 1 comments · 1 reply
Discussion options

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?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

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 👍

You must be logged in to vote
1 reply
Comment options

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /