<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    I still can't figure out the patch to apply in meta-qt5 to get EGL
    support with the Raspberry.<br>
    <br>
    The test to check EGL does not pass and fails with the following
    command:<br>
    <br>
    arm-poky-linux-gnueabi-g++  -march=armv7-a -marm  -mthumb-interwork
    -mfloat-abi=hard -mfpu=neon-vfpv4 -mtune=cortex-a7
    --sysroot=/home/jgueytat/projects/LightPixels/poky/build/tmp/sysroots/lightpixels

    -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -o egl egl.o  
    -lGLESv2 -lbcm_host -lvchostif -lvcos -lvchiq_arm -pthread -lEGL<br>
    <br>
    <br>
    Here is the content of the file egl.pro:<br>
    <br>
    $ cat egl.pro <br>
    SOURCES = egl.cpp<br>
    <br>
    for(p, QMAKE_LIBDIR_EGL) {<br>
    Â Â Â  exists($$p):LIBS += -L$$p<br>
    }<br>
    <br>
    message("In egl.pro - 1: QMAKE_LIBS_EGL = $$QMAKE_LIBS_EGL")<br>
    message("In egl.pro - 1: LIBS = $$LIBS")<br>
    <br>
    !isEmpty(QMAKE_INCDIR_EGL): INCLUDEPATH += $$QMAKE_INCDIR_EGL<br>
    !isEmpty(QMAKE_LIBS_EGL): LIBS += $$QMAKE_LIBS_EGL<br>
    <br>
    message("In egl.pro - 2: QMAKE_LIBS_EGL = $$QMAKE_LIBS_EGL")<br>
    message("In egl.pro - 2: LIBS = $$LIBS")<br>
    <br>
    CONFIG -= qt<br>
    <br>
    In the main ./configure file of qtbase:<br>
    <br>
    | In configure #1: QMAKE_LIBS_EGL =<br>
    | In configure #2: QMAKE_LIBS_EGL = -lEGL -lGLESv2 -lbcm_host
    -lvchostif -lbcm_host -lvcos -lvchiq_arm -pthread<br>
    <br>
    The variable QMAKE_LIBS_EGL is set properly.<br>
    <br>
    <br>
    In the ./config.tests/qpa/egl/egl.pro file:<br>
    <br>
    | Project MESSAGE: In egl.pro - 1: QMAKE_LIBS_EGL = -lEGL<br>
    | Project MESSAGE: In egl.pro - 1: LIBS = -lEGL -lGLESv2 -lbcm_host
    -lvchostif -lvcos -lvchiq_arm -pthread<br>
    | Project MESSAGE: In egl.pro - 2: QMAKE_LIBS_EGL = -lEGL<br>
    | Project MESSAGE: In egl.pro - 2: LIBS = -lEGL -lGLESv2 -lbcm_host
    -lvchostif -lvcos -lvchiq_arm -pthread -lEGL<br>
    <br>
    <br>
    <b>What I see is that:</b><br>
    In the configure file the variable QMAKE_LIBS_EGL is properly set
    through pkg-config.<br>
    In the egl.pro file... The variable LIBS gets the content of
    QMAKE_LIBS_EGL and the variable QMAKE_LIBS_EGL gets back to its
    default -lEGL.<br>
    <br>
    In the end with have -lGLESv2 before -lEGL and this does not link.<br>
    <br>
    I checked also the content of .qmake.vars:<br>
    grep QMAKE_LIBS_EGL .qmake.vars <br>
    QMAKE_LIBS_EGL = -lEGL -lGLESv2 -lbcm_host -lvchostif -lbcm_host
    -lvcos -lvchiq_arm -pthread<br>
    <br>
    <br>
    The command QMakeVar set QMAKE_LIBS_EGL "$QMAKE_LIBS_EGL" seems to
    have his job done too late...<br>
    <br>
    If someone has an idea to get the proper correction done...<br>
    <br>
    Best Regards,<br>
    Julien<br>
    <br>
  </body>
</html>