client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

[bug] build fails on WSL2 Ubuntu 24.04 with flutter example after `pub add livekit_client`

Open ryuujo1573 opened this issue 7 months ago • 3 comments

Describe the bug

Add the livekit_client package, then the flutter build fails.

To Reproduce

flutter create -t app --platforms windows,linux,macos --project-name livekit_example livekit_example
cd livekit_example
flutter run   # this works
flutter pub add livekit_client
flutter run   # fails

Expected behavior

Platform information

  • Flutter version:
Flutter (Channel stable, 3.22.2, on Ubuntu 24.04 LTS 5.15.153.1-microsoft-standard-WSL2, locale
    en_US.UTF-8)
    • Flutter version 3.22.2 on channel stable at /opt/sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (5 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3
...
[✓] Linux toolchain - develop for Linux desktop
    • Homebrew clang version 16.0.6
    • cmake version 3.28.3
    • ninja version 1.11.1
    • pkg-config version 1.8.1
[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Ubuntu 24.04 LTS 5.15.153.1-microsoft-standard-WSL2
  • Plugin version:
  • Flutter target OS: Linux
  • Flutter target OS version: Ubuntu 24.04
  • Flutter console log:
➜  flutter git:(main) ✗ flutter run
Launching lib/main.dart on Linux in debug mode...
Building Linux application...                                           
✓ Built build/linux/x64/debug/bundle/livekit_example

(livekit_screen_control:83525): Gtk-WARNING **: 00:11:46.693: Locale not supported by C library.
        Using the fallback 'C' locale.
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen


#
# Fatal error in: ../../media/engine/adm_helpers.cc, line 39
# last system error: 0
# Check failed: 0 == adm->Init() (0 vs. -1)
# Failed to initialize the ADM.
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
Error launching application on Linux.

ryuujo1573 avatar Jul 07 '24 16:07 ryuujo1573