SAMA5D27 (sama5d27-som1-ek) Board and QT5 Webengine - Error on Yocto build

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

dieguz
Posts: 5
Joined: Thu Oct 25, 2018 6:25 pm

SAMA5D27 (sama5d27-som1-ek) Board and QT5 Webengine - Error on Yocto build

Thu Oct 25, 2018 6:30 pm

i tried to build an image Yocto with atmel, i followed the procedure in "https://github.com/linux4sam/meta-atmel" and i successful create a minimal image and demo images.

The next step is to activate the qtwebengine librarry to images but i have a problem. Below are the steps performed and the error.

1) I added in "conf/local.conf" :

IMAGE_INSTALL += " \
qtwebengine \
qtwebengine-qmlplugins \
"



2) Re run bitbake with this error :
ERROR: Task (/opt/inst/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_install) failed with exit code '1'
| make: Nothing to be done for 'install'.
| sed: can't read /opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/image/usr/lib/pkgconfig/Qt5WebEngineCore.pc: No such file or directory
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_install (log file is located at /opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/temp/log.do_install.31483)
ERROR: Task (/opt/inst/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_install) failed with exit code '1

I looked for the file "Qt5WebEngineCore.pc" in the folders under "tmp/work" but it does not exist.

Do you have any hints to solve the problem and help me ?

Thank you very much!
User avatar
koan
Contact:
Location: Bergamo, Italia
Posts: 209
Joined: Wed May 12, 2004 6:59 pm

Re: SAMA5D27 (sama5d27-som1-ek) Board and QT5 Webengine - Error on Yocto build

Tue Oct 30, 2018 4:11 pm

Which Yocto version are you using?
Can you post the bitbake log at the beginning?
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel. +39-(0)35-255.235 - Fax +39-178-223.9748
http://www.KoanSoftware.com | http://www.KaeilOS.com
dieguz
Posts: 5
Joined: Thu Oct 25, 2018 6:25 pm

Re: SAMA5D27 (sama5d27-som1-ek) Board and QT5 Webengine - Error on Yocto build

Wed Oct 31, 2018 12:05 pm

Hi Marco,

Yocto version : git clone git://git.yoctoproject.org/poky -b sumo
QT5 versione : git clone git://code.qt.io/yocto/meta-qt5.git (checkout v5.9.6)

Full log :

Code: Select all

Initialising tasks: 100% |############################################################################################################################################| Time: 0:00:06
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: qtwebengine-5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0 do_install: Function failed: do_install (log file is located at /opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/temp/log.do_install.2569)
ERROR: Logfile of failure stored in: /opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/temp/log.do_install.2569
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/opt/inst/poky/meta/recipes-support/libevent/libevent_2.1.8.bb:do_populate_sysroot', '/opt/inst/meta-qt5/recipes-qt/qt5/qtwebchannel_git.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-devtools/perl/perl-native_5.24.1.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-bsp/pciutils/pciutils_3.5.6.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', '/opt/inst/meta-qt5/recipes-qt/qt5/qtquickcontrols2_git.bb:do_populate_sysroot', '/opt/inst/meta-qt5/recipes-qt/qt5/qtbase-native_git.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/opt/inst/poky/meta/recipes-devtools/yasm/yasm_1.3.0.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-multimedia/alsa/alsa-lib_1.1.5.bb:do_populate_sysroot', 'virtual:native:/opt/inst/poky/meta/recipes-core/gettext/gettext_0.19.8.1.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-graphics/pango/pango_1.40.14.bb:do_populate_sysroot', '/opt/inst/meta-qt5/recipes-qt/qt5/qtquickcontrols_git.bb:do_populate_sysroot', '/opt/inst/meta-openembedded/meta-oe/recipes-multimedia/webm/libvpx_1.6.1.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-multimedia/flac/flac_1.3.2.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-support/libxslt/libxslt_1.1.32.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb:do_populate_sysroot', '/opt/inst/meta-qt5/recipes-qt/qt5/qtlocation_git.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-support/nss/nss_3.35.bb:do_populate_sysroot', '/opt/inst/meta-qt5/recipes-qt/qt5/qtxmlpatterns_git.bb:do_populate_sysroot', '/opt/inst/meta-qt5/recipes-qt/qt5/qtdeclarative_git.bb:do_populate_sysroot', 'virtual:native:/opt/inst/poky/meta/recipes-extended/gperf/gperf_3.1.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-graphics/cairo/cairo_1.14.12.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-graphics/drm/libdrm_2.4.91.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-multimedia/webp/libwebp_0.6.1.bb:do_populate_sysroot', '/opt/inst/meta-openembedded/meta-oe/recipes-multimedia/libopus/libopus_1.1.3.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-support/libcap/libcap_2.25.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-core/glibc/glibc_2.27.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-core/dbus/dbus_1.12.2.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-graphics/xorg-lib/pixman_0.34.0.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-multimedia/ffmpeg/ffmpeg_3.4.2.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-connectivity/openssl/openssl_1.0.2p.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-support/icu/icu_60.2.bb:do_populate_sysroot', '/opt/inst/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-devtools/python/python-native_2.7.14.bb:do_populate_sysroot', 'virtual:native:/opt/inst/poky/meta/recipes-devtools/ninja/ninja_1.8.2.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', 'virtual:native:/opt/inst/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/opt/inst/poky/meta/recipes-multimedia/speex/speex_1.2.0.bb:do_populate_sysroot', 'virtual:native:/opt/inst/poky/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['pseudo-native']
| NOTE: Skipping as already exists in sysroot: ['libevent', 'qtwebchannel', 'perl-native', 'pciutils', 'gcc-runtime', 'qtquickcontrols2', 'qtbase-native', 'quilt-native', 'yasm-native', 'alsa-lib', 'gettext-native', 'pango', 'qtquickcontrols', 'libvpx', 'flac', 'libxslt', 'fontconfig', 'qtlocation', 'nss', 'qtxmlpatterns', 'qtdeclarative', 'gperf-native', 'cairo', 'libdrm', 'libwebp', 'libopus', 'libcap', 'glibc', 'dbus', 'pixman', 'ffmpeg', 'openssl', 'icu', 'qtbase', 'python-native', 'ninja-native', 'gcc-cross-arm', 'speex', 'bison-native', 'zlib', 'qtwebsockets', 'zlib-native', 'gdbm-native', 'db-native', 'xz-native', 'kmod', 'systemd', 'linux-libc-headers', 'libgcc', 'dbus-native', 'automake-native', 'gnu-config-native', 'gettext-minimal-native', 'libtool-native', 'autoconf-native', 'texinfo-dummy-native', 'pkgconfig-native', 'gobject-introspection', 'glib-2.0', 'harfbuzz', 'freetype', 'libogg', 'libxml2', 'expat', 'nspr', 'sqlite3', 'libpng', 'libpciaccess', 'libpthread-stubs', 'ne10', 'libpam', 'shadow', 'initscripts', 'base-passwd', 'autoconf-archive', 'shadow-native', 'base-files', 'shadow-sysroot', 'update-rc.d', 'util-macros', 'xz', 'libtheora', 'x264', 'bzip2', 'cryptodev-linux', 'tslib', 'libinput', 'libjpeg-turbo', 'libxkbcommon', 'readline-native', 'expat-native', 'bzip2-native', 'openssl-native', 'sqlite3-native', 're2c-native', 'gmp-native', 'mpfr-native', 'libmpc-native', 'flex-native', 'binutils-cross-arm', 'speexdsp', 'opkg-utils', 'bash-completion', 'util-linux', 'libcgroup', 'readline', 'acl', 'autoconf-archive-native', 'm4-native', 'python3', 'libffi', 'libpcre', 'cracklib', 'flex', 'attr', 'mtdev', 'libevdev', 'ncurses-native', 'ncurses', 'gdbm']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| NOTE: make -j 4 MAKEFLAGS=-j 4 OE_QMAKE_COMPILER=arm-poky-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a5 --sysroot=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/recipe-sysroot OE_QMAKE_CC=arm-poky-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a5 --sysroot=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/recipe-sysroot OE_QMAKE_CXX=arm-poky-linux-gnueabi-g++  -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a5 --sysroot=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/recipe-sysroot OE_QMAKE_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0=/usr/src/debug/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0 -fdebug-prefix-map=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/recipe-sysroot= -fdebug-prefix-map=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/recipe-sysroot-native=  OE_QMAKE_CXXFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0=/usr/src/debug/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0 -fdebug-prefix-map=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/recipe-sysroot= -fdebug-prefix-map=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden OE_QMAKE_LINK=arm-poky-linux-gnueabi-g++  -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a5 --sysroot=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/recipe-sysroot OE_QMAKE_LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed OE_QMAKE_AR=arm-poky-linux-gnueabi-ar OE_QMAKE_STRIP=echo OE_QMAKE_INCDIR_QT=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/recipe-sysroot//usr/include/qt5 install INSTALL_ROOT=/opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/image
| make: Nothing to be done for 'install'.
| sed: can't read /opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/image/usr/lib/pkgconfig/Qt5WebEngineCore.pc: No such file or directory
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_install (log file is located at /opt/inst/poky/build-microchip/tmp/work/cortexa5hf-neon-poky-linux-gnueabi/qtwebengine/5.9.6+gitAUTOINC+cc526afe9c_e517527148-r0/temp/log.do_install.2569)
ERROR: Task (/opt/inst/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3571 tasks of which 3563 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /opt/inst/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_install
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
dieguz
Posts: 5
Joined: Thu Oct 25, 2018 6:25 pm

Re: SAMA5D27 (sama5d27-som1-ek) Board and QT5 Webengine - Error on Yocto build

Wed Oct 31, 2018 12:34 pm

missing log :

Code: Select all

Loading cache: 100% |#################################################################################################################################################| Time: 0:00:00
Loaded 3094 entries from dependency cache.
Parsing recipes: 100% |###############################################################################################################################################| Time: 0:00:04
Parsing of 2209 .bb files complete (2208 cached, 1 parsed). 3095 targets, 315 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task censored dependencies

Build Configuration:
BB_VERSION           = "1.38.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "sama5d2-xplained"
DISTRO               = "poky-atmel"
DISTRO_VERSION       = "2.5.1"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard cortexa5"
TARGET_FPU           = "hard"
meta
meta-poky
meta-yocto-bsp       = "sumo:d240b885f26e9b05c8db0364ab2ace9796709aad"
meta-atmel           = "sumo:1ebf077aa01c3f92fc69ff9c6ac686e7cf24d93e"
meta-oe
meta-networking
meta-python
meta-multimedia
meta-webserver       = "sumo:2bb21ef27c4b0c9d52d30b3b2c5a0160fd02b966"
meta-qt5             = "HEAD:49e9d9a73b5c6e3d6eab88dc0005305e85b1a62d"
User avatar
koan
Contact:
Location: Bergamo, Italia
Posts: 209
Joined: Wed May 12, 2004 6:59 pm

Re: SAMA5D27 (sama5d27-som1-ek) Board and QT5 Webengine - Error on Yocto build

Wed Oct 31, 2018 8:19 pm

dieguz wrote:
Wed Oct 31, 2018 12:05 pm
Hi Marco,

Yocto version : git clone git://git.yoctoproject.org/poky -b sumo
QT5 versione : git clone git://code.qt.io/yocto/meta-qt5.git (checkout v5.9.6)

Hi,
in order to avoid problems, you'd better to align the qt5 meta layer (and every layer for this project) to the same branch (sumo)

Code: Select all

git clone git://code.qt.io/yocto/meta-qt5.git -b sumo
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel. +39-(0)35-255.235 - Fax +39-178-223.9748
http://www.KoanSoftware.com | http://www.KaeilOS.com
dieguz
Posts: 5
Joined: Thu Oct 25, 2018 6:25 pm

Re: SAMA5D27 (sama5d27-som1-ek) Board and QT5 Webengine - Error on Yocto build

Fri Nov 02, 2018 5:46 pm

Nothing to do, I've aligned qt5 with sumo branch but i have the same error.
Probably missing some configuration but I can't find it.

Code: Select all

Build Configuration:
BB_VERSION           = "1.38.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "sama5d2-xplained"
DISTRO               = "poky-atmel"
DISTRO_VERSION       = "2.5.1"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard cortexa5"
TARGET_FPU           = "hard"
meta
meta-poky
meta-yocto-bsp       = "sumo:d240b885f26e9b05c8db0364ab2ace9796709aad"
meta-atmel           = "sumo:1ebf077aa01c3f92fc69ff9c6ac686e7cf24d93e"
meta-oe              = "sumo:2bb21ef27c4b0c9d52d30b3b2c5a0160fd02b966"
meta-qt5             = "upstream/sumo:d0ef3c0819e03af4982ba6066bcda8967bedb44a"

Thanks anyway Marco
(p.s. salutami Bergamo!)
User avatar
koan
Contact:
Location: Bergamo, Italia
Posts: 209
Joined: Wed May 12, 2004 6:59 pm

Re: SAMA5D27 (sama5d27-som1-ek) Board and QT5 Webengine - Error on Yocto build

Fri Nov 02, 2018 7:32 pm

dieguz wrote:
Fri Nov 02, 2018 5:46 pm
Nothing to do, I've aligned qt5 with sumo branch but i have the same error.
Probably missing some configuration but I can't find it.
Hi,
which image are you building?
What kind of modification did you do in local.conf?
Only the two lines you said at the beginning of this thread?

Ciao
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel. +39-(0)35-255.235 - Fax +39-178-223.9748
http://www.KoanSoftware.com | http://www.KaeilOS.com
dieguz
Posts: 5
Joined: Thu Oct 25, 2018 6:25 pm

Re: SAMA5D27 (sama5d27-som1-ek) Board and QT5 Webengine - Error on Yocto build

Fri Nov 02, 2018 7:48 pm

which image are you building?

core-image-minimal

What kind of modification did you do in local.conf?
Only the two lines you said at the beginning of this thread?

The last local.conf

Code: Select all

MACHINE ??= "sama5d2-xplained"
DL_DIR ?= "/opt/inst/downloads"
DISTRO ?= "poky"
PACKAGE_CLASSES ?= "package_ipk"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"


BB_NUMBER_THREADS = '2'
PARALLEL_MAKE = '-j 2'

LICENSE_FLAGS_WHITELIST += " commercial"
SYSVINIT_ENABLED_GETTYS = ""

IMAGE_FSTYPES += "wic"

CORE_IMAGE_EXTRA_INSTALL += " openssh"

IMAGE_INSTALL_append = " \
	qtwebengine \
"

DISTRO = "poky-atmel"

Return to “LINUX”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests