[PyQt] PyQt 5.2.1 Windows build fails due to OpenGL issue

Arve Knudsen arve.knudsen at gmail.com
Fri May 16 15:03:46 BST 2014


Hi guys

I am unable to build PyQt 5.2.1 with MinGW on Windows 8.1, against Qt
5.2.1, due to an OpenGL related compilation error. I configure and build
like this:

python .\configure.py --spec win32-g++ --confirm-license --no-qml-plugin &&
mingw32-make

The build fails like this:

g++ -c -pipe -fno-keep-inline-dllexport -mstackrealign -fno-exceptions -O2
-Wall -Wextra -frtti -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG
-DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I. -I"."
-I"..\..\..\..\..\Python34\Include" -I"..\qpy\QtGui"
-I"..\..\..\..\..\Qt\5.2.1\mingw48_32\include"
-I"..\..\..\..\..\Qt\5.2.1\mingw48_32\include\QtGui"
-I"..\..\..\..\..\Qt\5.2.1\mingw48_32\include\QtCore" -I"release"
-I"..\..\..\..\..\Qt\5.2.1\mingw48_32\mkspecs\win32-g++" -o
release\sipQtGuiQAbstractTextDocumentLayoutSelection.o
sipQtGuiQAbstractTextDocumentLayoutSelection.cpp
In file included from
..\..\..\..\..\Qt\5.2.1\mingw48_32\include\QtGui/qopenglcontext.h:63:0,
                 from
..\..\..\..\..\Qt\5.2.1\mingw48_32\include\QtGui/QOpenGLContext:1,
                 from ..\qpy\QtGui/qpyopengl_api.h:31,
                 from
C:\Users\arve.knudsen\Downloads\PyQt-gpl-5.2.1\sip/QtGui/qopenglshaderprogram.sip:333,
                 from sipQtGuicmodule.cpp:24:
..\..\..\..\..\Qt\5.2.1\mingw48_32\include/QtGui/qopenglversionfunctions.h:785:43:
error: expected unqualified-id before ')' token
     void (QOPENGLF_APIENTRYP MemoryBarrier)(GLbitfield barriers);
                                           ^
Please help,
Arve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140516/337e74b1/attachment.html>


More information about the PyQt mailing list