Hi NXP
Our customer need to update the qt5.10 to qt5.19 on Yocto 3.0 5.4.70?
Do you have solution to update it?
We try to modify the meta-qt5/recipes-qt/qt5/qt-git.inc.
But compiler fail.
使用yocto3.0 升级 qt 为高版本的情况。如下是尝试了两种方式,分别的记录情况。以及分别对应附件log。
================================== 第一种方式,直接修改yocto3.0 对应的meta-qt5中的文件内的版本号, 进行尝试 ========================================
使用原本自带的meta-qt5 进行修改qt版本为 5.15.19. 编译不成功。
详细log如附件《log_qt5_15_19.txt》
操作步骤详情如下记录:
使用默认的 commit 21ce4c124d9a972d9122f87c64ac2773bf04c284
如下两张图示:
进行bitbake imx-image-full 的编译看情况。详细log如附件《log_qt5_15_19.txt》
误log的一小部分截图如下所示
================================== 第二种方式,采用meta-qt5 这一层,更新到最新的code, 进行尝试 ========================================
基于yocto3.0工程下的meta-qt5 使用git pull 到最新。Qt版本显示为5.15.16。意图在此工程下,将qt升级到此meta-qt5 所支持的最新版本。
编译错误的log如附件:《log_qt5_15_16.txt》
操作步骤详情如下记录:
meta-qt5 使用git pull 到最新。Commit 信息如下 ,以及Qt版本显示为5.15.16。
Commit 9d9966d81d6a98876f3919127ece3a6829edf609
如下图示:
因此layer版本较新,格式不同于旧版本的yocto工程语法结构。
故,将此layer下的每个bb文件的格式修改为旧版本的格式,例如 以 “ : ” 的替换成旧版使用的 “ _ ” 符号。
如下两张图示:
其它文件也是 诸如此类的符号修改如下图
编译显示,在poky下缺少一些python相关的文件。因yocto3.0下没有这些内容.
经查看ycoto4.0工程下存在这些内容,故将yocto4.0的 poky中,对应用到的文件拷贝过来使用。
python3targetconfig.bbclass
python_pep517.bbclass
python_setuptools_build_meta.bbclass
setuptools3-base.bbclass
如下图示:
此后 先,尝试编译qtbase看看情况。编译结果显示很多错误。其中包含,显示某些patch打不上。
详细的log保存如附件log文档。 《log_qt5_15_16.txt》
错误log的一小部分截图如下所示:
Hi @charleshuang
The first method is more suitable, the probability that the second method can work is very low, the new version of the bb file only adapts to the new version of the yocto environment, it is very hard to adapt to the lower version by changing the bb file.
When trying the first step, we suggest customers to check the log under /tmp/work/armv8a-poky-linux/qtxxx/xxx/temp/, which will have specific error messages, and then modify the bb file according to the error messages. Or bitbake compile with -DDD to print the error message to shell terminal.
Best Regards,
Zhiming