Yocto4.9.88:bitbake meta-toolchain-qt5 fail

cancel
Showing results for 
Search instead for 
Did you mean: 

Yocto4.9.88:bitbake meta-toolchain-qt5 fail

2,341 Views
Contributor III

Dear Sir,

     在编译meta-toolchain-qt5是,出现两个错误:

ERROR: meta-toolchain-qt5-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/yhluo/project_yocto/imx6_yocto_4.9.88_src/build-qt5/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/yhluo/project_yocto/imx6_yocto_4.9.88_src/build-qt5/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/sdk/image/etc/dnf/dnf.conf --setopt=reposdir=/home/yhluo/project_yocto/imx6_yocto_4.9.88_src/build-qt5/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/sdk/image/etc/yum.repos.d --repofrompath=oe-repo,/home/yhluo/project_yocto/imx6_yocto_4.9.88_src/build-qt5/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/oe-sdk-repo --installroot=/home/yhluo/project_yocto/imx6_yocto_4.9.88_src/build-qt5/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/sdk/image --setopt=logdir=/home/yhluo/project_yocto/imx6_yocto_4.9.88_src/build-qt5/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/temp --nogpgcheck install nativesdk-packagegroup-sdk-host packagegroup-cross-canadian-imx6solosabresd nativesdk-packagegroup-qt5-toolchain-host' returned 1:
Added oe-repo repo from /home/yhluo/project_yocto/imx6_yocto_4.9.88_src/build-qt5/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt5/1.0-r0/oe-sdk-repo

......

Running transaction test
Error: Transaction check error:
file /opt/fsl-imx-fb/4.9.88-2.0.0/sysroots/x86_64-pokysdk-linux/environment-setup.d conflicts between attempted installs of nativesdk-cmake-3.8.2-r0.x86_64_nativesdk and nativesdk-qtbase-tools-5.9.4+git0+0d9208cecb-r0.x86_64_nativesdk

具体信息如下:

Host: Ubuntu 14.04, 64bit, (Virtulbox)

Yocto: 4.9.88 ga

Device: i.mx6solo

详细的log详见附件。

   谢谢!

  Yonghe.Luo

Labels (4)
10 Replies

134 Views
NXP TechSupport
NXP TechSupport

Hi Yonghe

one can try wit Ubuntu 14.04 and follow attached Yocto Guide

building image fsl-image-qt5-validation-imx shown on Table 1. i.MX Yocto project images.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

134 Views
Contributor III

Dear Igor,

      如果使用bitbake fsl-image-qt5-validation-imx -c populate_sdk,虽然可以编译出来一个1.3GB - 1.5GB的toolchain,但是,还是会缺少一些QT相关的工具。

     今天有重新编译了一下bitbake meta-toolchain-qt5, 仍然是存在同样的问题。

     因此,还是需要帮忙分析一下是什么原因,如何解决?

     谢谢!

    Yonghe.Luo

 

    

0 Kudos

134 Views
NXP Employee
NXP Employee

Hi yonghe,

   Has this problem been solved? I met the same problem , and I  modified one line content in the ../sources/meta-qt5/recipes-qt/qt5/nativesdk-qtbase_git.bb  file. This line modified like below:

  

 fakeroot do_generate_qt_environment_file() { -    mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/ +    install -d -m 755 ${D}${SDKPATHNATIVE}/environment-setup.d/      script=${D}${SDKPATHNATIVE}/environment-setup.d/qt5.sh        echo 'export PATH=${OE_QMAKE_PATH_HOST_BINS}:$PATH' > $script

 After modified,you can re-run $bitbake meta-toolchain-qt5,then the problem can be solved.

Best Regard

Catia Han

134 Views
Contributor I

Your solution has worked for my Yocto Rocko / iMX6 Solo Sabresd build. Thx a lot.

0 Kudos

134 Views
Contributor III

Dear Catia,

     非常感谢您的回复,这个问题已经解决。

     

      谢谢!

     Yonghe.Luo

0 Kudos

134 Views
Contributor I

你好,我们也遇到了同样的问题,可以问一下是怎么解决的吗?

0 Kudos

134 Views
Contributor III

解决了。请参考上面的回复。

另外,网络上还有另外一种解决办法,具体链接我找不到了,你可以搜索一下。

0 Kudos

134 Views
Contributor III

Dear Igorpadykov

      昨天试了一下,使用bitbake fsl-image-qt5-validation-imx -c populate_sdk也是可以编译出完整的、包含QT5工具链的SDK。

      所以,可以不使用bitbake meta-toolchain-qt5 进行编译。

     谢谢!

     Yonghe.Luo

0 Kudos

134 Views
Contributor I

Hi Yonghe

 

我和您一样在bitbake meta-toolchain-qt5时,出现了一模一样的错误,你后来有没有解决这个问题呢?

我后来也尝试了下bitbake fsl-image-qt5-validation-imx -c populate_sdk,编译出的SDK里找不到Qt的编译工具qmake,只有.h和.lib文件,aarch64-poky-linux/usr/bin/qt5文件夹为空,请问您的结果也是这样么?

 

具体信息如下:

Host: Ubuntu 14.04, 64bit, (Virtulbox)

Yocto: 4.9.88 ga

Device: i.mx8mqevk

Best regards
Morey.Liu

0 Kudos

134 Views
Contributor III

Dear Morey,

    是的,我这边编译出来的包,/usr/bin/qt5也是空的。

    之前用bitbake meta-toolchain-qt5实际上编译是已经完成了,只是打包没有成功。可以找一下编译结果里面的/usr/bin/qt5是否有内容,是否拷贝过来用。

    另外,我这边也正在重新编译bitbake meta-toolchain-qt5。

    谢谢!

   Yonghe.Luo

0 Kudos