Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can not compile Qt 5.0.0
Qt 6.11 is out! See what's new in the release blog

Can not compile Qt 5.0.0

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 3.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Trino
    wrote on last edited by
    #1

    Hello everybody,

    I tried to compile Qt 5.0.0 from source but 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

    OS information:
    OS: Linux 3.1.10-1.16-desktop i686
    System: openSUSE 12.1 (i586) 32-bit
    KDE: 4.7.2 (4.7.2) "release 5"

    Display info:
    Vendor: ATI Technologies Inc
    Model: ATI RADEON HD 4350
    2D driver: radeon
    3D driver: Unknown Gallium (7.11)

    Any ideas or tips?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Have you installed all dependencies listed in "building guide":http://qt-project.org/wiki/Building_Qt_5_from_Git?

      (Z(:^

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Trino
        wrote on last edited by
        #3

        I finally managed to compile Qt 5.0.1 on openSUSE 12.2.
        The cause is a bug in Qt that occurs when you configure with the option "-no-opengl".

        I temporary configured Qt with opengl enabled till this bug is solved in order to continue to port and test my Qt4 code to Qt5.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved