Giter Club home page Giter Club logo

Comments (7)

bc-lee avatar bc-lee commented on May 17, 2024

I believe you're talking about the Linux Arm64 Host.

From what I understand, the Flutter SDK can be built from source on Linux Arm64, but the Flutter team doesn't provide pre-built binaries for it. Flutter requires several native binaries/libs to run.

However, you can try building the Flutter SDK from source on your Linux Arm64 machine, or you can use others' pre-built binaries like https://github.com/containerbase/flutter-prebuild, but use it at your own risk.

from flutter.

mictadlo avatar mictadlo commented on May 17, 2024

Hi, Thank you. My Lenove Duet Chromebook might not handle a second layer of virtualization. Is there a reason why Google/Dart/Flutter does not provide ARM64 releases?
I think people with ARM64 Chromebooks and Raspberry PI would like it, too.

from flutter.

darshankawar avatar darshankawar commented on May 17, 2024

@mictadlo
Most probably this is similar to the one you are looking for. You will need to follow-up in it for further updates or share your findings in it for better tracking.
Closing this in favor of the linked issue. If you disagree, write in comments and I'll reopen it.

from flutter.

christopherfujino avatar christopherfujino commented on May 17, 2024

@mictadlo Most probably this is similar to the one you are looking for. You will need to follow-up in it for further updates or share your findings in it for better tracking. Closing this in favor of the linked issue. If you disagree, write in comments and I'll reopen it.

Thanks for linking that issue @darshankawar. I just closed that issue, as we actually do build and upload binaries for linux arm64 hosts, you just can't download a tarball for it from the website. However, if you clone this repository on a linux arm64 machine, the flutter/bin/flutter bash script should ensure that you have all the correct architecture binaries downloaded.

I have done this before on a raspberry pi. I have not kept up to date with linux userspace on ChromeOS, so your mileage may vary there (if you have a mainstream Linux distribution installed such as Ubuntu or Arch, things should "just work").

from flutter.

mictadlo avatar mictadlo commented on May 17, 2024

Thank you, it works. Any suggestions how to improve it?

Dependencies for Web apps

$ sudo apt-get install chromium

Dependencies for Linux apps

$ sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev

VS Code
Source: https://wiki.debian.org/VisualStudioCode

$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
$ sudo install -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/microsoft-archive-keyring.gpg

$ sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

$ sudo apt-get update
$ sudo apt-get install code

Flutter SDK

$ mkdir projects
$ cd projects/

$ git clone https://github.com/flutter/flutter.git

$ cd flutter/bin/
$ ./flutter 
Building flutter tool...
Resolving dependencies... (6.7s)
Downloading packages... (36.5s)
Got dependencies.

$ export PATH="$PATH:/home/mtlorenc/projects/flutter/bin"
$ export CHROME_EXECUTABLE="/usr/bin/chromium"

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.22.0-14.0.pre.29, on Debian GNU/Linux 12 (bookworm) 6.6.17-01102-gd3cec3c11146, locale en_US.UTF-8)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.82.0)
[✓] Connected device (2 available)

from flutter.

christopherfujino avatar christopherfujino commented on May 17, 2024

Thank you, it works. Any suggestions how to improve it?

This is more or less what I would do (although with vim :) ). One option is to use canonical's Flutter snap: https://snapcraft.io/flutter, which I believe would handle sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev, although you'd also have to install and/or configure snap.

from flutter.

github-actions avatar github-actions commented on May 17, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.