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

Qt 5.1 fails to build on Windows without OpenGL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.1.0
    • Build System
    • None
    • Windows 7, Visual Studio 2010, building with nmake from VS command prompt

    Description

      Building Qt 5.1 using the following command line:
      > configure -no-angle -no-opengl -openssl-linked -debug-and-release -shared -nomake demos -nomake examples -debug-and-release -qt-sql-mysql -qt-sql-odbc -qt-zlib -platform win32-msvc2010 -I C:\mysql_c\mysql-connector-c-6.0.2\include -L C:\mysql_c\mysql-connector-c-6.0.2\libmysql\Debug -L C:\mysql_c\ mysql-connector-c-6.0.2\libmysql\Release -l libmysql -L C:\OpenSSL-Win32\lib -I
      C:\OpenSSL-Win32\include -l ssleay32 -l libeay32
      > nmake

      As you can see, -no-angle and -no-opengl are both specified.
      For some reason, Qt still tries to make openGL stuff as:

      kernel\qplatformopenglcontext.cpp(90) : error C2653: 'QPlatformOpenGLContext' : is not a class or namespace name
      kernel\qplatformopenglcontext.cpp(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      kernel\qplatformopenglcontext.cpp(92) : error C2550: 'QPlatformOpenGLContext' : constructor initializer lists are only allowed on constructor definitions
      kernel\qplatformopenglcontext.cpp(93) : warning C4508: QPlatformOpenGLContext'
      : function should return a value; 'void' return type assumed
      kernel\qplatformopenglcontext.cpp(95) : error C2653: 'QPlatformOpenGLContext' : is not a class or namespace name
      kernel\qplatformopenglcontext.cpp(95) : fatal error C1903: unable to recover from previous error(s); stopping compilation

      Probably openGL related stuff should not be compiled when -no-opengl is configured.

      I saw a similar bug report for 5.0 and that was closed as "Looking good" but it does not.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            sanyibacsi Sandor Hadas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes