AnsweredAssumed Answered

[Yocto 1.1.0] Cannot build fsl-image-qt5 twice with different machines

Question asked by charles huang on May 15, 2015
Latest reply on Jun 23, 2015 by gusarambula
Branched to a new discussion

Hi FSL,

 

I find a build problem about fsl-image-qt5.
Here is the reproduce step.

 

1. Get the Yocto BSP 3.10.53_1.1.0 and set up environment.
   $ EULA=1 MACHINE=imx6qsabresd source fsl-setup-release.sh -b build_all -e x11
  
2. Start building fsl-image-qt5 and it's OK to generate the image this time.
   $ bitbake fsl-image-qt5
  
3. Then, I try to build for my customized machine.
   $ EULA=1 MACHINE=imx6qubcds31 source fsl-setup-release.sh -b build_all -e x11
   $ bitbake fsl-image-qt5

 

4. However, it will get failure this time. (Please refer to attached log file for details)
   ERROR: Task 1493 (/bsp/sources/meta-qt5/recipes-qt/qt5/qtbase_5.2.1.bb, do_package) failed with exit code '1'

 

If I build my customized machine first, it can build successfully.

The problem only happens when I build fsl-image-qt5 for another machine after one is complete.


Furthermore, I find the root cause is that some QT related configurations are assigned in class level, e.g. OE_QMAKE_PATH_LIBS.
So, the path relative to specific machine are fixed and it will cause build failure for other machines.

 

Do you have any idea to fix or avoid this problem?

 

Thanks,
Daniel

Original Attachment has been moved to: fsl-image-qt5_build_fail.txt.zip

Outcomes