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

provide arm64 compiled version of gen_snapshot_linux_x64_release tool #13

Open
moham96 opened this issue Aug 22, 2022 · 5 comments
Open

Comments

@moham96
Copy link

moham96 commented Aug 22, 2022

Hello,

Is it possible to provide an arm64 version of gen_snapshot_linux_x64_release? I have an arm64 laptop and want to generate the app.so on it instead of firing up my desktop PC.

Regards

@ardera
Copy link
Owner

ardera commented Aug 22, 2022

Hey, theoretically that's possible but not sure I have a beefy enough ARM64 machine for that.
Github CI doesn't provide one at least and could be it takes ages to build on pi 4.

For now you'll have to use qemu-user-static I'm afraid.

@moham96
Copy link
Author

moham96 commented Aug 23, 2022

Hey, theoretically that's possible but not sure I have a beefy enough ARM64 machine for that. Github CI doesn't provide one at least and could be it takes ages to build on pi 4.

For now you'll have to use qemu-user-static I'm afraid.

Is the source code of the tool available ? so we can try to compile it ourselves

@ardera
Copy link
Owner

ardera commented Aug 23, 2022

gen_snapshot is built as part of the flutter engine build.

For instructions see:

@moham96
Copy link
Author

moham96 commented Aug 23, 2022

Hey, theoretically that's possible but not sure I have a beefy enough ARM64 machine for that. Github CI doesn't provide one at least and could be it takes ages to build on pi 4.

For now you'll have to use qemu-user-static I'm afraid.

on second thought, doesn't GitHub ci support cross-compiling?

@ardera
Copy link
Owner

ardera commented Aug 23, 2022

of course, it's just a linux machine (you can do everything you can do on your home computer as well), but I am already cross-compiling it: the gen_snapshot that generates snapshots for armv7 on a x64 linux machine is a side-product of cross-compiling the engine for armv7.

If you want to gen_snapshot itself to run on arm64 now you're basically cross-cross-compiling, which is not supported by the flutter build. Might be possible with some hacking but that'll probably break all the time.

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