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

Failed to build bundle with flutterpi_tool #378

Open
quanggdungg0609 opened this issue Jan 14, 2024 · 5 comments
Open

Failed to build bundle with flutterpi_tool #378

quanggdungg0609 opened this issue Jan 14, 2024 · 5 comments

Comments

@quanggdungg0609
Copy link

i have the problem when build the demo app, here is my errors:

parallels@ubuntu-linux-22-04-desktop:~/hello$ flutterpi_tool build --cpu=pi4 --release
Downloading engine-armv7-generic-release.tar.xz...               2,943ms
Downloading engine-pi4-release.tar.xz...                         2,645ms
Downloading universal.tar.xz...                                  2,438ms
Target aot_elf_release failed: ProcessException: Failed to find
"/home/parallels/snap/flutter/common/flutter/bin/cache/artifacts/engine/flutterp
i-gen-snapshot-linux-arm64-armv7-generic-release/gen_snapshot" in the search
path.
  Command:
  /home/parallels/snap/flutter/common/flutter/bin/cache/artifacts/engine/flutter
  pi-gen-snapshot-linux-arm64-armv7-generic-release/gen_snapshot
#0      LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:56:7)
#1      ErrorHandlingProcessManager.start.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:689:24)
#2      _run (package:flutter_tools/src/base/error_handling_io.dart:559:20)
#3      ErrorHandlingProcessManager.start (package:flutter_tools/src/base/error_handling_io.dart:688:12)
#4      _DefaultProcessUtils.start (package:flutter_tools/src/base/process.dart:430:28)
#5      _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart:450:35)
#6      GenSnapshot.run (package:flutter_tools/src/base/build.dart:75:26)
#7      AOTSnapshotter.build (package:flutter_tools/src/base/build.dart:222:56)
#8      AotElfBase.build (package:flutter_tools/src/build_system/targets/common.dart:318:52)
#9      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:853:27)
<asynchronous suspension>
#10     Future.wait.<anonymous closure> (dart:async/future.dart:523:21)
<asynchronous suspension>
#11     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:791:32)
<asynchronous suspension>
#12     Future.wait.<anonymous closure> (dart:async/future.dart:523:21)
<asynchronous suspension>
#13     _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:791:32)
<asynchronous suspension>
#14     FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:620:16)
<asynchronous suspension>
#15     buildFlutterpiBundle (package:flutterpi_tool/src/build_bundle.dart:366:20)
<asynchronous suspension>
#16     BuildCommand.run.<anonymous closure> (package:flutterpi_tool/src/build_bundle.dart:682:11)
<asynchronous suspension>
#17     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#18     BuildCommand.run (package:flutterpi_tool/src/build_bundle.dart:646:5)
<asynchronous suspension>
#19     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#20     main (package:flutterpi_tool/src/build_bundle.dart:789:5)
<asynchronous suspension>
#21     main (file:///home/parallels/.pub-cache/hosted/pub.dev/flutterpi_tool-0.2.1/bin/flutterpi_tool.dart:4:3)
<asynchronous suspension>

Building Flutter-Pi bundle...                                           
Failed to build bundle.

Can someone help me find a solution.

@IceIce1030
Copy link

Has this issue been resolved?

@ardera
Copy link
Owner

ardera commented Feb 20, 2024

@IceIce1030 yes (@quanggdungg0609 also reported it on discord, and we talked there)

Linux arm64 is not supported as a host platform right now. MacOS arm64 is supported though, in the above case he just switched to that.

@ardera
Copy link
Owner

ardera commented Feb 20, 2024

flutterpi_tool doesn't run apps (yet), so you need to use flutter custom-devices for that

@mrnetforge
Copy link

flutterpi_tool doesn't run apps (yet), so you need to use flutter custom-devices for that

I configure my Raspberry PI device, and now it's in flutter devices. However when i create lanuch.json inside Vscode:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "pi_attendance_app",
            "request": "launch",
            "type": "dart"
        },
        {
            "name": "pi_attendance_app (profile mode)",
            "request": "launch",
            "type": "dart",
            "flutterMode": "profile"
        },
        {
            "name": "pi_attendance_app (release mode)",
            "request": "launch",
            "type": "dart",
            "flutterMode": "release"
        }
    ]
}

Select device from list and then press Run i have:

Launching lib/main.dart on Raspberry Pi 5 in debug mode...
filesystem_layout.c: icudtl file not found!
Application finished.

Is there any way to run in debug mode my application? Looks like native flutter run don't generate engine file icudtl

@rafaband
Copy link

rafaband commented Dec 3, 2024

Same issue here. Is there any way to run flutter on raspberry pi?! I did the instalation with snapp_installer and several days I'm trying to run the simple basic project with no success.

  • Raspberry PI 3B
  • Raspberry OS Lite 64 Bits
  • Flutter 3.24.5

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

5 participants