flutter-elinux icon indicating copy to clipboard operation
flutter-elinux copied to clipboard

run and build error in orangepi 3B

Open xiaoxiaowesley opened this issue 1 year ago • 1 comments
trafficstars

devices: orangepi 3B os: ubuntu 22.04

After I install flutter-elinux and create a sample flutter project. And Got error when run flutter-elinux build elinux --target-backend-type=x11 or flutter-elinux run -d elinux-x11

597bf27595610aac128703cdf1839a4d_720

And my OS only support x11 env | grep -E "DISPLAY|SWAY|XDG_SESSION_TYPE"

XDG_SESSION_TYPE=x11 DISPLAY=:0.0

And flutter-elinux devices shows elinux-x11 device.

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Found 3 connected devices:
  Linux (desktop)  • linux          • linux-arm64    • Orange Pi 1.0.4 Jammy 5.10.160-rockchip-rk356x
  eLinux (desktop) • elinux-wayland • flutter-tester • Orange Pi 1.0.4 Jammy 5.10.160-rockchip-rk356x
  eLinux (desktop) • elinux-x11     • flutter-tester • Orange Pi 1.0.4 Jammy 5.10.160-rockchip-rk356x

Run "flutter emulators" to list and start any available device emulators.

If you expected another device to be detected, please run "flutter doctor" to diagnose potential issues. You may also try increasing the time to wait for connected devices
with the "--device-timeout" flag. Visit https://flutter.dev/setup/ for troubleshooting tips.

xiaoxiaowesley avatar Apr 30 '24 16:04 xiaoxiaowesley

You are lacking libstd++ for clang14 'sudo apt install libstdc++-12-dev`

nguyenlkdn avatar Jun 10 '24 13:06 nguyenlkdn