[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt 5.2.1 Windows build fails due to OpenGL issue
From:       Arve Knudsen <arve.knudsen () gmail ! com>
Date:       2014-05-20 18:22:57
Message-ID: CAEDa093X3sbModwKoHePak3ZQUgkqfWMVoMfjxhj2E+RU9s6xQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@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@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@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@riverbankcomputing.com
>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>
>>
>>
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

[Attachment #5 (text/html)]

<div dir="ltr">Thanks for the offer Erik. I&#39;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.<div> \
<br></div><div>Arve</div></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Mon, May 19, 2014 at 5:03 PM, Erik Hvatum <span \
dir="ltr">&lt;<a href="mailto:ice.rikh@gmail.com" \
target="_blank">ice.rikh@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="auto"><div>You&#39;re welcome to email it to me \
directly.   Sharing it as a google doc or putting it on github would also work.</div> \
<span class="HOEnZb"><font \
color="#888888"><div><br></div><div>-Erik</div></font></span><div><div \
class="h5"><div><br>On May 19, 2014, at 2:23, Arve Knudsen &lt;<a \
href="mailto:arve.knudsen@gmail.com" target="_blank">arve.knudsen@gmail.com</a>&gt; \
wrote:<br> <br></div><blockquote type="cite"><div><div dir="ltr">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?<div> \
<br></div><div>Arve<div class="gmail_extra"> <br><div class="gmail_quote">On Fri, May \
16, 2014 at 7:50 PM, Erik H <span dir="ltr">&lt;<a href="mailto:ice.rikh@gmail.com" \
target="_blank">ice.rikh@gmail.com</a>&gt;</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>On Fri, May 16, 2014 \
at 9:03 AM, Arve Knudsen <span dir="ltr">&lt;<a href="mailto:arve.knudsen@gmail.com" \
target="_blank">arve.knudsen@gmail.com</a>&gt;</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><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 &amp;&amp; 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&quot;.&quot; \
-I&quot;..\..\..\..\..\Python34\Include&quot; -I&quot;..\qpy\QtGui&quot; \
-I&quot;..\..\..\..\..\Qt\5.2.1\mingw48_32\include&quot; \
-I&quot;..\..\..\..\..\Qt\5.2.1\mingw48_32\include\QtGui&quot; \
-I&quot;..\..\..\..\..\Qt\5.2.1\mingw48_32\include\QtCore&quot; -I&quot;release&quot; \
-I&quot;..\..\..\..\..\Qt\5.2.1\mingw48_32\mkspecs\win32-g++&quot; -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 &#39;)&#39; 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></div></div>
</div></blockquote></div></div></div><br>_______________________________________________<br>
 PyQt mailing list      <a \
href="mailto:PyQt@riverbankcomputing.com">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>



[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic