WARNING: Host distribution ... has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.

メッセージ

WARNING: Host distribution “AmazonLinuxAMI-2016.09” has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.

警告: ホストのディストリビューション “AmazonLinuxAMI-2016.09” は、このビルドシステムバージョンで検証されていない。予期しない失敗をする可能性がある。テストされたディストリビューションを使うことを勧める。

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)

WARNING: ... do_package_qa: QA Issue: ... rdepends on ..., but it isn't a build dependency? [build-deps]

メッセージ

WARNING: nativesdk-qt4-tools-4.8.7-r0 do_package_qa: QA Issue: nativesdk-qt4-tools rdepends on qt4-native, but it isn’t a build dependency? [build-deps]

警告: nativesdk-qt4-tools-4.8.7-r0 do_package_qa: QA 問題: nativesdk-qt4-tools は qt4-native に rdepends するが、build dependency では無いのでは? [build-deps]

WARNING: ... do_package_qa: QA Issue: ... contained in package ... requires ..., but no providers found in RDEPENDS_...? [file-rdeps]

メッセージ

WARNING: nativesdk-qt4-tools-4.8.7-r0 do_package_qa: QA Issue: /opt/poky/2.1.1/sysroots/x86_64-pokysdk-linux/usr/bin/qdbusxml2cpp4 contained in package nativesdk-qt4-tools requires libQtXml.so.4()(64bit), but no providers found in RDEPENDS_nativesdk-qt4-tools? [file-rdeps]

警告: nativesdk-qt4-tools-4.8.7-r0 do_package_qa: QA の問題: パッケージ nativesdk-qt4-tools に含まれる /opt/poky/2.1.1/sysroots/x86_64-pokysdk-linux/usr/bin/qdbusxml2cpp4 は libQtXml.so.4()(64bit) を必要とする, しかし RDEPENDS_nativesdk-qt4-tools に提供するものが無いのでは? [file-rdeps]

ld: cannot find -lQtXml -lQtGui -lQtNetwork

問題

nativesdk-qt4-tools のビルド中にエラーが発生する。

メッセージ
./build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/5.3.0/ld: cannot find -lQtXml
collect2: error: ld returned 1 exit status
make: *** [../../lib/libQtDBus.so.4.8.7] Error 1
WARNING: exit code 1 from a shell command.
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at ./build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qt4-tools/4.8.7-r0/temp/log.do_compile)
./build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/5.3.0/ld: cannot find -lQtGui
./build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-pokysdk-linux/gcc/x86_64-pokysdk-linux/5.3.0/ld: cannot find -lQtNetwork
collect2: error: ld returned 1 exit status
make: *** [../../lib/libQt3Support.so.4.8.7] Error 1
WARNING: exit code 1 from a shell command.
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at ./build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qt4-tools/4.8.7-r0/temp/log.do_compile)
解決方法

meta-qt4/recipes-qt4/qt4/nativesdk-qt4-tools.inc の TOBUILD の値を並べ替える。

  • “src/xml” を “src/dbus” の前に移動する。
  • “src/network” と “src/gui” を “src/dt3support” の前に移動する。
 TOBUILD = "\
   src/tools/bootstrap \
   src/tools/moc \
   src/corelib \
   src/sql \
+  src/xml \
   src/dbus \
+  src/network \
+  src/gui \
   src/qt3support \
-  src/xml \
   src/tools/uic \
   src/tools/rcc \
-  src/network \
-  src/gui \
   src/tools/uic3 \
   tools/linguist/lrelease \
   tools/linguist/lupdate \
   tools/qdbus \
 "

fatal: Refusing to fetch into current branch ... of non-bare repository

メッセージ

fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository

致命的: 非ベアリポジトリーのカレントブランチ refs/heads/master へのフェッチを拒否されている