如何使用bitbake构建QTPDF(w/o qtwebengine-core)
我尝试构建QTPDF而不构建完整的Qtwebengine。根据Wiki页面( -no-Build-Qtwebengine-core 可以用来无构建核心库。
对于我的yocto构建,我添加了一个新的食谱 coppes-qt/qt5/qtwebengine _%。bbappend
,只有配置选项:
EXTRA_QMAKEVARS_CONFIGURE += " \
-no-build-qtwebengine-core \
"
不幸的是,我以奇怪的错误结尾
/image/usr/lib/pkgconfig/Qt5WebEngineCore.pc: No such file or directory
:
| cd pdf/ && ( test -e Makefile || xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot-native/usr/bin/qmake -o Makefile xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/git/src/plugins/imageformats/pdf/pdf.pro CONFIG+=force_debug_info QT_BUILD_PARTS-=examples QT_BUILD_PARTS-=tests 'QMAKE_CXX=arm-poky-linux-gnueabi-g++ -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -fstack-protector-strong -D_FORTIFY_SOURCE=2 --sysroot=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot' 'QMAKE_CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -fstack-protector-strong -D_FORTIFY_SOURCE=2 --sysroot=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot' 'QMAKE_LINK=arm-poky-linux-gnueabi-g++ -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -fstack-protector-strong -D_FORTIFY_SOURCE=2 --sysroot=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot' 'QMAKE_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0=/usr/src/debug/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0 -fdebug-prefix-map=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0=/usr/src/debug/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0 -fdebug-prefix-map=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot= -fdebug-prefix-map=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot-native= ' 'QMAKE_CXXFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0=/usr/src/debug/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0 -fdebug-prefix-map=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0=/usr/src/debug/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0 -fdebug-prefix-map=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot= -fdebug-prefix-map=xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot-native= -fvisibility-inlines-hidden' -after ) && make -f Makefile install
| make[4]: Entering directory 'xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/build/src/plugins/imageformats/pdf'
| xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot-native/usr/bin/qmake -install qinstall -exe ../../../../plugins/imageformats/libqpdf.so xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/image/usr/lib/plugins/imageformats/libqpdf.so
| xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/recipe-sysroot-native/usr/bin/qmake -install qinstall xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/build/lib/cmake/Qt5Gui/Qt5Gui_QPdfPlugin.cmake xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/image/usr/lib/cmake/Qt5Gui/Qt5Gui_QPdfPlugin.cmake
| make[4]: Leaving directory 'xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/build/src/plugins/imageformats/pdf'
| make[3]: Leaving directory 'xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/build/src/plugins/imageformats'
| make[2]: Leaving directory 'xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/build/src/plugins'
| make[1]: Leaving directory 'xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/build/src'
| sed: can't read xxx/build/poky/build/tmp/work/armv7at2hf-neon-imx-poky-linux-gnueabi/qtwebengine/5.15.0+gitAUTOINC+f526855509_7b2f027ea8-r0/image/usr/lib/pkgconfig/Qt5WebEngineCore.pc: No such file or directory
| WARNING: exit code 2 from a shell command.
我还尝试添加将PKGConfig
继承到食谱,但无效。
有任何解决错误的想法吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将移至
kirkstone
meta-qt5
的分支,因为它为qtpdf提供了特殊的配方( https://github.com/meta-qt5/meta-qt5/meta-qt5/meta-qt5/tree/kirkstone/kirkstone/recipes-recipes-qt/qt/qt5 )I will move to the
kirkstone
branch ofmeta-qt5
as it provides a special recipe for qtpdf (https://github.com/meta-qt5/meta-qt5/tree/kirkstone/recipes-qt/qt5)