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

Mesa define MESA_EGL_NO_X11_HEADERS not passed to actual build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.1, 5.12.2
    • 5.12.0
    • Build tools: qmake
    • None
    • Linux/Other display system
    • 5733dfbd90fd059e7310786faefb022b00289592 (qt/qtbase/5.12)

    Description

      The flag is present in the mesa.pc file and correctly picked up when building the tests:

      Checking for EGLDevice... 
      + cd /tmp/e2/build/build/config.tests/egl-egldevice && PKG_CONFIG_SYSROOT_DIR=/opt/emlix/test/sysroot PKG_CONFIG_LIBDIR=/opt/emlix/test/sysroot/usr/lib/pkgconfig:/opt/emlix/test/sysroot/usr/share/pkgconfig /tmp/e2/build/build/qtbase
      /bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/opt/emlix/test/sysroot" "QMAKE_CXXFLAGS += --sysroot=/opt/emlix/test/sysroot" "QMAKE_LFLAGS += --sysroot=/opt/emlix/test/sysroot" -early "CONFIG += cross_compile" 'QMAKE_USE += egl' 'QMAKE_LIBS_EGL = -lEGL' 'QMAKE_DEFINES_EGL = MESA_EGL_NO_X11_HEADERS' /tmp/e2/build/build/config.tests/egl-egldevice
      + cd /tmp/e2/build/build/config.tests/egl-egldevice && MAKEFLAGS= /usr/bin/make
      > /opt/emlix/test/bin/arm-unknown-linux-gnueabi-g++ -c -pipe -O2 -g -march=armv7-a -mtune=cortex-a9 -mfpu=neon-fp16 -mfloat-abi=hard -mthumb-interwork -pipe -Wl,--no-copy-dt-needed-entries,--as-needed -Wl,--build-id -Wdate-time --sysroot=/opt/emlix/test/sysroot --sysroot=/opt/emlix/test/sysroot -O2 -w -fPIC -DMESA_EGL_NO_X11_HEADERS -I. -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/mkspecs/devices/linux--g++ -o main.o main.cpp
      > /opt/emlix/test/bin/arm-unknown-linux-gnueabi-g++ -O2 -g -march=armv7-a -mtune=cortex-a9 -mfpu=neon-fp16 -mfloat-abi=hard -mthumb-interwork -pipe -Wl,--no-copy-dt-needed-entries,--as-needed -Wl,--build-id -Wdate-time --sysroot=/opt/emlix/test/sysroot --sysroot=/opt/emlix/test/sysroot -Wl,-O1 -o egl-egldevice main.o   -lEGL
      test config.qtbase_gui.tests.egl-egldevice succeeded
      

      However when building the actual code it is not present:

      /opt/emlix/test/bin/arm-unknown-linux-gnueabi-g++ -c -pipe -O2 -g -march=armv7-a -mtune=cortex-a9 -mfpu=neon-fp16 -mfloat-abi=hard -mthumb-interwork -pipe -Wl,--no-copy-dt-needed-entries,--as-needed -Wl,--build-id -Wdate-time --sysroot=/opt/emlix/test/sysroot -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QTMULTIMEDIAQUICKTOOLS_LIB -DQT_MULTIMEDIA_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/src/plugins/videonode/egl -I. -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/include -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/include/QtMultimediaQuick -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/include/QtMultimediaQuick/5.12.0 -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/include/QtMultimediaQuick/5.12.0/QtMultimediaQuick -I../../../../include -I../../../../include/QtMultimediaQuick -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/include/QtMultimedia/5.12.0 -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/include/QtMultimedia/5.12.0/QtMultimedia -I../../../../include/QtMultimedia/5.12.0 -I../../../../include/QtMultimedia/5.12.0/QtMultimedia -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/include/QtGui/5.12.0 -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/include/QtGui/5.12.0/QtGui -I/tmp/e2/build/build/qtbase/include/QtGui/5.12.0 -I/tmp/e2/build/build/qtbase/include/QtGui/5.12.0/QtGui -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/include/QtMultimedia -I../../../../include/QtMultimedia -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtdeclarative/include -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQuick -I/tmp/e2/build/build/qtdeclarative/include -I/tmp/e2/build/build/qtdeclarative/include/QtQuick -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/include -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/include/QtGui -I/tmp/e2/build/build/qtbase/include -I/tmp/e2/build/build/qtbase/include/QtGui -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0 -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0/QtCore -I/tmp/e2/build/build/qtbase/include/QtCore/5.12.0 -I/tmp/e2/build/build/qtbase/include/QtCore/5.12.0/QtCore -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtdeclarative/include/QtQml -I/tmp/e2/build/build/qtdeclarative/include/QtQml -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/include/QtNetwork -I/tmp/e2/build/build/qtbase/include/QtNetwork -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/include/QtCore -I/tmp/e2/build/build/qtbase/include/QtCore -I.moc -I/tmp/e2/build/qt-everywhere-src-5.12.0/qtbase/mkspecs/devices/linux--g++ -o .obj/qsgvideonode_egl.o /tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.cpp
      In file included from /opt/emlix/test/sysroot/usr/include/EGL/egl.h:39,
                       from /tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.h:48,
                       from /tmp/e2/build/qt-everywhere-src-5.12.0/qtmultimedia/src/plugins/videonode/egl/qsgvideonode_egl.cpp:40:
      /opt/emlix/test/sysroot/usr/include/EGL/eglplatform.h:124:10: fatal error: X11/Xlib.h: No such file or directory
       #include <X11/Xlib.h>
                ^~~~~~~~~~~~
      compilation terminated.
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            rebemlix Rolf Eike Beer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes