I have a compilation error when I bitbake the package imx-gst1.0-plugin:
../../git/libs/device-2d/imx_2d_device_g2d.c: In function 'imx_g2d_config_input':
| ../../git/libs/device-2d/imx_2d_device_g2d.c:302:23: error: 'G2D_AMPHION_TILED' undeclared (first use in this function); did you mean 'G2D_SUPERTILED'?
| g2d->src.tiling = G2D_AMPHION_TILED;
| ^~~~~~~~~~~~~~~~~
| G2D_SUPERTILED
| ../../git/libs/device-2d/imx_2d_device_g2d.c:302:23: note: each undeclared identifier is reported only once for each function it appears in
| ../../git/libs/device-2d/imx_2d_device_g2d.c: In function 'imx_g2d_blit':
| ../../git/libs/device-2d/imx_2d_device_g2d.c:421:23: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
| src->mem->paddr = paddr;
| ^
| ../../git/libs/device-2d/imx_2d_device_g2d.c:430:23: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
| dst->mem->paddr = paddr;
| ^
| ../../git/libs/device-2d/imx_2d_device_g2d.c:466:26: error: 'G2D_AMPHION_TILED' undeclared (first use in this function); did you mean 'G2D_SUPERTILED'?
| if (g2d->src.tiling == G2D_AMPHION_TILED && src->fd[1] >= 0)
| ^~~~~~~~~~~~~~~~~
| G2D_SUPERTILED
| ../../git/libs/device-2d/imx_2d_device_g2d.c:471:26: error: 'G2D_AMPHION_INTERLACED' undeclared (first use in this function); did you mean 'G2D_AMPHION_TILED'?
| g2d->src.tiling |= G2D_AMPHION_INTERLACED;
| ^~~~~~~~~~~~~~~~~~~~~~
| G2D_AMPHION_TILED
Could you please specify what versions you used for your OE installation. Additionally posting the start of the bitbake output with the build configuration and the git hashes of the used layers.
I just tried. The package builds in our regular angstrom setup.
I see three things to try first:
clean the package and retry:
bitbake imx-gst1.0-plugin imx-gpu-g2d -c cleansstate
bitbake imx-gst1.0-plugin
reorder the layers in conf/bblayers.conf, so that meta-toradex-nxp is before meta-freescale. Then repeat the clean and rebuild step.
Delete all buildoutput without deleting sstate. Likely in your poky setup this means deleting build/tmp. (We moved the deploy directory out of tmp, so in the angstrom setup this means deleting build/tmp-glibc and deploy). Then ‘bitbake imx-gst1.0-plugin’ should build mostly from sstate which should go quite fast.
Multiple versions of imx-gpu-viv are due to be built (/home/vincent/dev/fsl-community-bsp/sources/meta-toradex-nxp/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.2.4.p1.8-aarch32.bb /home/vincent/dev/fsl-community-bsp/sources/meta-freescale/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p8.6-hfp.bb). Only one version of a given PN should be built in any given build. You likely need to set PREFERRED_VERSION_imx-gpu-viv to select the correct version or don't depend on multiple versions.