problem about update Qt version to 5.6 with yocto

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

problem about update Qt version to 5.6 with yocto

跳至解决方案
2,577 次查看
chenyw
Contributor II

I want cross compile qt5.6 for imx6sx,but the lastest Qt version of yocto(i use imx-4.1.15-1.0.0_ga) is 5.5.1,

so i replace source/meta-qt5 with new meta-qt5 directory git clone from https://github.com/meta-qt5/meta-qt5.git and the branch is krogoth,then,bitbake fsl-image-qt5 without any problem except these warnings:

WARNING: QA Issue: gdb: invalid PACKAGECONFIG: readline [invalid-packageconfig]

WARNING: lttng-modules: no modules were created; this may be due to CONFIG_TRACEPOINTS not being enabled in your kernel.

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

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

WARNING: QA Issue: The /usr/share/info/dir file is not meant to be shipped in a particular package. [infodir]

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

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

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

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

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

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

WARNING: QA Issue: imx-gpu-viv: /imx-gpu-viv-tools/usr/bin/gmem_info is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

WARNING: QA Issue: imx-gpu-viv: /imx-gpu-viv-tools-apitrace/usr/lib/apitrace/wrappers/egltrace.so is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

but when i burn u-boot,zImage and rootfs to imx6 and run the qt demo(qt5everywheredemo-1.0), Segmentation fault is display like this:

file:///usr/share/qt5everywheredemo-1.0/qml/QtDemo/main.qml:124:5: QML FontLoader: Cannot load font: "file:///usr/share/qt5everywheredemo-1.0/qml/QtDemo/fonts/PatrickHandSC-Regular.ttf"
Segmentation fault.

so i make a test,  test.qml    like this:

Rectangle{

     color:"green";

}

it can run well; but when i add a line to Rectangle like this

Rectangle{

     color:"green"

     Text{text:"this is a test"}

}

I got a Segmentation fault again.

please tell me what should i do , thank you.

I have tried append freetype fontconfig uic these things to RDEPENDS and DEPENDS in source/meta-qt5/recipes-qt/qt5/qtbase_git.bb,but nothing changed.

0 项奖励
回复
1 解答
1,673 次查看
chenyw
Contributor II

Hi Bio_TICFSL

Can you describe details about what should i do, how to configure qtbase and eglfs with yocto . Whether the approach that replace meta-qt5 layer with new meta-qt5 directory git clone from https://github.com/meta-qt5/meta-qt5.gitis feasible

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,673 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Chen,

Apparently you need configure qtbase and build with eglfs in order to work with Qt5.6, also check DEGL_API_FB=1 to prevent imx-gpu-viv from including Xlib from EG/vivante.h

Hope this helps

0 项奖励
回复
1,674 次查看
chenyw
Contributor II

Hi Bio_TICFSL

Can you describe details about what should i do, how to configure qtbase and eglfs with yocto . Whether the approach that replace meta-qt5 layer with new meta-qt5 directory git clone from https://github.com/meta-qt5/meta-qt5.gitis feasible

0 项奖励
回复