Qt WebEngine 5.6 Recipe do_install

时间:2016-03-21 23:29:46

标签: qt sed embedded-linux yocto qtwebengine

我在Qt WebEngine 5.5 and 5.6 recipe

中找到了这些行

要使Qt Web Engine编译为5.6,我需要删除这些行。因为我不知道为什么qtwebengine-qmlplugins,qtwebengine-plugins和qtwebengine-examples都从构建中消失了。所以当这些行尝试从插件目录中删除文件时。它返回错误。

有人可以解释一下他们是什么意思吗?特别是sed一个。 Qt WebEngine 5.6中的Qtwebengine插件,qmlplugins和示例发生了什么?

do_install_append() {
    rmdir ${D}${OE_QMAKE_PATH_PLUGINS}/${BPN} ${D}${OE_QMAKE_PATH_PLUGINS} || true
    sed -i 's@ -Wl,--start-group.*-Wl,--end-group@@g; s@-L${B}[^ ]* @ @g' ${D}${libdir}/pkgconfig/Qt5WebEngineCore.pc
}

修改:这是编译错误

ERROR: Function failed: do_install (log file is located at /mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0/temp/log.do_install.3412)
ERROR: Logfile of failure stored in: /mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0/temp/log.do_install.3412
Log data follows:
| DEBUG: Executing shell function do_install
| NOTE: make -j 32 MAKEFLAGS=-j 32 OE_QMAKE_COMPILER=arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/sysroots/hio-imx6dl-board OE_QMAKE_CC=arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/sysroots/hio-imx6dl-board OE_QMAKE_CXX=arm-poky-linux-gnueabi-g++  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/sysroots/hio-imx6dl-board OE_QMAKE_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types OE_QMAKE_CXXFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden OE_QMAKE_LINK=arm-poky-linux-gnueabi-g++  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/sysroots/hio-imx6dl-board 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_WAYLAND_SCANNER=/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/sysroots/x86_64-linux/usr/bin/wayland-scanner OE_QMAKE_INCDIR_QT=/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/sysroots/hio-imx6dl-board//usr/include/qt5 install INSTALL_ROOT=/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0/image
| make: Nothing to be done for `install'.
| rmdir: failed to remove '/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0/image/usr/lib/qt5/plugins/qtwebengine': No such file or directory
| rmdir: failed to remove '/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0/image/usr/lib/qt5/plugins': No such file or directory
| sed: can't read /mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-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 /mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0/temp/log.do_install.3412)
ERROR: Task 1523 (/mountdata/hio-yocto-bsp/qt5jethro/sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5404 tasks of which 5363 didn't need to be rerun and 1 failed.
No currently running tasks (5404 of 5417)

修改:我发现还有一个额外的/ .../hio-imx6dl-board//usr/include...。我已移除/中的OE_QMAKE_INCDIR_QT='${STAGING_DIR_TARGET}/${OE_QMAKE_PATH_HEADERS}',但仍然会遇到相同的错误。

OE_QMAKE_INCDIR_QT=/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/sysroots/hio-imx6dl-board//usr/include/qt5 install INSTALL_ROOT=/mountdata/hio-yocto-bsp/qt5jethro/qt5/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtwebengine/5.5.99+5.6.0-rc+gitAUTOINC+3f02c25de4_779a2388fc-r0/image

1 个答案:

答案 0 :(得分:0)

由于缺少dbus,可能出现多个解决方案而发生此错误:

  1. 将dbus添加到您的图片中。
  2. 将行添加到qtwebengine_git.bb:DEPENDS += "dbus"