<div dir="ltr">Thanks for the suggestion, Erik. I'll try when I'm back at work on Monday.<div><br></div><div>Arve</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 16, 2014 at 7:50 PM, Erik H <span dir="ltr"><<a href="mailto:ice.rikh@gmail.com" target="_blank">ice.rikh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Arve,<br><br>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.<br>

<br></div><div>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).<br>

</div><div><br></div></div>Regards,<br>Erik<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, May 16, 2014 at 9:03 AM, Arve Knudsen <span dir="ltr"><<a href="mailto:arve.knudsen@gmail.com" target="_blank">arve.knudsen@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi guys<div><br></div><div>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:</div>

<div><br></div><div>python .\configure.py --spec win32-g++ --confirm-license --no-qml-plugin && mingw32-make<br>
</div><div><br></div><div>The build fails like this:</div><div><br></div><div><div>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</div>


<div>In file included from ..\..\..\..\..\Qt\5.2.1\mingw48_32\include\QtGui/qopenglcontext.h:63:0,</div><div>                 from ..\..\..\..\..\Qt\5.2.1\mingw48_32\include\QtGui/QOpenGLContext:1,</div><div>                 from ..\qpy\QtGui/qpyopengl_api.h:31,</div>


<div>                 from C:\Users\arve.knudsen\Downloads\PyQt-gpl-5.2.1\sip/QtGui/qopenglshaderprogram.sip:333,</div><div>                 from sipQtGuicmodule.cpp:24:</div><div>..\..\..\..\..\Qt\5.2.1\mingw48_32\include/QtGui/qopenglversionfunctions.h:785:43: error: expected unqualified-id before ')' token</div>


<div>     void (QOPENGLF_APIENTRYP MemoryBarrier)(GLbitfield barriers);</div><div>                                           ^</div></div><div>Please help,</div><div>Arve</div></div>
<br></div></div>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div>
</blockquote></div><br></div>