如何为 linux 手臂构建 frontend_server.dart.snapshot?
How to build frontend_server.dart.snapshot for linux arm?
有人知道如何为 linux arm/arm64 构建 frontend_server.dart.snapshot 吗?
源代码https://github.com/flutter/engine/tree/master/flutter_frontend_server
flutter引擎版本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})
期待!谢谢。
空安全功能是一项重大更改。
我通过 git 重置为早期版本解决了这个问题。
例子:
将 src/third_party/dart/third_party/pkg/collection 更改为标记 1.14.13
git reset 00540dce43a9bc778bfa55935a182799ff00044d
记得做git checkout
所有修改过的文件。
有人知道如何为 linux arm/arm64 构建 frontend_server.dart.snapshot 吗?
源代码https://github.com/flutter/engine/tree/master/flutter_frontend_server
flutter引擎版本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})
期待!谢谢。
空安全功能是一项重大更改。
我通过 git 重置为早期版本解决了这个问题。
例子:
将 src/third_party/dart/third_party/pkg/collection 更改为标记 1.14.13
git reset 00540dce43a9bc778bfa55935a182799ff00044d
记得做git checkout
所有修改过的文件。