title: Cross compiling Mesa for arm
body: <p>I have cross compiled Qt5.9.1 for an arm linux platform. I see that qtwebengine because <code>mesa/libegl1-mesa-dev</code> is missing.
  I am relatively new to linux and i have been trying to cross compile mesa12, mesa13 and mesa17. But all failed. </p>
  
  <p>Is libegl1-mesa-dev absolutely necessary to build qtwebengine to work on linuxfb ? If so, can anyone provide me the dependency list for opengl without x11 and some guiding light to how to cross compile it ?</p>
  
  <p>I came to know that QtWebengine can use software renderer such as QtQuick2drenderer in Qt 5.7. What are the possibilities that i can do the same in Qt 5.9.1 ?</p>
  
  <p>Thank you for your time.</p>
  
  <p><strong>Edit :</strong> 
  Mesa version : 12.0.6
  cross compiled dependencies : udev-182 and util-linux-2.30 (for libblkid)
  This is the error i am getting :</p>
  
  <pre><code> CCLD     libgbm.la
   ../../src/loader/.libs/libloader.a(libxmlconfig_la-xmlconfig.o): In function `__getProgramName':
  xmlconfig.c:(.text+0x64): undefined reference to `__progname'
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>configure i have used</p>
  
  <pre><code>./configure  CPPFLAGS="-I$INCLUDEPATH -DMESA_EGL_NO_X11_HEADERS" CFLAGS="-I$INCLUDEPATH -DMESA_EGL_NO_X11_HEADERS" LDFLAGS="-L$LIBPATH" --host=$HOST --prefix=$PREFIX --enable-dri3=no --enable-gallium-llvm=no --disable-omx --enable-gallium-tests=no --enable-gallium-osmesa=no -enable-glx=dri --with-gallium-drivers=swrast --with-dri-drivers=swrast --disable-glx --enable-va=no --enable-vdpau=no --with-egl-platforms=drm
  </code></pre>