Closed james-bay closed 3 years ago
If you're logged in as root: export XDG_RUNTIME_DIR=/run/user/0 export WAYLAND_DISPLAY=wayland-0
On Fri, May 7, 2021 at 8:22 AM james-bay @.***> wrote:
Can you please tell me how to run some example? I tried to make a bundle as described in https://github.com/ardera/flutter-pi However, it did not work that way:
@.***:~# flutter_wayland ~/my_app LOG: /usr/src/debug/flutter-wayland/git-r0/git/src/main.cc:61: Arg: /home/root/my_app error: XDG_RUNTIME_DIR not set in the environment. terminate called after throwing an instance of 'std::runtime_error' Bus error
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jwinarske/meta-flutter/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5R3W73GXRIDF7Q4EJHUMTTMQAU5ANCNFSM44KLMDNQ .
Thank you! Unfortunately I ran into another problem:
root@raspberrypi4-64:~# flutter_wayland ~/my_app
LOG: /usr/src/debug/flutter-wayland/git-r0/git/src/main.cc:61: Arg: /home/root/my_app
Touch Present
Keyboard Present
ERROR: /usr/src/debug/flutter-wayland/git-r0/git/src/wayland_display.cc:34: Could not find /usr/bin/icudtl.dat
ERROR: /usr/src/debug/flutter-wayland/git-r0/git/src/wayland_display.cc:88: Could not find ICU data. It should be placed next to the executable but it wasn't there.
embedder.cc (1340): 'FlutterEngineSendWindowMetricsEvent' returned 'kInvalidArguments'. Engine handle was invalid.
ERROR: /usr/src/debug/flutter-wayland/git-r0/git/src/main.cc:78: Could not update Flutter application size.
If you built flutter-engine then on target cp /usr/share/flutter/icudtl.dat to /usr/bin/
Keep in mind flutter_wayland is a proof of concept, and not a full-featured embedder. It's recommended you write your own embedder to meet your needs.
On Fri, May 7, 2021 at 8:31 AM james-bay @.***> wrote:
Thank you! Unfortunately I ran into another problem:
@.***:~# flutter_wayland ~/my_app LOG: /usr/src/debug/flutter-wayland/git-r0/git/src/main.cc:61: Arg: /home/root/my_app Touch Present Keyboard Present ERROR: /usr/src/debug/flutter-wayland/git-r0/git/src/wayland_display.cc:34: Could not find /usr/bin/icudtl.dat ERROR: /usr/src/debug/flutter-wayland/git-r0/git/src/wayland_display.cc:88: Could not find ICU data. It should be placed next to the executable but it wasn't there.embedder.cc (1340): 'FlutterEngineSendWindowMetricsEvent' returned 'kInvalidArguments'. Engine handle was invalid.ERROR: /usr/src/debug/flutter-wayland/git-r0/git/src/main.cc:78: Could not update Flutter application size.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jwinarske/meta-flutter/issues/17#issuecomment-834529143, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5R3WY7NQ2J5ARWJV5RCYDTMQBUTANCNFSM44KLMDNQ .
@jwinarske thank you for help!
I've added recipes back in for Flutter Gallery and Flutter SDK. The Gallery recipe generates an AOT image.
This may help or confuse things :) I will add more in the way of documentation soon.
Let me know if there is something you would like me to add to the README.md, otherwise I will close this issue.
closing since I just opened up discussions
Can you please tell me how to run some example? I tried to make a bundle as described in https://github.com/ardera/flutter-pi However, it did not work that way: