[meta-freescale] [PATCH 1/5] qtbase: Use compiler settings provided by IMX-GPU driver pkg-config

Ian Coolidge ian at boundarydevices.com
Wed May 31 14:35:56 PDT 2017


Building core-image-sato with qtbase did not set these compiler
settings properly. At least at the head of this recipe as of pyro. I
get "Platform not recognized" because these cflags are missing. Do you
know any reason off the top of your head why this is?

My current solution patches the -DLINUX=1 or -DLINUX=1 -DEGL_API_FB=1
back into qmake.conf and it fixes the issue i'm seeing.

On Tue, Jan 10, 2017 at 3:39 PM, Tom Hochstein <tom.hochstein at nxp.com> wrote:
> The IMX-GPU driver now provides compiler settings through pkg-config,
> so don't set them explicitly.
>
> Signed-off-by: Tom Hochstein <tom.hochstein at nxp.com>
> ---
>  dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 14 --------------
>  1 file changed, 14 deletions(-)
>
> diff --git a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
> index f5064a8..376358c 100644
> --- a/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
> +++ b/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
> @@ -21,29 +21,15 @@ do_configure_prepend_mx6() {
>      sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf
>      if test ${HAS_X11} -eq 0; then
>          if [ "${IMXGPU}" = "3d" ]; then
> -
>              cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
> -IMX6_CFLAGS             = -DLINUX=1 -DEGL_API_FB=1
>  EGLFS_DEVICE_INTEGRATION = eglfs_viv
>  EOF
> -        else
> -            cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
> -IMX6_CFLAGS             = -DLINUX=1
> -EOF
>          fi
> -    else
> -        cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
> -IMX6_CFLAGS             = -DLINUX=1
> -EOF
>      fi
>      cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
>  QMAKE_LIBS_EGL         += -lEGL
>  QMAKE_LIBS_OPENGL_ES2  += -lGLESv2 -lEGL -lGAL
>  QMAKE_LIBS_OPENVG      += -lOpenVG -lEGL -lGAL
> -QMAKE_CFLAGS_RELEASE   += \$\$IMX6_CFLAGS
> -QMAKE_CXXFLAGS_RELEASE += \$\$IMX6_CFLAGS
> -QMAKE_CFLAGS_DEBUG   += \$\$IMX6_CFLAGS
> -QMAKE_CXXFLAGS_DEBUG += \$\$IMX6_CFLAGS
>
>  load(qt_config)
>
> --
> 1.9.1
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


More information about the meta-freescale mailing list