読者です 読者をやめる 読者になる 読者になる

error: Can't install nativesdk-qt4-tools-4.8.7-r0@x86_64_nativesdk: no package provides libQtDBus.so.4()(64bit)

問題

bitbake meta-toolchain-qt がエラーで失敗する。

メッセージ
ERROR: meta-toolchain-qt-1.0-r7 do_populate_sdk: Unable to install packages. Command 'build/tmp/sysroots/x86_64-linux/usr/bin/smart --log-level=warning --data-dir=build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt/1.0-r7/sdk/image/var/lib/smart install -y nativesdk-packagegroup-qt-toolchain-host@x86_64_nativesdk packagegroup-cross-canadian-imx6qsabresd@x86_64_nativesdk' returned 1:
Computing transaction...error: Can't install nativesdk-qt4-tools-4.8.7-r0@x86_64_nativesdk: no package provides libQtDBus.so.4()(64bit)
ERROR: meta-toolchain-qt-1.0-r7 do_populate_sdk: Function failed: do_populate_sdk
ERROR: Logfile of failure stored in: build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt/1.0-r7/temp/log.do_populate_sdk
ERROR: Task 7 (meta-qt4/recipes-qt4/meta/meta-toolchain-qt.bb, do_populate_sdk) failed with exit code '1'
解決方法

meta-qt4/recipes-qt4/qt4/nativesdk-qt4-tools.inc を書き換える。

 do_install() {
     install -d ${D}${bindir}
     install -m 0755 bin/qmake2 ${D}${bindir}/qmake2
-    for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do
+    for i in moc uic rcc lrelease; do
         install -m 0755 bin/${i} ${D}${bindir}/${i}4
     done
 
     (cd ${D}${bindir}; \
     ln -s qmake2 qmake; \
-    for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \
+    for i in moc uic rcc lrelease; do \
         ln -s ${i}4 ${i}; \
     done)