Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ryuujo1573 opened this issue Jul 7, 2024 · 4 comments

Comments

@ryuujo1573
Copy link

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

This comment was marked as resolved.

@ryuujo1573
Copy link
Author

After configured locale, the flutter run outputs:

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 ryuujo1573 changed the title [bug] build fails on Ubuntu 24.04 with flutter example after pub add livekit_client [bug] build fails on WSL2 Ubuntu 24.04 with flutter example after pub add livekit_client Jul 7, 2024
@ryuujo1573
Copy link
Author

ryuujo1573 commented Jul 7, 2024

Possible related:

MESA and glx errors when running glxinfo Ubuntu 24.04

Does WSL support openGL? microsoft/WSL#2855 (comment)

I may guess it's just another WSL specific problem. I may have a try on bare metal after then!

@cloudwebrtc
Copy link
Contributor

We have not yet considered supporting flutter compilation in WSL. Please try to install the flutter sdk and compile it in Ubuntu.

@cloudwebrtc cloudwebrtc closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants