最終更新:2021-12-08 (水) 09:38:47 (863d)  

Raspberry Pi OS/Flutter
Top / Raspberry Pi OS / Flutter

32bit

Snaps (2021/12)

  • snap "flutter" is not available on stable for this architecture (armhf) but exists on other
           architectures (amd64, arm64).

マニュアルインストール

  • pi@raspberrypi:~ $ mkdir development
    pi@raspberrypi:~ $ cd development/
    pi@raspberrypi:~/development $ tar xf ~/Downloads/flutter_linux_2.5.3-stable.tar.xz
    pi@raspberrypi:~/development $ export PATH="$PATH:`pwd`/flutter/bin"
    pi@raspberrypi:~/development $ flutter precache
    /home/pi/development/flutter/bin/internal/shared.sh: 行 229: /home/pi/development/flutter/bin/cache/dart-sdk/bin/dart: バイナリファイルを実行できません: 実行形式エラー
    pi@raspberrypi:~/development $ file /home/pi/development/flutter/bin/cache/dart-sdk/bin/dart
    /home/pi/development/flutter/bin/cache/dart-sdk/bin/dart: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped
  • Dartのページからarmv7用のをダウンロードしてきてflutter/bin/cache/dart-sdkと入れ替える
    pi@raspberrypi:~/development $ flutter precache
    
      ╔════════════════════════════════════════════════════════════════════════════╗
      ║                 Welcome to Flutter! - https://flutter.dev                  ║
      ║                                                                            ║
      ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
      ║ statistics and basic crash reports. This data is used to help improve      ║
      ║ Flutter tools over time.                                                   ║
      ║                                                                            ║
      ║ Flutter tool analytics are not sent on the very first run. To disable      ║
      ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
      ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
      ║ event will be sent, and then no further information will be sent by the    ║
      ║ Flutter tool.                                                              ║
      ║                                                                            ║
      ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
      ║ Note: The Google Privacy Policy describes how data is handled in this      ║
      ║ service.                                                                   ║
      ║                                                                            ║
      ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
      ║ crash reports to Google.                                                   ║
      ║                                                                            ║
      ║ Read about data we send with crash reports:                                ║
      ║ https://flutter.dev/docs/reference/crash-reporting                         ║
      ║                                                                            ║
      ║ See Google's privacy policy:                                               ║
      ║ https://policies.google.com/privacy                                        ║
      ╚════════════════════════════════════════════════════════════════════════════╝
    
    
    Downloading package sky_engine...                                1,047ms
    Downloading flutter_patched_sdk tools...                         1,055ms
    Downloading flutter_patched_sdk_product tools...                   820ms
    Downloading linux-arm64 tools...                                    4.3s
    Running "flutter pub get" in flutter_tools...                      12.7s
    pi@raspberrypi:~/development $ flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 2.5.3, on Raspbian GNU/Linux 11 (bullseye) 5.10.63-v7l+, locale ja_JP.UTF-8)
    [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
        ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
    [✗] Flutter IDE Support (No supported IDEs installed)
    [!] Connected device
        ! No devices available
    
    ! Doctor found issues in 3 categories.