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

Can not compile Qt libraries when configured -static & -no-opengl

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0
    • 5.2.1
    • GUI: OpenGL
    • None
    • OpenSuse Linux 13.1 32-bit
      Linux 3.11.10-7-desktop #1 SMP PREEMPT Mon Feb 3 09:41:24 UTC 2014 (750023e) i686 athlon i386 GNU/Linux

    Description

      Compiling the Qt libraries fails when using the following configure options:

      ./configure -prefix /usr/local/Qt-5.2.1 -release -opensource -confirm-license -static -largefile -no-javascript-jit -no-qml-debug -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -no-harfbuzz -no-openssl -qt-pcre -qt-xcb -qt-xkbcommon -no-compile-examples -gui -widgets -no-nis -cups -strip -no-dbus -no-opengl -nomake tools -nomake examples -nomake tests -no-kms -no-eglfs

      After configuring, compiling fails with the following message:

      cd platformsupport/ && ( test -e Makefile || /data/trino/software/Qt5/qt-everywhere-opensource-src-5.2.1/qtbase/bin/qmake /data/trino/software/Qt5/qt-everywhere-opensource-src-5.2.1/qtbase/src/platformsupport/platformsupport.pro -o Makefile ) && make -f Makefile
      make[3]: Entering directory `/data/trino/software/Qt5/qt-everywhere-opensource-src-5.2.1/qtbase/src/platformsupport'
      g++ -c -include .pch/Qt5PlatformSupport -pipe -I/usr/include/freetype2 -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_PLATFORMSUPPORT_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 -DQ_FONTCONFIGDATABASE -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../include -I../../include/QtPlatformSupport -I../../include/QtPlatformSupport/5.2.1 -I../../include/QtPlatformSupport/5.2.1/QtPlatformSupport -I/usr/include/libdrm -I../../include/QtGui/5.2.1 -I../../include/QtGui/5.2.1/QtGui -I../../include/QtGui -I../../include/QtCore/5.2.1 -I../../include/QtCore/5.2.1/QtCore -I../../include/QtCore -I.moc -o .obj/qeglplatformcontext.o eglconvenience/qeglplatformcontext.cpp
      In file included from eglconvenience/qeglplatformcontext.cpp:42:0:
      eglconvenience/qeglplatformcontext_p.h:50:1: error: expected class-name before '{' token
       {
       ^
      eglconvenience/qeglplatformcontext_p.h:52:55: error: 'QPlatformOpenGLContext' has not been declared
           QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
                                                             ^
      eglconvenience/qeglplatformcontext_p.h:54:55: error: 'QPlatformOpenGLContext' has not been declared
           QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
                                                             ^
      eglconvenience/qeglplatformcontext_p.h:75:45: error: 'QPlatformOpenGLContext' has not been declared
           void init(const QSurfaceFormat &format, QPlatformOpenGLContext *share);
                                                   ^
      eglconvenience/qeglplatformcontext.cpp:71:72: error: 'QPlatformOpenGLContext' has not been declared
       QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
                                                                              ^
      eglconvenience/qeglplatformcontext.cpp:80:72: error: 'QPlatformOpenGLContext' has not been declared
       QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
                                                                              ^
      eglconvenience/qeglplatformcontext.cpp:89:62: error: 'QPlatformOpenGLContext' has not been declared
       void QEGLPlatformContext::init(const QSurfaceFormat &format, QPlatformOpenGLContext *share)
                                                                    ^
      eglconvenience/qeglplatformcontext.cpp: In member function 'void QEGLPlatformContext::init(const QSurfaceFormat&, int*)':
      eglconvenience/qeglplatformcontext.cpp:92:70: error: invalid static_cast from type 'int*' to type 'QEGLPlatformContext*'
           m_shareContext = share ? static_cast<QEGLPlatformContext *>(share)->m_eglContext : 0;
                                                                            ^
      make[3]: *** [.obj/qeglplatformcontext.o] Error 1
      make[3]: Leaving directory `/data/trino/software/Qt5/qt-everywhere-opensource-src-5.2.1/qtbase/src/platformsupport'
      make[2]: *** [sub-platformsupport-make_first] Error 2
      make[2]: Leaving directory `/data/trino/software/Qt5/qt-everywhere-opensource-src-5.2.1/qtbase/src'
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: Leaving directory `/data/trino/software/Qt5/qt-everywhere-opensource-src-5.2.1/qtbase'
      make: *** [module-qtbase-make_first] Error 2
      

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            trino trino
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes