Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65163

build error "X11/Xlib.h: No such file or directory" when using Mesa without X11

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.9.2
    • Fix Version/s: None
    • Component/s: Build System, Multimedia
    • Labels:
      None

      Description

       

      In file included from /opt/emlix/test/sysroot/usr/include/EGL/egl.h:39:0,
       from /tmp/e2/build/qt-everywhere-opensource-src-5.9.2/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h:48,
       from /tmp/e2/build/qt-everywhere-opensource-src-5.9.2/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.cpp:40:
      /opt/emlix/test/sysroot/usr/include/EGL/eglplatform.h:119:22: fatal error: X11/Xlib.h: No such file or directory
      compilation terminated.
      

      However, the .pc file gives the solution:

      egl.pc:
      prefix=/usr
      exec_prefix=${prefix}
      libdir=${exec_prefix}/lib
      includedir=${prefix}/include
      
      Name: egl
      Description: Mesa EGL library
      Requires.private:
      Version: 17.2.2
      Libs: -L${libdir} -lEGL
      Libs.private:
      Cflags: -I${includedir}  -DMESA_EGL_NO_X11_HEADERS
      

      The temporary fix is to put that define in the compile flags by hand.

        Attachments

        1. config.log
          141 kB
        2. qtgui-config.pri
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              qtbuildsystem Qt Build System Team
              Reporter:
              rebemlix Rolf Eike Beer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes