sony / flutter-elinux

Flutter tools for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
405 stars 43 forks source link

run and build error in orangepi 3B #256

Open xiaoxiaowesley opened 2 months ago

xiaoxiaowesley commented 2 months ago

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.
nguyenlkdn commented 3 weeks ago

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