Closed
Description
I hope that this isn't an issue but rather a failure of me.
I'm trying to build the app.so to run the app in release mode on my Raspberry.
Anyhow, when I come to step 4 - Building the app.so, I get the following error:
Unable to open file build/kernel_snapshot.dill
../../../engine/src/third_party/dart/runtime/vm/dart_api_impl.cc: 2153: error: Dart_ExitScope expects there to be a current isolate. Did you forget to call Dart_CreateIsolateGroup or Dart_EnterIsolate?
Aborted (core dumped)
sbey@nunki:~/Projects/
The following commands were made:
3. Inside the app directory:
~/flutter/bin/cache/dart-sdk/bin/dart \
~/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot \
--sdk-root ~/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk_product \
--target=flutter \
--aot \
--tfa \
-Ddart.vm.product=true \
--packages .packages \
--output-dill build\kernel_snapshot.dill \
--verbose \
--depfile build\kernel_snapshot.d \
package:flutterReference/main.dart
After that, the both files buildkernel_snapshot.d & buildkernel_snapshot.dill were created in the root directory of my app rather than in the build folder. Is that right?
- After downloading the engine_binary tree:
~/engine-binaries/gen_snapshot_linux_x64 \
--causal_async_stacks \
--deterministic \
--snapshot_kind=app-aot-elf \
--elf=build/app.so \
--strip \
--sim_use_hardfp \
--no-use-integer-division \
build/kernel_snapshot.dill
Metadata
Metadata
Assignees
Labels
No labels