You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup Yocto
There are two ways to build using Yocto. One is builds using bitbake and the other is builds using Yocto SDK.
Downloading Poky, meta-clang, and meta-flutter:
$ git clone git://git.yoctoproject.org/poky.git -b kirkstone
$ git clone https://github.com/kraj/meta-clang -b kirkstone
$ git clone https://github.com/sony/meta-flutter.git
Setup the build environment using oe-init-build-env script in Poky:
$ source poky/oe-init-build-env build
Add meta-clang layer to conf/bblayers.conf:
$ bitbake-layers add-layer ../meta-clang
Add meta-flutter layer to conf/bblayers.conf:
$ bitbake-layers add-layer ../meta-flutter
Build Yocto SDK (Only when using cross-building with Yocto SDK)
Add the following in your conf/local.conf:
CLANGSDK = "1"
See also: Adding clang in generated SDK toolchain
Build Yocto SDK for cross-building:
$ bitbake core-image-weston -c populate_sdk
See also: SDK building an sdk installer
Install Yocto SDK:
Enter target directory for SDK (default: /opt/poky/3.1.31):
The directory "/opt/poky/3.1.31" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed [y/N]? y
Extracting SDK............................................................................................................................................................................................................................................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/poky/3.1.31/environment-setup-aarch64-poky-linux
$ . /opt/poky/3.1.31/environment-setup-armv7vet2hf-neon-vfpv4-pokymllib32-linux-gnueabi
Flutter Engine (libflutter_engine.so)
The default build targets are fixed to Linux, Arm64, and the following Flutter Engine version in the config file.
ENGINE_VERSION ?= "a18df97ca57a249df5d8d68cd0820600223ce262"
$ bitbake flutter-wayland-client
test@test-ThinkCentre-neo-50t-Gen-3:~/sdk/src_setup/build$ bitbake flutter-wayland-client
Loading cache: 100% |#######################################################################################################################################################################| Time: 0:00:00
Loaded 5384 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for virtual/crypt (glibc, libxcrypt)
Consider defining a PREFERRED_PROVIDER entry to match virtual/crypt
Summary: 1 task failed:
/home/test/sdk/src_setup/meta-flutter/recipes-graphics/flutter-engine/flutter-engine.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
1.How can I resolve the issues?
2.I am using the Git branch "dunfel."
3.Is Flutter engine version 3.24.5 supported in Yocto version 3.1.31?
Please help me how to resolve this issue*******
Regards
Honnesh
The text was updated successfully, but these errors were encountered:
Hi,
mate-flutter using yocto
Install requred tools
$ sudo apt install chrpath diffstat gawk lz4
Setup Yocto
There are two ways to build using Yocto. One is builds using bitbake and the other is builds using Yocto SDK.
Downloading Poky, meta-clang, and meta-flutter:
$ git clone git://git.yoctoproject.org/poky.git -b kirkstone
$ git clone https://github.com/kraj/meta-clang -b kirkstone
$ git clone https://github.com/sony/meta-flutter.git
Setup the build environment using oe-init-build-env script in Poky:
$ source poky/oe-init-build-env build
Add meta-clang layer to conf/bblayers.conf:
$ bitbake-layers add-layer ../meta-clang
Add meta-flutter layer to conf/bblayers.conf:
$ bitbake-layers add-layer ../meta-flutter
Build Yocto SDK (Only when using cross-building with Yocto SDK)
Add the following in your conf/local.conf:
CLANGSDK = "1"
See also: Adding clang in generated SDK toolchain
Build Yocto SDK for cross-building:
$ bitbake core-image-weston -c populate_sdk
See also: SDK building an sdk installer
Install Yocto SDK:
test@test-ThinkCentre-neo-50t-Gen-3:~/sdk/src_setup/build$ ./tmp/deploy/sdk/poky-glibc-x86_64-core-image-weston-aarch64-rzv2h-evk-ver1-toolchain-3.1.31.sh
Poky (Yocto Project Reference Distro) SDK installer version 3.1.31
Enter target directory for SDK (default: /opt/poky/3.1.31):
The directory "/opt/poky/3.1.31" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed [y/N]? y
Extracting SDK............................................................................................................................................................................................................................................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/poky/3.1.31/environment-setup-aarch64-poky-linux
$ . /opt/poky/3.1.31/environment-setup-armv7vet2hf-neon-vfpv4-pokymllib32-linux-gnueabi
Flutter Engine (libflutter_engine.so)
The default build targets are fixed to Linux, Arm64, and the following Flutter Engine version in the config file.
ENGINE_VERSION ?= "a18df97ca57a249df5d8d68cd0820600223ce262"
$ bitbake flutter-wayland-client
test@test-ThinkCentre-neo-50t-Gen-3:~/sdk/src_setup/build$ bitbake flutter-wayland-client
Loading cache: 100% |#######################################################################################################################################################################| Time: 0:00:00
Loaded 5384 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for virtual/crypt (glibc, libxcrypt)
Consider defining a PREFERRED_PROVIDER entry to match virtual/crypt
Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-poky-linux"
DISTRO = "poky"
DISTRO_VERSION = "3.1.31"
TUNE_FEATURES = "aarch64 cortexa55"
meta
meta-poky
meta-yocto-bsp = "dunfell-3.1.31:a9e3cc3b9eab7a83c715bb8440454e8fea852c2a"
meta-rz-common
meta-rzg2l
meta-rzv2h
meta-oe
meta-python
meta-multimedia
meta-rz-graphics
meta-rz-codecs
meta-smarc
meta-rz-drpai
meta-rz-opencva = ":"
meta-clang = "dunfell:67ac939d47b3dfc383fec7244e4a0ff85ca4340f"
meta-flutter = "main:1f022d5d5b6112c49f5b0c0452c3d756dab5557a"
WARNING: /home/test/sdk/src_setup/build/../meta-renesas/meta-rz-common/recipes-kernel/linux/linux-renesas_5.10.bb:do_compile is tainted from a forced run | ETA: 0:00:00
Initialising tasks: 100% |##################################################################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 72 Found 63 Missed 9 Current 359 (87% match, 97% complete)
NOTE: Executing Tasks
ERROR: flutter-engine-1.0-r0 do_compile: Execution of '/home/test/sdk/src_setup/build/tmp/work/aarch64-poky-linux/flutter-engine/1.0-r0/temp/run.do_compile.310956' failed with exit code 1
ERROR: Logfile of failure stored in: /home/test/sdk/src_setup/build/tmp/work/aarch64-poky-linux/flutter-engine/1.0-r0/temp/log.do_compile.310956
Log data follows:
| DEBUG: Executing shell function do_compile
| ninja: Entering directory `out/linux_release_arm64'
| [1/7867] CXX obj/flutter/fml/fml.endianness.o
| [2/7867] CXX obj/flutter/fml/fml.log_settings_state.o
| [3/7867] CXX obj/flutter/fml/memory/fml.thread_checker.o
| [4/7867] CXX obj/flutter/fml/fml.delayed_task.o
| [5/7867] CXX obj/flutter/fml/memory/fml.weak_ptr_internal.o
| [6/7867] CXX obj/flutter/fml/fml.hex_codec.o
| [7/7867] CXX obj/flutter/flutter_vma/flutter_vma.flutter_vma.o
| FAILED: obj/flutter/flutter_vma/flutter_vma.flutter_vma.o
| ../../flutter/buildtools/linux-x64/clang/bin/clang++ -MMD -MFobj/flutter/flutter_vma/flutter_vma.flutter_vma.o.d -DUSE_OPENSSL=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE_JIT_RELEASE=4 -DDART_LEGACY_API=[[deprecated]] -DFLUTTER_RUNTIME_MODE=3 -DFLUTTER_RELEASE=1 -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_WAYLAND_KHR -DVMA_DYNAMIC_VULKAN_FUNCTIONS=0 -DVMA_STATIC_VULKAN_FUNCTIONS=0 -I../.. -Igen -I../../flutter/third_party/libcxx/include -I../../flutter/third_party/libcxxabi/include -I../../flutter/build/secondary/flutter/third_party/libcxx/config -I../../flutter -I../../flutter/third_party/vulkan-deps/vulkan-headers/src/include -I../../flutter/third_party/vulkan_memory_allocator/include -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=8 -fPIC -pipe -pthread --target=aarch64-linux-gnu -DBORINGSSL_CLANG_SUPPORTS_DOT_ARCH -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-deprecated-copy -Wno-psabi -Wno-deprecated-literal-operator -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -fdebug-prefix-map=/home/test/sdk/src_setup/build/tmp/work/aarch64-poky-linux/flutter-engine/1.0-r0/src/= -no-canonical-prefixes -fvisibility=hidden --sysroot=/home/test/sdk/src_setup/build/tmp/work/aarch64-poky-linux/flutter-engine/1.0-r0/recipe-sysroot -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g0 -Wunreachable-code -Wno-redundant-parens -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -Wno-c++98-compat-extra-semi -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-nullability-completeness -Wno-suggest-destructor-override -Wno-suggest-override -Wno-unused-private-field -Wno-unused-variable -c ../../flutter/flutter_vma/flutter_vma.cc -o obj/flutter/flutter_vma/flutter_vma.flutter_vma.o
| In file included from ../../flutter/flutter_vma/flutter_vma.cc:41:
| In file included from ../../flutter/flutter_vma/flutter_vma.h:8:
| In file included from ../../flutter/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h:130:
| ../../flutter/third_party/vulkan-deps/vulkan-headers/src/include/vulkan/vulkan.h:52:10: fatal error: 'xcb/xcb.h' file not found
| 52 | #include <xcb/xcb.h>
| | ^~~~~~~~~~~
| 1 error generated.
| [8/7867] CXX obj/flutter/flutter_vma/flutter_skia_vma.flutter_skia_vma.o
| FAILED: obj/flutter/flutter_vma/flutter_skia_vma.flutter_skia_vma.o
| ../../flutter/buildtools/linux-x64/clang/bin/clang++ -MMD -MFobj/flutter/flutter_vma/flutter_skia_vma.flutter_skia_vma.o.d -DUSE_OPENSSL=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DSK_FONTMGR_ANDROID_AVAILABLE -DSK_TYPEFACE_FACTORY_FREETYPE -DSK_FONTMGR_FREETYPE_DIRECTORY_AVAILABLE -DSK_FONTMGR_FREETYPE_EMBEDDED_AVAILABLE -DSK_FONTMGR_FREETYPE_EMPTY_AVAILABLE -DSK_FONTMGR_FONTCONFIG_AVAILABLE -DSK_GL -DSK_VULKAN -DSK_CODEC_DECODES_JPEG -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_ICO -DSK_CODEC_DECODES_WEBP -DSK_HAS_WUFFS_LIBRARY -DSK_CODEC_DECODES_GIF -DSK_XML -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE_JIT_RELEASE=4 -DDART_LEGACY_API=[[deprecated]] -DFLUTTER_RUNTIME_MODE=3 -DFLUTTER_RELEASE=1 -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_WAYLAND_KHR -DVMA_DYNAMIC_VULKAN_FUNCTIONS=0 -DVMA_STATIC_VULKAN_FUNCTIONS=0 -DSK_CODEC_DECODES_BMP -DSK_CODEC_DECODES_WBMP -DSK_ENABLE_DUMP_GPU -DSK_FORCE_AAA -DSK_LEGACY_IGNORE_DRAW_VERTICES_BLEND_WITH_NO_SHADER -DSK_DISABLE_LEGACY_METAL_BACKEND_SURFACE -DSK_DISABLE_LEGACY_PARAGRAPH_UNICODE -DSK_DISABLE_LEGACY_SHADERCONTEXT -DSK_DISABLE_LOWP_RASTER_PIPELINE -DSK_FORCE_RASTER_PIPELINE_BLITTER -DSK_METAL_WAIT_UNTIL_SCHEDULED -DSK_DISABLE_EFFECT_DESERIALIZATION -DSK_R32_SHIFT=16 -DSK_ENABLE_PRECOMPILE -DSK_GANESH -DSK_USE_PERFETTO -I../.. -Igen -I../../flutter/third_party/libcxx/include -I../../flutter/third_party/libcxxabi/include -I../../flutter/build/secondary/flutter/third_party/libcxx/config -I../../flutter -I../../flutter/third_party/vulkan-deps/vulkan-headers/src/include -I../../flutter/third_party/vulkan_memory_allocator/include -I../../flutter/third_party/skia -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=8 -fPIC -pipe -pthread --target=aarch64-linux-gnu -DBORINGSSL_CLANG_SUPPORTS_DOT_ARCH -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-deprecated-copy -Wno-psabi -Wno-deprecated-literal-operator -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -fdebug-prefix-map=/home/test/sdk/src_setup/build/tmp/work/aarch64-poky-linux/flutter-engine/1.0-r0/src/= -no-canonical-prefixes -fvisibility=hidden --sysroot=/home/test/sdk/src_setup/build/tmp/work/aarch64-poky-linux/flutter-engine/1.0-r0/recipe-sysroot -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g0 -Wunreachable-code -Wno-redundant-parens -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -Wno-c++98-compat-extra-semi -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-nullability-completeness -Wno-suggest-destructor-override -Wno-suggest-override -Wno-unused-private-field -Wno-unused-variable -c ../../flutter/flutter_vma/flutter_skia_vma.cc -o obj/flutter/flutter_vma/flutter_skia_vma.flutter_skia_vma.o
| In file included from ../../flutter/flutter_vma/flutter_skia_vma.cc:5:
| In file included from ../../flutter/flutter_vma/flutter_skia_vma.h:8:
| In file included from ../../flutter/flutter_vma/flutter_vma.h:8:
| In file included from ../../flutter/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h:130:
| ../../flutter/third_party/vulkan-deps/vulkan-headers/src/include/vulkan/vulkan.h:52:10: fatal error: 'xcb/xcb.h' file not found
| 52 | #include <xcb/xcb.h>
| | ^~~~~~~~~~~
| 1 error generated.
| [9/7867] CXX obj/flutter/fml/fml.icu_util.o
| [10/7867] CXX obj/flutter/fml/memory/fml.task_runner_checker.o
| [11/7867] CXX obj/flutter/fml/fml.log_settings.o
| [12/7867] CXX obj/flutter/fml/fml.cpu_affinity.o
| [13/7867] CXX obj/flutter/fml/fml.file.o
| [14/7867] CXX obj/flutter/fml/fml.logging.o
| [15/7867] CXX obj/flutter/fml/fml.mapping.o
| [16/7867] CXX obj/flutter/fml/fml.message_loop.o
| [17/7867] CXX obj/flutter/fml/fml.paths.o
| [18/7867] CXX obj/flutter/fml/fml.message_loop_impl.o
| [19/7867] CXX obj/flutter/fml/fml.raster_thread_merger.o
| [20/7867] CXX obj/flutter/fml/fml.message_loop_task_queues.o
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/test/sdk/src_setup/build/tmp/work/aarch64-poky-linux/flutter-engine/1.0-r0/temp/run.do_compile.310956' failed with exit code 1
ERROR: Task (/home/test/sdk/src_setup/meta-flutter/recipes-graphics/flutter-engine/flutter-engine.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1438 tasks of which 1437 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/test/sdk/src_setup/meta-flutter/recipes-graphics/flutter-engine/flutter-engine.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
1.How can I resolve the issues?
2.I am using the Git branch "dunfel."
3.Is Flutter engine version 3.24.5 supported in Yocto version 3.1.31?
Please help me how to resolve this issue*******
Regards
Honnesh
The text was updated successfully, but these errors were encountered: