-
Hi there. I have recently started with Yocto and flutter. I am trying to add the meta-flutter layer to my RPi 3B+ core-image-base.
I tried to add multiple packages at once to IMAGE_INSTALL_append in my local.conf. That led to errors. I don't completely understand which packages I need to add. So to begin, I decided to test with: I tried bitbaking with
I took a look at the depot-tools recipe and I am not quite sure what I need to change in order to get an arm executable. Or is it supposed to be used for cross compilation on host? From the recipe, it looks like the repo is being checked out in Here's my local.conf: pastebin P.S. The flutter documentation says that each platform requires a flutter embedder. Do I need to add meta-clang to the build in order to add flutter-pi package? If so, will adding meta-clang to bblayers.conf suffice, or will I need to make some changes elsewhere to make it work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi,
Also depending on what base image you are building you might want to use this in your conf/local.conf:
It will build and install dependencies. You do not need to add anything else. If you hit a failure at the link stage, then you are not using meta-clang is not needed to build the flutter-pi recipe, just for the Sony recipes. The clue is the presence of If your end game is to use Yocto to generate a Raspbian-32 runtime, and you don't care about running an AOT (compiled) Flutter app, only an interpreted app, then you can hack up the flutter engine build to would around referenced bug. I would suggest using dunfell branch as your baseline with raspberrypi3-64 as your machine type. Once you get that running, then deviate from a known working state. |
Beta Was this translation helpful? Give feedback.
Hi,
depot-tools-native
is used by flutter-engine recipe, it's not intended to be used on target. There are two types of recipes:-native
Also depending on what base image you are building you might want to use this in your conf/local.conf:
It will build and install dependencies. You do not need to add anything else.
If you hit a failure at the link stage, then you are not using
dunfell
, and you need to override the GCC version as lightly referenced in the Readme. However if you are building forMACHINE=raspberrypi3
it won't make it to the link stage, as there is a bug buildi…