flathub / com.unicornsonlsd.finamp

https://flathub.org/apps/details/com.unicornsonlsd.finamp
2 stars 0 forks source link

Support platform linux-aarch64 #10

Open onny opened 1 month ago

onny commented 1 month ago

Hey, build went successfull after adding aarch64 to supported architectures. But running it fails with:

flatpak run com.unicornsonlsd.finamp
bwrap: execvp finamp: Exec format error

Related https://github.com/jmshrv/finamp/issues/766

Regards Jonas

Chaphasilor commented 1 month ago

That seems like it's still compiling it for the wrong arch. The binary uses a wrong format. What's your build environment?

onny commented 1 month ago

Thank you @Chaphasilor for the hint, also tried

flatpak-builder --arch=aarch64 --force-clean build-dir com.unicornsonlsd.finamp.yaml --repo=repo --install --user

But still the same error.

I'm running the latest PostmarketOS release, native aarch64 on the OnePlus6 phone https://wiki.postmarketos.org/wiki/OnePlus_6_(oneplus-enchilada)

onny commented 1 month ago

Ah the problem is that the flatpak build script uses prebuilt binary sources for finamp. Maybe we could build it from source? https://github.com/flathub/com.unicornsonlsd.finamp/issues/11

onny commented 1 month ago

I compiled finamp on an ubuntu arm64 v-server:

binary tarball: https://project-insanity.org/wp-content/uploads/2024/08/finamp-linux-release.tar.gz

added this tarball to the flatpak and produced https://project-insanity.org/wp-content/uploads/2024/08/finamp.flatpak

on my smartphone i get (alpinelinux arm64):

flatpak run com.unicornsonlsd.finamp
finamp: symbol lookup error: finamp: undefined symbol: g_once_init_enter_pointer