sony / flutter-elinux

Flutter tools for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
424 stars 43 forks source link

Artifacts download failure #191

Closed Li-00 closed 1 year ago

Li-00 commented 1 year ago

image

image

image image

image

I can ping github.com but run or build demo Downloading elinux-common tools faild , don's know how to fix

HidenoriMatsubayashi commented 1 year ago

I guess this is your network environment issue. Are you accessing from China? Can you download https://github.com/sony/flutter-embedded-linux/releases/tag/cdbeda788a manually?

See also https://github.com/sony/flutter-elinux/issues/140#issuecomment-1477907892

Li-00 commented 1 year ago

yes, I'm in china run this demo,and i download release so put in cache path image

Is there any other possibility? thank you for your answer.

Li-00 commented 1 year ago

My computer can access github through the proxy without hindrance, but the embedded device cannot use the proxy, and I tried the flutter-elinux precache --elinux command, and the problem was the same, stuck in Downloading elinux-common tools for a long time...

I am sure that I have downloaded the latest so and put it in the cache, so is there any way to skip this verification download? Is the process complicated

HidenoriMatsubayashi commented 1 year ago

I created a new PR to add this use case. Please use ELINUX_ENGINE_BASE_LOCAL_DIRECTORY env.

  1. Download all of elinux artifacts from https://github.com/sony/flutter-embedded-linux/releases

    • elinux-common.zip
    • elinux-arm64-debug.zip
    • elinux-arm64-profile.zip
    • elinux-arm64-release.zip
    • elinux-x64-debug.zip
    • elinux-x64-profile.zip
    • elinux-x64-release.zip
  2. export ELINUX_ENGINE_BASE_LOCAL_DIRECTORY=

  3. run flutter commands

HidenoriMatsubayashi commented 1 year ago

Closing.

HidenoriMatsubayashi commented 1 year ago

Created https://github.com/sony/flutter-elinux/wiki/Use-local-elinux-artifacts-without-downloading-from-GitHub.

Li-00 commented 1 year ago

latest update, can set up the proxy by configuring /etc/profile

First of all vim /etc/profile Then, add it to the file http_proxy=http://ip:port https_proxy=https://ip:port export http_proxy export https_proxy Finally, refresh the file source /etc/profile

But when I try to run the project after building the project, it prompts Failed to create view controller, my board is rk3568 Debain10 aarch64, env is FLutter 3.10.5,Flutter-elinux 3.10.5, and I'm following https://github.com/sony/flutter-elinux/issues/121 to try to solve it