gfx-rs / wgpu-native

Native WebGPU implementation based on wgpu-core
Apache License 2.0
869 stars 104 forks source link

musl support #414

Open Sahnvour opened 2 months ago

Sahnvour commented 2 months ago

Trying to use the prebuilt releases on a musl-based distribution, such as Alpine Linux, gives

Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by [...]/libwgpu_native.so)

I believe this is because the library expects glibc. Would it be feasible to provide builds that work on musl too?

almarklein commented 2 months ago

Yes, this makes sense! Let's get #405 merged first though.

cwfitzgerald commented 2 months ago

Does musl support dynamically loaded libraries? We need that for vulkan support

Sahnvour commented 2 months ago

Do you mean dlopen/dynamic linker? I guess so according to https://wiki.musl-libc.org/design-concepts

almarklein commented 1 month ago

@Sahnvour are you interested to write a PR that adds musl support?

Sahnvour commented 1 month ago

Unfortunately that's not something I have the time and knowledge to undertake.