Skip to content

64bit Ubuntu 19.10 support? #33

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

Closed
Radagan opened this issue Feb 10, 2020 · 8 comments
Closed

64bit Ubuntu 19.10 support? #33

Radagan opened this issue Feb 10, 2020 · 8 comments

Comments

@Radagan
Copy link

Radagan commented Feb 10, 2020

I just found this project and I would very much like to add a Flutter based UI to my code running on RPi 3B+ and RPi 4 systems under Ubuntu 19.10 (64bit). I read in your docs that 64bit support would be easy but isn't there yet. Is this possible with flutter-pi in the near future?

@ardera
Copy link
Owner

ardera commented Feb 10, 2020

That's right, I can implement 64 bit support if you want
But are you running your ubuntu in headless mode? (i.e. ubuntu server, or ubuntu desktop with some modifications) If not, this project is not for you.
flutter-pi targets use cases where you want to run your flutter app fullscreen without any desktop environment running in the background (X11, Wayland). Otherwise, just use official linux desktop embedding and enjoy better plugin support.
You also need to make sure Ubuntu has hardware acceleration for graphics, that's a requirement for flutter-pi.

Actually, this project should really be called flutter-embedded-linux because it doesn't really feature anything Pi-specific other than some hacks for OpenGL and the fact that I am testing it on a Pi 4.

@Radagan
Copy link
Author

Radagan commented Feb 10, 2020

You have it exactly--I'm running headless. My intention is to have a local touchscreen display for a dedicated application running on a RPi using the official 7" touchscreen from Raspberry Pi. The application is written in C++, so dart/ffi will also be a part of the challenge...

I will have to check on hardware acceleration for graphics, but I believe it's in there. Ubuntu 19.10 has very good support for the pi, but I've only recently moved up from Ubuntu 19.04.

@Radagan
Copy link
Author

Radagan commented Feb 10, 2020

Actually, this project should really be called flutter-embedded-linux because it doesn't really feature anything Pi-specific other than some hacks for OpenGL and the fact that I am testing it on a Pi 4.

That's very exciting! My application is only running on the RPi because it's a great board to prototype on--inexpensive, powerful, etc. But my intent is general embedded Linux.

@ardera
Copy link
Owner

ardera commented Feb 10, 2020

Okay, I'll start working on 64bit support then

so dart/ffi will also be a part of the challenge...

I'd double check if dart:ffi works on your platform. Last time I tried (albeit on Raspbian) it failed because the arm hardfloat ABI was not supported at that point. It's supported now, but it probably hasn't landed in flutter stable yet. The check is simple, if it's not supported it will fail at the import of the dart:ffi library.

If that doesn't work, there's still platform channels; but dart:ffi (if it works) is to be preferred for lots of reasons.

@Radagan
Copy link
Author

Radagan commented Feb 17, 2020

Thank you for being willing to add this. I don't mind working on dev or beta channels as this is a proof of concept for a project.

@ardera
Copy link
Owner

ardera commented Feb 26, 2020

should work now, but I didn't test it.

@ardera ardera closed this as completed Feb 26, 2020
@Radagan
Copy link
Author

Radagan commented Feb 26, 2020 via email

@ardera
Copy link
Owner

ardera commented Feb 26, 2020

no problem 😄

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