Skip to content

Inconsistencies in libGLU requirements #17297

@koral--

Description

@koral--

The real problem is that flutter test command on linux requires libGLU.so.1 but it's lack is neither detected by doctor nor listed as a requirement in documentation.

According to #8493 there should be no dependency on that shared library. So either @Hixie's assumption from #8493 (comment) is wrong or it was just introduced again in the meantime.

Fix consists of installing libglu1-mesa.

Here are the logs:

root@dc2bcbfdb26b:/bitrise/src/flutter-app-example# flutter test
00:05 +0: loading /bitrise/src/flutter-app-example/test/widget_test.dart                                                                                                                                                                                            Shell: /bitrise/src/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
00:05 +0 -1: loading /bitrise/src/flutter-app-example/test/widget_test.dart [E]                                                                                                                                                                                     
  Failed to load "/bitrise/src/flutter-app-example/test/widget_test.dart":
  Shell subprocess crashed with unexpected exit code 127 before connecting to test harness.
  Test: /bitrise/src/flutter-app-example/test/widget_test.dart
  Shell: /bitrise/src/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester
  
  
00:05 +0 -1: Some tests failed.                                                                                                                                                                                                                                     
root@dc2bcbfdb26b:/bitrise/src/flutter-app-example# ldd /bitrise/src/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester |grep libGLU
        libGLU.so.1 => not found

root@dc2bcbfdb26b:/bitrise/src/flutter-app-example# flutter --version
Flutter 0.3.1 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 12bbaba9ae (2 weeks ago) • 2018-04-19 23:36:15 -0700
Engine • revision 09d05a3891
Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b

Metadata

Metadata

Assignees

Labels

a: tests"flutter test", flutter_test, or one of our testscustomer: fuchsiaengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions