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

Can not compile Qt libraries when configured with -no-opengl

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.0, 5.10.0
    • Fix Version/s: 5.5.0, 5.11.2
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Environment:
      OpenSuse Linux 13.2 64-bit
      Linux 3.16.7-7-desktop #1 SMP PREEMPT Wed Dec 17 18:00:44 UTC 2014 (762f27a) x86_64 x86_64 x86_64 GNU/Linux
    • Commits:
      42f9fd5f077fe03cbc96f3b8392d22ee2a99bab0, 4ee087d0baa441ecf21b9154bf0c460edb44ad14, 62f24f04bf2b3a254faccc35fc7f673ef76a9345

      Description

      I pulled the source from https://gitorious.org/qt/qtbase.git

      Compiling fails when using the following configure options:

      ./configure -release -opensource -confirm-license -c++11 -static -largefile -accessibility -no-qml-debug -qt-zlib -no-mtdev -no-journald -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -no-openssl -no-libproxy -no-glib -no-pulseaudio -no-alsa -no-gtkstyle -nomake examples -nomake tests -no-compile-examples -no-nis -cups -no-evdev -no-dbus -no-eglfs -qreal double -no-opengl -no-gstreamer
      

      Output of configure:

      Creating qmake...
      ........................................................................................Done.
      Running configuration tests...
      Warning: Disabling Linux Accessibility Bridge: DBus is missing.
      
      WARNING: Using static linking will disable the WebKit module.
      
      
         Configure summary
      
      Build type:    linux-g++ (x86_64, CPU features: mmx sse sse2)
      Platform notes:
      
                  - Also available for Linux: linux-kcc linux-icc linux-cxx
      
      Build options:
        Configuration .......... accessibility audio-backend avx avx2 c++11 clock-gettime clock-monotonic concurrent cups egl egl_x11 eventfd fontconfig full-config getaddrinfo getifaddrs gif harfbuzz iconv inotify ipv6ifname jpeg large-config largefile linuxfb medium-config minimal-config mremap png posix_fallocate precompile_header qpa qpa reduce_exports reduce_relocations release rpath small-config sse2 sse3 sse4_1 sse4_2 ssse3 static system-freetype xcb xcb-glx xcb-plugin xcb-render xcb-sm xcb-xlib xinput2 xkbcommon-qt xlib xrender zlib
        Build parts ............ libs tools
        Mode ................... release
        Using sanitizer(s)...... none
        Using C++11 ............ yes
        Using gold linker....... no
        Using PCH .............. yes
        Target compiler supports:
          SSE2/SSE3/SSSE3 ...... yes/yes/yes
          SSE4.1/SSE4.2 ........ yes/yes
          AVX/AVX2 ............. yes/yes
      
      Qt modules and options:
        Qt D-Bus ............... no
        Qt Concurrent .......... yes
        Qt GUI ................. yes
        Qt Widgets ............. yes
        Large File ............. yes
        QML debugging .......... no
        Use system proxies ..... no
      
      Support enabled for:
        Accessibility .......... yes
        ALSA ................... no
        CUPS ................... yes
        Evdev .................. no
        FontConfig ............. yes
        FreeType ............... yes (system library)
        Glib ................... no
        GStreamer .............. no
        GTK theme .............. no
        HarfBuzz ............... yes (bundled copy)
        Iconv .................. yes
        ICU .................... no
        Image formats:
          GIF .................. yes (in QtGui, using bundled copy)
          JPEG ................. yes (in QtGui, using bundled copy)
          PNG .................. yes (in QtGui, using bundled copy)
        journald ............... no
        libinput................ no
        mtdev .................. no
        Networking:
          getaddrinfo .......... yes
          getifaddrs ........... yes
          IPv6 ifname .......... yes
          libproxy.............. no
          OpenSSL .............. no
        NIS .................... no
        OpenGL / OpenVG:
          EGL .................. yes
          OpenGL ............... no
          OpenVG ............... no
        PCRE ................... system
        pkg-config ............. yes
        PulseAudio ............. no
        QPA backends:
          DirectFB ............. no
          EGLFS ................ no
            EGLFS i.MX6....... .
            EGLFS KMS .......... no
            EGLFS Mali .........
            EGLFS Raspberry Pi .
            EGLFS X11 .......... yes
          LinuxFB .............. yes
          XCB .................. yes (system library)
            EGL on X ........... yes
            GLX ................ yes
            MIT-SHM ............ yes
            Xcb-Xlib ........... yes
            Xcursor ............ yes (loaded at runtime)
            Xfixes ............. yes (loaded at runtime)
            Xi ................. no
            Xi2 ................ yes
            Xinerama ........... yes (loaded at runtime)
            Xrandr ............. yes (loaded at runtime)
            Xrender ............ yes
            XKB ................ yes
            XShape ............. yes
            XSync .............. yes
            XVideo ............. yes
        Session management ..... yes
        SQL drivers:
          DB2 .................. no
          InterBase ............ no
          MySQL ................ no
          OCI .................. no
          ODBC ................. no
          PostgreSQL ........... no
          SQLite 2 ............. no
          SQLite ............... yes (plugin, using bundled copy)
          TDS .................. no
        tslib .................. no
        udev ................... no
        xkbcommon-x11........... yes (bundled copy, XKB config root: /usr/share/X11/xkb)
        xkbcommon-evdev......... no
        zlib ................... yes (bundled copy)
      
      WARNING: Using static linking will disable the use of dynamically
      loaded plugins. Make sure to import all needed static plugins,
      or compile needed modules into the library.
      Info: creating cache file /data/trino/software/Qt5/Qt5.5.0_beta/.qmake.cache
      

      After configuring, compiling fails with the following message:

      g++ -c -pipe -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BUILD_XCB_QPA_LIB_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_BUILD_XCB_PLUGIN -DXCB_USE_XLIB -DXCB_USE_XINPUT2 -DXCB_USE_RENDER -DXCB_USE_SM -DDFLT_XKB_CONFIG_ROOT=\"/usr/share/X11/xkb\" -DDEFAULT_XKB_RULES=\"evdev\" -DDEFAULT_XKB_MODEL=\"pc105\" -DDEFAULT_XKB_LAYOUT=\"us\" -DQ_FONTCONFIGDATABASE -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../../include -I/data/trino/software/Qt5/Qt5.5.0_beta/include/QtQGui -I../../../../include/QtGui/5.5.0 -I../../../../include/QtGui/5.5.0/QtGui -Igl_integrations -I../../../3rdparty/xkbcommon -I../../../3rdparty/xkbcommon/xkbcommon -I../../../3rdparty/xkbcommon/src -I../../../3rdparty/xkbcommon/src/xkbcomp -I../../../3rdparty/xkbcommon/src/x11 -I../../../../include/QtPlatformSupport -I../../../../include/QtPlatformSupport/5.5.0 -I../../../../include/QtPlatformSupport/5.5.0/QtPlatformSupport -I../../../../include/QtGui -I../../../../include/QtCore/5.5.0 -I../../../../include/QtCore/5.5.0/QtCore -I../../../../include/QtCore -I.moc -I../../../../mkspecs/linux-g++ -o .obj/qxcbglintegration.o gl_integrations/qxcbglintegration.cpp
      In file included from gl_integrations/qxcbglintegration.cpp:34:0:
      gl_integrations/qxcbglintegration.h:60:13: error: 'QPlatformOpenGLContext' does not name a type
           virtual QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const = 0;
                   ^
      Makefile.xcb_qpa_lib:8681: recipe for target '.obj/qxcbglintegration.o' failed
      make[5]: *** [.obj/qxcbglintegration.o] Error 1
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                lagocs Laszlo Agocs
                Reporter:
                trino trino
              • Votes:
                3 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes