Hallo all,
I have to inherit qt5 instead of qt4e in my recipes. I have replaced inherit qmake5
in the place of inherit qt4e
from my old recipe, but expiriencing errors. What would be the mistake.
Thank you
Hallo all,
I have to inherit qt5 instead of qt4e in my recipes. I have replaced inherit qmake5
in the place of inherit qt4e
from my old recipe, but expiriencing errors. What would be the mistake.
Thank you
Can you please provide more details? What exactly does this recipe do? Can you share the recipe and the exact error log file generated by OpenEmbedded? A bitbake recipe example for building a standard Qt5 project can be as follows.
SUMMARY = "Colibri iMX7 Low Power Demo"
DESCRIPTION = "Colibri iMX7 Low Power Demo for Embedded World"
HOMEPAGE = "www.toradex.com"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "qtcharts qtserialport"
SRCREV = "60cb0c801b15b4e9ee37cd63e36ff22de015cbbd"
SRC_URI = "git://github.com/SanchayanMaity/EmbeddedWorldLowPowerDemo.git;protocol=https;branch=master"
S = "${WORKDIR}/git"
inherit qmake5
We have our own custom linux image which have own recipes. Previously we were using older linux image V2.5. Now we upgraded to V2.7. Previously for our recipes we have inherited qt4e in recipes. Now we would like to upgrade to qt5. So I tried to change inherit qt4e to qmake5 in my recipes. but it doesn’t work.
Here is the following error occured for us while baking:
cc@cc:~/src/oe-core/build$ bitbake vrl
Loading cache: 100% |############################################| Time: 0:00:01
Loaded 3467 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:02
Parsing of 2707 .bb files complete (2700 cached, 7 parsed). 3473 targets, 278 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/cc/src/oe-core/build/../layers/meta-jetson-tk1/recipes-graphics/mesa/mesa_11.1.1.bbappend
NOTE: There are 1 recipes to be removed from sysroot armv7at2hf-neon, removing...
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "arm-angstrom-linux-gnueabi"
MACHINE = "apalis-imx6"
DISTRO = "angstrom"
DISTRO_VERSION = "v2016.12"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-angstrom = "HEAD:ee90314737ce65dcc902a75ea7a1941bb38401aa"
meta-toradex-nxp = "HEAD:ee77ef53d35284bcacc77e849dd30a36fe263ef2"
meta-freescale = "HEAD:6ec09e6a0f09d1cb9c3761b339590c0a0baeeeb3"
meta-freescale-3rdparty = "HEAD:69ed94bb781a9c1bfbba4fb3026e4cbf3a194878"
meta-toradex-tegra = "HEAD:6363c6fcf4d7f0cb7dfc4b2e7f680e274c45d207"
meta-jetson-tk1 = "HEAD:e8b87fe8da7c6fcffa37ab245f50082953cc1ee1"
meta-toradex-bsp-common = "HEAD:05faa6a4346eeb7631fe72bcbb9aa7d414bee791"
meta-linaro-toolchain = "HEAD:407fe60740240b3115531cbed129f1e186bfbe3e"
meta-oe
meta-efl
meta-gpe
meta-gnome
meta-xfce
meta-initramfs
meta-systemd
meta-networking
meta-multimedia
meta-python = "HEAD:1efa5d623bc64659b57389e50be2568b1355d5f7"
meta-lxde = "HEAD:9c1501dcb95a8601c8d1fad73c1fcae2886c0377"
meta-browser = "HEAD:1edcce7791b4cee9a515c1f11b351753a4f8b12e"
meta-qt4 = "HEAD:2c7f8df9039be498f8a2232d1428adb7f4e5e800"
meta-qt5 = "HEAD:9aa870eecf6dc7a87678393bd55b97e21033ab48"
meta-freescale-distro = "HEAD:ae27e8a8a068b960d6c1219f50b2e8ccc97f0bea"
meta-toradex-demos = "HEAD:9fa810182cbb085554ad3a596db6dbf1fc9a0a73"
meta-vrl = "master_cc:f2c88ae01ee04898393bd55b963122a36f568ef8"
meta = "HEAD:c8d96b10ee3bc2eae0fd269d2564286fd0bc82ed"
Initialising tasks: 100% |#######################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: vrl-1.1.1.2-r0 do_install: Function failed: do_install (log file is located at /home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/vrl/1.1.1.2-r0/temp/log.do_install.5047)
ERROR: Logfile of failure stored in: /home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/vrl/1.1.1.2-r0/temp/log.do_install.5047
Log data follows:
| DEBUG: Executing shell function do_install
| cp: cannot stat '/home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/vrl/1.1.1.2-r0/git/libvrl*': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /home/cc/src/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/vrl/1.1.1.2-r0/temp/log.do_install.5047)
ERROR: Task (/home/cc/src/oe-core/build/../layers/meta-vrl/recipes-tcs/vrl/vrl_1.1.1.2.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 620 tasks of which 613 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Summary: 1 task failed:
/home/cc/src/oe-core/build/../layers/meta-vrl/recipes-tcs/vrl/vrl_1.1.1.2.bb:do_install
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
But when i change from qmake5 to qt4e
i doesnot get this error.
Here is the .inc file and .bb file
vrl.inc file:
SUMMARY = "XXXXX-XXX daemon to get access to XXXXX Devices"
HOMEPAGE = "XXXXXXXX"
SECTION = "XXXXXXX"
LICENSE = "CLOSED"
inherit qt4e
inherit systemd
SYSTEMD_SERVICE_${PN} = "XXXXX.XXX XXXXX.XXX"
SRC_URI = " \
git://XXXXX/XXX.git;branch=master \
file://XXXXX.XXX \
file://XXXXX.XXX \
"
S = "${WORKDIR}/git"
DEPENDS += "XXX"
PROVIDES += "XXX-XXX"
PROVIDES += "XXXXXX"
QMAKE_PROFILES = "${S}/XXX.pro \
"
EXTRA_QMAKEVARS_PRE = " \
CONFIG+=SYSTEMD_SOCKET_ACTIVATION \
"
do_install () {
install -d ${D}${libdir}
#use here cp instead of install because of symlinks
cp -pr ${S}/XXX* ${D}${libdir}
#install -m 0644 ${S}/XXX-XXX* ${STAGING_LIBDIR}/
#install -m 0644 ${S}/XXXXX* ${STAGING_LIBDIR}/
install -d ${D}${bindir}
install -m 0755 ${S}/XXXXX ${D}${bindir}
install -d ${D}${includedir}
install -m 0644 ${S}/XXXXX.h ${D}${includedir}
install -m 0644 ${S}/XXXXX.h ${D}${includedir}
install -m 0644 ${S}/XXXXX.h ${D}${includedir}
install -d ${D}/opt/XXX/XXXXX
install -m 0755 ${S}/XXXXX ${D}/opt/XXX/XXXXX
install -m 0755 ${S}/XXXXX ${D}/opt/XXX/XXXXX
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/../XXX.XXX ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/../XXX.XXX ${D}${systemd_unitdir}/system/
#install -d ${D}/www/pages/XXX/doc/XXX
#cp -r ${S}/doc/* ${D}/www/pages/XXX/doc/XXX
#install -m 0044 ${S}/doc/*html ${D}/www/pages/XXX/doc/XXX/
#install -m 0044 ${S}/doc/*png ${D}/www/pages/XXX/doc/XXX/
}
FILES_${PN} += " \
/opt/XXX/XXX \
/www/pages/XXX/doc/XXX \
"
FILES_${PN}-dbg += " \
/opt/XXX/XXX/.debug \
/opt/XXX/XXX/.debug/XXXXX \
/opt/XXX/XXX/.debug/XXXXX \
/opt/XXX/XXX/.debug/XXXXX \
"
FILES_${PN}-dev += " \
${includedir} \
"
vrl.bb file:
require vrl.inc
#TODO change to fixed revision id
SRCREV = "${AUTOREV}"
#SRCREV = "131778c5t462356d33385463a1bt526a333848a4"
#PV = "1.0.1.7+git${SRCPV}"
SRC_URI += " \
file://0003-use-my-logpath.patch \
"