如何使用bitbake构建QTPDF(w/o qtwebengine-core)

发布于 01-23 11:24 字数 5785 浏览 6 评论 0 原文

我尝试构建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 继承到食谱,但无效。

有任何解决错误的想法吗?

I try to build QtPDF without building the full QtWebEngine. According to the wiki page (https://wiki.qt.io/QtPDF_Build_Instructions) a simple -no-build-qtwebengine-core can be used to no build the core library.
For my yocto build I added a new recipe recipes-qt/qt5/qtwebengine_%.bbappend with just the configuration option:

EXTRA_QMAKEVARS_CONFIGURE += " \
    -no-build-qtwebengine-core \
"

Unfortunately I ended with a strange error:

/image/usr/lib/pkgconfig/Qt5WebEngineCore.pc: No such file or directory

with context:

| 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.

I also tried to add inherit pkgconfig to the recipe but with no effect.

Any ideas to fix the error?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七色彩虹 2025-01-30 11:24:43

我将移至 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 of meta-qt5 as it provides a special recipe for qtpdf (https://github.com/meta-qt5/meta-qt5/tree/kirkstone/recipes-qt/qt5)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文