imx8mq 编译器无法编译qml虚拟键盘库
请问谁通过现在这款编译器编译通过了qml虚拟键盘库,aarch64-poky-linux报如下错误:*** No rule to make target '/opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/bin/qmlcachegen', needed by '.qmlcache/content_styles_default_style_qml.cpp'.Stop.
gogle解决方法:
Hello,
if you have built sdk with bitbake poky, try this:cp ${BUILDROOT}/tmp/sysroots-components/x86_64/qtdeclarative-native/usr/bin {$SDKROOT}/sysroots/x86_64-petalinux-linux/usr/binthis worked for meregards
Enrico
方法无效报如下错误:/opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/bin/qmlcachegen: Syntax error: ")" unexpectedMakefile:937: recipe for target '.qmlcache/content_styles_default_style_qml.cpp' failedmake: *** [.qmlcache/content_styles_default_style_qml.cpp] Error 2
请问怎么解决该问题。
方便发一下您编译的库吗?以及您的操作,我们这边编译下试试,
Thanks! 谢谢您回复,原本用qml写的界面现在暂时只能用Qwidget,您帮我看看感激不尽
大致流程如下:(14条消息) Qt-Arm交叉编译以及调用虚拟键盘(中英)_u013142545的博客-CSDN博客
我编译的是:qt-everywhere-src-5.14.2.tar.xz文件太大无法上传。您可以下载一下Index of /archive/qt/5.14/5.14.2/single。
首先配置交叉编译环境:. /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux
进入qt文件夹:cd qt-everywhere-src-5.15.2/qtvirtualkeyboard/src/plugins/pinyin
执行qmake:/opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/bin/qmake
make生成Makefile文件。
进入/qt-everywhere-src-5.15.1/qtvirtualkeyboard/src/virtualkeyboard/目录,修改virtualkeyboard.pro,在Pro文件中对应的位置加入红色框的内容
执行qmake:/opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux/usr/bin/qmake
出错。
看了很多资料一直无法通过,virtual keyboard in QT5.7.1 | Qt Forum这里说需要编译qtdeclarative ,但是qtdeclarative 也无法编译通过。
Hi @saurabh162The problem is that you don't have QtQuick built for some reason. So you should go to build qtdeclarative and see why that is not building for you. If that builds and installs then try to build QtVirtualKeyboard again
https://forum.qt.io/topic/94267/virtual-keyboard-in-qt5-7-1/5 和他的问题一样。 zhengdaaimama 发表于 2021-5-8 16:59
https://forum.qt.io/topic/94267/virtual-keyboard-in-qt5-7-1/5 和他的问题一样。
抱歉,这个问题短时间内没办法给您回复,主要还得靠您自己来解决 嗯嗯,好的,谢谢您,我再研究研究。 zhengdaaimama 发表于 2021-5-10 16:45
嗯嗯,好的,谢谢您,我再研究研究。
/opt/fsl-imx-xwayland/5.4-zeus/sysroots/x86_64-pokysdk-linux
到开发环境的该目录下,解压
好的,谢谢您,我试试。 您好,您这块编译通过了吗?用您给的库还是有错误。
Makefile:982: recipe for target '.qmlcache/content_styles_default_style_qml.cpp' failed
make: *** [.qmlcache/content_styles_default_style_qml.cpp] Error 1
make: Leaving directory '/home/forlinx/imx8mq/qt-everywhere-src-5.13.2/qtvirtualkeyboard/src/virtualkeyboard'
Makefile:51: recipe for target 'sub-virtualkeyboard-make_first' failed
make: *** Error 2 zhengdaaimama 发表于 2021-5-19 15:53
您好,您这块编译通过了吗?用您给的库还是有错误。
Makefile:982: recipe for target '.qmlcache/content ...
您现在问题解决到哪一步了啊?
页:
[1]