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 の値を並べ替える。
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 へのフェッチを拒否されている
WARNING: Failed to fetch URL http://..., attempting MIRRORS if available
警告: URL http://... の取得に失敗しました。ミラーが使えないか試してみます。
cannot allocate an object of abstract type 'QDeclarativePrivate::QDeclarativeElement<MyClass>'
エラーメッセージ
error: cannot allocate an object of abstract type 'QDeclarativePrivate::QDeclarativeElement<MyClass>' note: because the following virtual functions are pure within 'QDeclarativePrivate::QDeclarativeElement<MyClass>': note: virtual void MyClass::myFunction()
訳
エラー: 抽象型 'QDeclarativePrivate::QDeclarativeElement<MyClass>' のオブジェクトをアロケートできない 注記: 理由は右記の仮想関数が純粋仮想関数のため。 'QDeclarativePrivate::QDeclarativeElement<MyClass>': 注記: virtual void MyClass::myFunction()
原因
MyClass を qmlRegisterType() で登録していたため。
解決方法
純粋仮想関数をあきらめて、空関数を実装した。