JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.33k stars 1.18k forks source link

[Linux] musl / Alpine support #4001

Closed xdevs23 closed 2 months ago

xdevs23 commented 11 months ago

Although Skia should be able to be run on musl (instead of glibc), Skiko does not appear to be built for musl and only GNU/Linux. This means that it does not work on Alpine-based distros such as postmarketOS.

It'd be great if you could provide Compose Multiplatform not just for glibc but also for Linux distributions that use musl.

If I run a Compose Multiplatform (Desktop) application on a musl system (I tried it on postmarketOS), I get an error that ld-linux-aarch64.so.1 can't be found. Even after installing gcompat or glibc, it still does not work. It gives an error saying that the symbol __sprintf_chk can't be found by the skiko library.

I tried this on an ARM64 system so I'm not sure how this behaves on x86_64.

okushnikov commented 4 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.