Closed WolsYang closed 1 year ago
Can you execute the binary file directly without using flutter-enlinx?
No, it doesn't work
$ flutter-client -b ./build/elinux/arm64/release/bundle/sample
embedder.cc (960): 'FlutterEngineCreateAOTData' returned 'kInvalidArguments'. Invalid ELF path specified.
[ERROR][flutter_project_bundle.cc(82)] Failed to load AOT data from: /usr/bin/./build/elinux/arm64/release/bundle/sample/lib/libapp.so
[ERROR][flutter_elinux_engine.cc(164)] Unable to start engine without AOT data.
Failed to create view controller.
You have to build with release mode...
flutter-elinux run -d elinux-wayland --release
Is this correct? But I didn't see any app come up on the screen. Should I try to specify output screen?
~/sample# flutter-elinux run -d elinux-wayland --release
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
�📎
Flutter 3.3.9 �• channel unknown �• unknown source
Framework �• revision b8f7f1f986 (2 weeks ago) �• 2022-11-23 06:43:51 +0900
Engine �• revision 8f2221fbef
Tools �• Dart 2.18.5 �• DevTools 2.15.0
Launching lib/main.dart on eLinux in release mode...
Building an eLinux application with wayland backend in release mode for arm64 target... 152.7s
Flutter run key commands.
h List all available interactive commands.
c Clear the screen
q Quit (terminate the application on the device).
Can you check below?
$ FLUTTER_LOG_LEVELS=TRACE ./build/elinux/arm64/release/bundle/sample -b .
Here is the output
~/sample$ FLUTTER_LOG_LEVELS=TRACE ./build/elinux/arm64/release/bundle/sample -b .
Bus error
Bus error
Please check your Wayland environment first...
I'll close this issue as no updates after my last comment.
I add flutter-wayland-client to my yocto image recipe
IMAGE_INSTALL:append = " flutter-wayland-client"
And install flutter-elinux on my machine which is imx8qxp :
Then check device
Now run sample but failed.