Open fayfive opened 2 years ago
You should paste your log.
I have FLUTTER_LOG_LEVELS=TRACE
. But it just print Failed to create view controller
.
or where is the log?
[root@RK356X:~/bundle]# FLUTTER_LOG_LEVELS=TRACE FLUTTER_DRM_DEVICE="/dev/dri/ca
rd1" /root/bundle/elinux --bundle=/root/bundle
Failed to create view controller.
Please use debug builds.
flutter-elinux build elinux --target-arch=arm64 --target-sysroot=~/ubuntu18-arm64-sysroot/ --target-backend-type=gbm --debug
HA! I see ^_^
[root@RK356X:~/bundle]# FLUTTER_LOG_LEVELS=TRACE FLUTTER_DRM_DEVICE="/dev/dri/ca
rd1" /root/bundle/elinux --bundle=/root/bundle
[ERROR][ConfigureDisplay(53)] Couldn't get resources
[ERROR][CreateRenderSurface(118)] Failed to create the native window
Failed to create view controller.
According to the log message, drmModeGetResources
failed. I don't know your device, "/dev/dri/card1" is correct?
I have tried
[root@RK356X:~/bundle]# FLUTTER_LOG_LEVELS=TRACE FLUTTER_DRM_DEVICE="/dev/dri/ca
rd0" /root/bundle/elinux --bundle=/root/bundle
[INFO][ConfigureDisplay(71)] resolution: 1280x800
/root/bundle/elinux: symbol lookup error: /root/bundle/lib/libflutter_elinux_gbm.so: undefined symbol: drmIsMaste
But there is error drmIsMaste
It seem to be right when you said that
"/dev/dri/card1" is correct
Can you please comment-out drmIsMaster
in https://github.com/sony/flutter-embedded-linux/blob/master/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc#L29 and try again?
Or can you update your kernel version to more newest version?
Or can you update your kernel version to more newest version?
Linux RK356X 4.19.206
Maybe I can't update. Because I don't have all the drivers of this official kernel.
I just want to see the result of elinux flutter. So I don't compile it.
I see it has no the api. Can I update the libdrm to fix it?
I think the first one is easier than building of the libdrm. Can you try it? After modifying the source file, you can build libflutter_elinux_gbm.so
by the following steps in arm64 docker, and replace /root/bundle/lib/libflutter_elinux_gbm.so
with the new libflutter_elinux_gbm.so
.
$ cmake -DBUILD_ELINUX_SO=ON -DBACKEND_TYPE=DRM-GBM -DCMAKE_BUILD_TYPE=Release -DENABLE_ELINUX_EMBEDDER_LOG=ON -DFLUTTER_RELEASE=OFF ..
flutter-embedded-linux/build$ cmake -DBUILD_ELINUX_SO=ON -DBACKEND_TYPE=DRM-GBM -DCMAKE_BUILD_TYPE=Release -DENABLE_ELINUX_EMBEDDER_LOG=ON -DFLUTTER_RELEASE=OFF ..
-- The CXX compiler identification is Clang 14.0.0
-- The C compiler identification is Clang 14.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'egl'
-- No package 'egl' found
CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:603 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:825 (_pkg_check_modules_internal)
cmake/package.cmake:6 (pkg_check_modules)
CMakeLists.txt:41 (include)
-- Configuring incomplete, errors occurred!
See also "/home/alfred/working/da/flutter-embedded-linux/build/CMakeFiles/CMakeOutput.log".
Do I need to set the sysroot?
I need to cross compile, it seem to have no sysroot
option?
After modifying the source file, you can build libflutter_elinux_gbm.so by the following steps in arm64 docker,
Simply, you can build .so file for arm64 on arm64 docker. No sysroot as it's self build on arm64.
That means I must put the source to the docker, and compile it?
Yes, that's right. Because it's easy to build than cross-buildings.
HA! It's too slow.
[ 94%] Building CXX object CMakeFiles/flutter_elinux_gbm.dir/src/flutter/shell/platform/common/client_wrapper/standard_codec.cc.o
make[2]: *** No rule to make target 'libflutter_engine.so', needed by 'libflutter_elinux_gbm.so'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 97%] Building CXX object CMakeFiles/flutter_elinux_gbm.dir/src/flutter/shell/platform/common/client_wrapper/plugin_registrar.cc.o
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/flutter_elinux_gbm.dir/all' failed
make[1]: *** [CMakeFiles/flutter_elinux_gbm.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
But it's failed
Please copy libflutter_engine.so
(aarch64 version) to current directory in the docker.
[root@RK356X:~/bundle]# FLUTTER_LOG_LEVELS=TRACE FLUTTER_DRM_DEVICE="/dev/dri/ca
rd0" /root/bundle/elinux --bundle=/root/bundle
[INFO][ConfigureDisplay(71)] resolution: 1280x800
[ERROR][EnvironmentEgl(22)] Failed to get the EGL display: eglGetError: EGL_SUCCESS
[ERROR][ContextEgl(33)] Failed to choose EGL surface config: eglGetError: EGL_BAD_DISPLAY
[ERROR][CreateOnscreenSurface(71)] Failed to create EGL window surface: eglGetError: EGL_BAD_DISPLAY
Failed to create view controller.
eglGetDisplay
failed on your device, but I'm not sure why it failed. Your device supports OpenGL ES and EGL?
[ERROR][EnvironmentEgl(22)] Failed to get the EGL display: eglGetError: EGL_SUCCESS
this one is error?
Yes.
The device has tow cards card0
and card1
Have you set DISPLAY
env? Also x11 or wayland is running on your device?
[root@RK356X:~/bundle]# env
USER=root
GST_V4L2_PREFERRED_FOURCC=NV12:YU12:NV16:YUY2
WESTON_DISABLE_ATOMIC=1
WESTON_DRM_DISABLE_MODIFIER=1
SHLVL=3
OLDPWD=/
HOME=/
PIXMAN_USE_RGA=1
PAGER=/bin/more
GST_VIDEO_CONVERT_USE_RGA=1
PS1=[\u@\h:\w]#
QT_GSTREAMER_PLAYBIN=playbin3
QT_GSTREAMER_WIDGET_VIDEOSINK=waylandsink
TERM=vt102
WESTON_DRM_KEEP_RATIO=1
GST_VIDEO_CONVERT_PREFERRED_FORMAT=NV12:NV16:I420:YUY2
PATH=/bin:/sbin:/usr/bin:/usr/sbin
XDG_RUNTIME_DIR=/var/run
GST_DEBUG_NO_COLOR=1
GST_V4L2_USE_LIBV4L2=1
SHELL=/bin/sh
storagemedia=emmc
PWD=/root/bundle
QT_QPA_PLATFORM=wayland
WESTON_DRM_MIRROR=1
PREFERED_VIDEOSINK=waylandsink
QT_GSTREAMER_WINDOW_VIDEOSINK=waylandsink
GST_VIDEO_FLIP_USE_RGA=1
EDITOR=/bin/vi
Is it here? I don't know how to see what you said. The default demo is weston qt.
I find that if I turn on weston and the elinux change to flutter_wayland.so
. It works well. That means it has wayland?
And I find that cpu is high performance.
Did you stop Wayland & Weston before running flutter for DRM? see https://github.com/sony/flutter-embedded-linux/wiki/How-to-run-Flutter-apps#2-run-with-drm-backend
And I find that cpu is high performance.
Because you are using debug mode.
if flutter_wayland.so
I don't stop the weston.
if flutter_gbm.so
I stop the weston, but I don't know how to stop wayland.
see https://github.com/sony/flutter-embedded-linux/wiki/How-to-run-Flutter-apps#2-run-with-drm-backend
I see that $ Ctrl + Alt + F3 # Switching to CUI
but I am elinux not ubuntu. I stop weston is ok? Ctrl + Alt + F3
doesn't work for the system.
Yes. Please don't launch any window manager using DRM.
Yes. Please don't launch any window manager using DRM.
But it'still
[root@RK356X:~/bundle]# FLUTTER_LOG_LEVELS=TRACE FLUTTER_DRM_DEVICE="/dev/dri/ca
rd0" /root/bundle/elinux --bundle=/root/bundle
[INFO][ConfigureDisplay(71)] resolution: 1280x800
[ERROR][EnvironmentEgl(22)] Failed to get the EGL display: eglGetError: EGL_SUCCESS
[ERROR][ContextEgl(33)] Failed to choose EGL surface config: eglGetError: EGL_BAD_DISPLAY
[ERROR][CreateOnscreenSurface(71)] Failed to create EGL window surface: eglGetError: EGL_BAD_DISPLAY
Failed to create view controller.
~_~
Hmm, I'm afraid that I have no idea to resolve it. It would be great if you investigate/debug this issue.
It seem that src/flutter/shell/platform/linux_embedded/surface/environment_egl_stream.cc
is not compiled, I can't see environment_egl_stream.cc.o
?
Which option can compile it?
Hi I'm getting a very similar issue when trying to run inside a docker container on a Jetson Nano host. Here is my command/output:
ag@g010-0101-nano:~/mobile/dashboard$ ./build/elinux/arm64/debug/bundle/dashboard
[WARNING][CreateRenderSurface(111)] FLUTTER_DRM_DEVICE is not set, use /dev/dri/card0
[ERROR][NativeWindowDrm(22)] Couldn't open /dev/dri/card0
[ERROR][CreateRenderSurface(118)] Failed to create the native window
Failed to create view controller.
But the card0
device is mounted to the container:
ag@g010-0101-nano:~/mobile/dashboard$ ls /dev/dri/
card0 renderD128
Is there anything else i can provide to help debug?
Can you try the same thing outside the docker container?
Looks like it was a permission issue, I added --group-add=video
to my docker run
and now it displays. However the container is not able to capture touchscreen input events even with --device=/dev/input/ --group-add=input
mounted.
Can you try the same thing outside the docker container?
Both display and input are working when running outside of the container.
Okay. BTW, which JetPack version are you using?
After some more debugging this is another permission issue it seems. Added -v /run/udev/data:/run/udev/data
to give libinput
ability to list devices and then the output is:
[ERROR][operator()(208)] Failed to open /dev/input/event0, error: Permission denied
[ERROR][operator()(208)] Failed to open /dev/input/event2, error: Permission denied
[ERROR][operator()(208)] Failed to open /dev/input/event1, error: Permission denied
I then added --user root
and it worked. Trying to figure out now how to give other users permission. --group-add=input
is insufficient.
which JetPack version are you using?
Jetpack is 4.9.253-tegra
Thanks for the information.
Hi I'm getting a very similar issue when trying to run inside a docker container on a Jetson Nano host. Here is my command/output:
ag@g010-0101-nano:~/mobile/dashboard$ ./build/elinux/arm64/debug/bundle/dashboard [WARNING][CreateRenderSurface(111)] FLUTTER_DRM_DEVICE is not set, use /dev/dri/card0 [ERROR][NativeWindowDrm(22)] Couldn't open /dev/dri/card0 [ERROR][CreateRenderSurface(118)] Failed to create the native window Failed to create view controller.
But the
card0
device is mounted to the container:ag@g010-0101-nano:~/mobile/dashboard$ ls /dev/dri/ card0 renderD128
Is there anything else i can provide to help debug?
@sullivanj91
Hello! How can you get the path /dev/dri/card0
on jetson? I can't find the path.
Here is the link that jetson doesn't have the "/dev/dri/card0".
https://forums.developer.nvidia.com/t/why-doesnt-jetson-have-the-directory-of-dev-dri-drm/218578
I'm using jp4.3 and jp4.6
After setting up the proxy, flutter-elinux build directly under demo, and run. / [app_name]-- bundle=~/build/elinux/arm64/release/bundle will prompt the same problem in the ~ / build/elinux/arm64/release/bundle path. Then use this article to change the Cmake.txt and place the so library and then re-execute build flutter-elinux build elinux-- target-arch=arm64-- target-sysroot=/-- target-backend-type=gbm-- verbose
.
Stuck in [+ 14 ms] release_elinux_application: Complete.
[+ 916 ms] Persisting file store.
[+ 62 ms] Done persisting file store.
[+ 682ms] executing: [/ media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/build/elinux/arm64/release/] cmake-DCMAKE_BUILD_TYPE=Release-DFLUTTER_TARGET_BACKEND_TYPE=gbm.
-DFLUTTER_TARGET_PLATFORM=elinux-arm64 / media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/elinux
linaro@linaro-alip:/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample$ ls README.md analysis_options.yaml android build elinux elinux_sample.iml ios lib linux macos pubspec.lock pubspec.yaml test web windows linaro@linaro-alip:/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample$ flutter-elinux build elinux --target-arch=arm64 --target-sysroot=/ --target-backend-type=gbm --verbose Flutter 3.10.5 • channel unknown • unknown source Framework • revision 796c8ef792 (5 weeks ago) • 2023-06-13 15:51:02 -0700 Engine • revision 45f6e00911 Tools • Dart 3.0.5 • DevTools 2.23.1 [ +385 ms] executing: [/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +268 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ +2 ms] 796c8ef79279f9c774545b3771238c3098dbefab [ +5 ms] executing: [/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/] git tag --points-at 796c8ef79279f9c774545b3771238c3098dbefab [ +104 ms] Exit code 0 from: git tag --points-at 796c8ef79279f9c774545b3771238c3098dbefab [ +10 ms] 3.10.5 [ +35 ms] executing: [/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/] git rev-parse --abbrev-ref HEAD [ +57 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ +1 ms] HEAD [ +4 ms] executing: [/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/] git rev-parse --abbrev-ref --symbolic @{upstream} [ +46 ms] Exit code 128 from: git rev-parse --abbrev-ref --symbolic @{upstream} [ +1 ms] fatal: HEAD does not point to a branch [ +203 ms] Unable to locate an Android SDK. [ +90 ms] executing: uname -m [ +41 ms] Exit code 0 from: uname -m [ +1 ms] aarch64 [+2122 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +13 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +12 ms] Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! [ +126 ms] Artifact Instance of 'ELinuxEngineArtifacts' is not required, skipping update. [ +5 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ +1 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update. [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ +13 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'PubDependencies' is not required, skipping update. [ +75 ms] Skipping pub get: version match. [ +767 ms] Generating /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +193 ms] Building an eLinux application with gbm backend in release mode for arm64 target... [ +19 ms] Initializing file store [ +114 ms] Skipping target: gen_localizations [ +68 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/.dart_tool/package_config_subset} [ +32 ms] elinux_plugins: Starting due to {} [ +21 ms] elinux_plugins: Complete [ +150 ms] gen_dart_plugin_registrant: Complete [ +5 ms] kernel_snapshot: Starting due to {} [ +55 ms] /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk_product/ --target=flutter --no-print-incremental-dependencies -Ddart.vm.profile=false -Ddart.vm.product=true --aot --tfa --packages /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/.dart_tool/package_config.json --output-dill /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/.dart_tool/flutter_build/aa4af8232f7b74f85f21234707fd0e72/app.dill --depfile /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/.dart_tool/flutter_build/aa4af8232f7b74f85f21234707fd0e72/kernel_snapshot.d --verbosity=error package:elinux_sample/main.dart [+177672 ms] kernel_snapshot: Complete [+2925 ms] elinux_aot_elf: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/packages/flutter_tools/lib/src/buildsystem/targets/common.dart,/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux sample/.dart_tool/flutter_build/aa4af8232f7b74f85f21234707fd0e72/app.dill,/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/internal/engine.version,/media/linaro/ef0e9ea8-87 3f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/internal/engine.version,/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/internal/engine.version} [ +19 ms] targetingApplePlatform = false [ +2 ms] extractAppleDebugSymbols = true [ +2 ms] Will strip AOT snapshot during build. [ +24 ms] executing: /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/artifacts/engine/linux-arm64-release/gen_snapshot --deterministic --snapshot_kind=app-aot-elf --elf=/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/.dart_tool/flutter_build/aa4af8232f7b74f85f21234707fd0e72/app.so --strip /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/.dart_tool/flutter_build/aa4af8232f7b74f85f21234707fd0e72/app.dill [+32983 ms] elinux_aot_elf: Complete [ +99 ms] release_elinux_application: Starting due to {} [ +785 ms] shaderc command: [/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/artifacts/engine/linux-arm64/impellerc, --sksl, --iplr, --sl=/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/build/elinux/flutter_assets/shaders/ink_sparkle.frag, --spirv=/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/build/elinux/flutter_assets/shaders/ink_sparkle.frag.spirv, --input=/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag, --input-type=frag, --include=/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/packages/flutter/lib/src/material/shaders, --include=/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/artifacts/engine/linux-arm64/shader_lib] [ +314 ms] Running command: /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/artifacts/engine/linux-arm64/const_finder.dart.snapshot --kernel-file /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/.dart_tool/flutter_build/aa4af8232f7b74f85f21234707fd0e72/app.dill --class-library-uri package:flutter/src/widgets/icon_data.dart --class-name IconData --annotation-class-name _StaticIconProvider --annotation-class-library-uri package:flutter/src/widgets/icon_data.dart [+5342 ms] Running font-subset: /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/artifacts/engine/linux-arm64/font-subset /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/build/elinux/flutter_assets/fonts/MaterialIcons-Regular.otf /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/env/flutter-elinux/flutter/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf, using codepoints 57415 57490 57491 57706 58332 58727 [ +100 ms] Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1336 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. [ +14 ms] release_elinux_application: Complete [ +916 ms] Persisting file store [ +62 ms] Done persisting file store [ +682 ms] executing: [/media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/build/elinux/arm64/release/] cmake -DCMAKE_BUILD_TYPE=Release -DFLUTTER_TARGET_BACKEND_TYPE=gbm -DFLUTTER_TARGET_PLATFORM=elinux-arm64 /media/linaro/ef0e9ea8-873f-4819-bc21-6790e2ddc7b7/demo/elinux_sample/elinux
I also ran into this problem, which was eventually solved by finding the right graphical library, my device is
rk3568
SO:Debain 10 aarch64
GPU:libmali-bifrost-g52-g2p0-x11.so
Belongs to the x11 graphical library
Projects generated by
flutter-elinux build elinux --target-arch=arm64 --target-sysroot=/ --target-backend-type=x11 --verbose
will work
I follow your steps to cross compile with docker. When I run it on the board, I find that
Failed to create view controller
FLUTTER_LOG_LEVELS=TRACE FLUTTER_DRM_DEVICE="/dev/dri/card1" /root/bundle/elinux --bundle=/root/bundle
My CPU is rk3568 and my build commandflutter-elinux build elinux --target-arch=arm64 --target-sysroot=~/ubuntu18-arm64-sysroot/ --target-backend-type=gbm