Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support platform linux-aarch64 #10

Open
onny opened this issue Aug 3, 2024 · 4 comments
Open

Support platform linux-aarch64 #10

onny opened this issue Aug 3, 2024 · 4 comments

Comments

@onny
Copy link

onny commented Aug 3, 2024

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 jmshrv/finamp#766

Regards
Jonas

@Chaphasilor
Copy link
Collaborator

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

@onny
Copy link
Author

onny commented Aug 3, 2024

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
Copy link
Author

onny commented Aug 3, 2024

Ah the problem is that the flatpak build script uses prebuilt binary sources for finamp. Maybe we could build it from source? #11

@onny
Copy link
Author

onny commented Aug 10, 2024

I compiled finamp on an ubuntu arm64 v-server:

  • git checkout flatpak github repo
  • git checkout version 3.19.X
  • checkout finamp sources
  • checkout 0.9.9-beta
  • add build dependencies with apt
  • build

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants