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

Compile error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.1.1
    • Component/s: GUI: OpenGL
    • Environment:
    • Commits:
      bc7e63e3f9452ebc6d42a9cb75a8b1066193ebbd

      Description

      When compiling Qt 5.0.0 from source, it exits with the following error:

      cd platformsupport/ && ( test -f Makefile || /data/trino/software/Qt/qt-everywhere-opensource-src-5.0.0/qtbase/bin/qmake /data/trino/software/Qt/qt-everywhere-opensource-src-5.0.0/qtbase/src/platformsupport/platformsupport.pro -o Makefile ) && make -f Makefile
      make[3]: Entering directory `/data/trino/software/Qt/qt-everywhere-opensource-src-5.0.0/qtbase/src/platformsupport'
      g++ -c -include .pch/release-static/Qt5PlatformSupport -pipe -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -O2 -std=c+0x -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -fno-exceptions -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 -DQT_NO_CAST_FROM_ASCII -DQT_COMPILES_IN_HARFBUZZ -DQ_FONTCONFIGDATABASE -DQT_COMPILES_IN_HARFBUZZ -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g+ -I. -I../../include -I../../include/QtPlatformSupport -I../../include/QtPlatformSupport/5.0.0 -I../../include/QtPlatformSupport/5.0.0/QtPlatformSupport -I/usr/include/freetype2 -I../../include/QtGui -I../../include/QtGui/5.0.0 -I../../include/QtGui/5.0.0/QtGui -I../../include/QtCore -I../../include/QtCore/5.0.0 -I../../include/QtCore/5.0.0/QtCore -I.moc/release-static -o .obj/release-static/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
      eglconvenience/qeglplatformcontext.cpp:62:72: error: 'QPlatformOpenGLContext' has not been declared
      eglconvenience/qeglplatformcontext.cpp: In constructor 'QEGLPlatformContext::QEGLPlatformContext(const QSurfaceFormat&, int*, EGLDisplay, EGLenum)':
      eglconvenience/qeglplatformcontext.cpp:69:70: error: invalid static_cast from type 'int*' to type 'QEGLPlatformContext*'
      make[3]: *** [.obj/release-static/qeglplatformcontext.o] Error 1
      make[3]: Leaving directory `/data/trino/software/Qt/qt-everywhere-opensource-src-5.0.0/qtbase/src/platformsupport'
      make[2]: *** [sub-platformsupport-make_first] Error 2
      make[2]: Leaving directory `/data/trino/software/Qt/qt-everywhere-opensource-src-5.0.0/qtbase/src'
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: Leaving directory `/data/trino/software/Qt/qt-everywhere-opensource-src-5.0.0/qtbase'
      make: *** [module-qtbase-make_first] Error 2

      Qt has been configured with the following options:

      ./configure -release -opensource -static -fast -largefile -no-accessibility -no-javascript-jit -qt-zlib -qt-libpng -qt-libjpeg -no-openssl -qt-pcre -qt-xcb -nomake tools -no-nis -cups -no-dbus -gtkstyle -no-opengl -no-openvg -nomake demos -nomake examples

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            trino trino
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes