Как собрать frontend_server.dart.snapshot для linux arm?

Кто-нибудь знает, как создать frontend_server.dart.snapshot для linux arm/arm64?

исходный код https://github.com/flutter/engine/tree/master/flutter_frontend_server

версия движка флаттера v1.20.1

версия dart-sdk

Dart SDK version: 2.9.0 (stable) (Fri Jul 31 10:59:48 2020 +0200) on "linux_x64"

я полагаю сделать так?

/workspace/engine/src/flutter/flutter_frontend_server$ /workspace/dart-sdk/bin/dart --snapshot-kind=kernel --snapshot=frontend_server.dart.snapshot --packages=.packages   bin/starter.dart 

ошибки ниже

../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:20:24: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int Function(T, T)? compare}) {
                       ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:50:67: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
int lowerBound<T>(List<T> sortedList, T value, {int Function(T, T)? compare}) {
                                                                  ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:70:44: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
void shuffle(List list, [int start = 0, int? end]) {
                                           ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:84:44: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
void reverse(List list, [int start = 0, int? end]) {
                                           ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:115:24: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int Function(T, T)? compare, int start = 0, int? end}) {
                       ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:115:53: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int Function(T, T)? compare, int start = 0, int? end}) {
                                                    ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:159:24: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int start = 0, int? end, int Function(T, T)? compare}) {
                       ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:159:49: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int start = 0, int? end, int Function(T, T)? compare}) {
                                                ^
../../third_party/dart/third_party/pkg/collection/lib/src/canonicalized_map.dart:18:25: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
  final bool Function(K)? _isValidKeyFn;
                        ^
../../third_party/dart/third_party/pkg/collection/lib/src/canonicalized_map.dart:31:28: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
      {bool Function(K key)? isValidKey})

Жду с нетерпением! Спасибо.

1 ответ

Решение

Функция нулевой безопасности - это критическое изменение. Я исправил эту проблему, выполнив git reset до более ранней версии. пример: измените src/third_party/dart/third_party/pkg/collection на тег 1.14.13git reset 00540dce43a9bc778bfa55935a182799ff00044dне забудьте сделать git checkout все измененные файлы.

Другие вопросы по тегам