[PyQt] PyQt 5.2.1 Windows build fails due to OpenGL issue
Arve Knudsen
arve.knudsen at gmail.com
Tue May 20 19:22:57 BST 2014
Thanks for the offer Erik. I've moved on to Python 3.4 and building PyQt
with Visual Studio 2010 though, as the application was crashing on me once
frozen (by way of cx_Freeze). After making this move, the app stopped
crashing (phew). I think we will stay with this combo.
Arve
On Mon, May 19, 2014 at 5:03 PM, Erik Hvatum <ice.rikh at gmail.com> wrote:
> You're welcome to email it to me directly. Sharing it as a google doc or
> putting it on github would also work.
>
> -Erik
>
> On May 19, 2014, at 2:23, Arve Knudsen <arve.knudsen at gmail.com> wrote:
>
> The resulting file is too large to submit to pastebin (~3 MB). Should I
> send it by way of an attachment instead, or perhaps someone could help me
> analyze the pre-processed source?
>
> Arve
>
> On Fri, May 16, 2014 at 7:50 PM, Erik H <ice.rikh at gmail.com> wrote:
>
>> Hi Arve,
>>
>> The preprocessed code for the offending line would be helpful.
>> QOPENGLF_APIENTRYP is defined through a lot of preprocessor logic in
>> QtGui/qopengl.h. Presumably something is going wrong in there and you are
>> ending up with a bogus QOPENGLF_APIENTRYP.
>>
>> Stick a -E on the end of that g++ command, run it manually, and
>> sipQtGuiQAbstractTextDocumentLayoutSelection.o will contain a whole mess of
>> preprocessed code that you can put on pastebin and link to us (if you would
>> like a hand sorting through it).
>>
>> Regards,
>> Erik
>>
>>
>> On Fri, May 16, 2014 at 9:03 AM, Arve Knudsen <arve.knudsen at gmail.com>wrote:
>>
>>> 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
>>>
>>> _______________________________________________
>>> PyQt mailing list PyQt at riverbankcomputing.com
>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>
>>
>>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140520/ac8c886e/attachment.html>
More information about the PyQt
mailing list