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

List:       pykde
Subject:    Re: [PyQt] sip: __or__() unsupported function return type - provide %MethodCode and a C++ signature
From:       Nico Dufort <ndufort () gmail ! com>
Date:       2012-04-29 0:02:40
Message-ID: CAE9k4pdgb2hu=Ndn1XRZyF=mbG8dPD+2Vg6Li-4pqNLmxdWeWQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hey Daniel,

I will quote Brian's response to the problem.  I had that same error
(building on linux) back in December, but this did the trick.  I believe
the change was mentioned to be available in a perhaps future snapshot.

Edit PyQt-*-4.9.1/sip/QtNetwork/qssl.sip
> You need to edit the bottom of the file so that the Qflags portion are
>  inside the
>  %If (Qt_4_3_0 -)
>  %If (PyQt_OpenSSL)
> statements at the top of the file
> The lines at the end should look like the following
> ==================
> };
> %If (Qt_4_8_0 -)
> QFlags<QSsl::SslOption> operator|(QSsl::SslOption f1,
> QFlags<QSsl::SslOption> f2);
> %End
> %If (Qt_4_8_0 -)
> QFlags<QSsl::SslOption> operator|(QSsl::SslOption f1, QSsl::SslOption f2);
> %End
> %End
> %End
> ==================


On Thu, Mar 22, 2012 at 4:06 AM, Daniel Barbeau <daniel.barbeau@inria.fr>wrote:

> Hello PyQt folks!
>
> I need to build PyQt4 myself for several reasons and have succeeded in the
> past. However, the combination of PyQt4 4.9.1, SIP 4.13.2 and qt  4.8.0
> doesn't work. The sip being used is the correct one.
> My system is Win7 64bits, gcc.exe (GCC) 4.7.0 20120311 (prerelease) from
> mingw64.
>
> The output is this one:
>
> Qt v4.8.0 free edition is being used.
> SIP 4.13.2 is being used.
> The Qt header files are in
> E:/devel/2.7.2_Windows_64bit/install/qt4_src/include.
> The shared Qt libraries are in
> E:/devel/2.7.2_Windows_64bit/install/qt4_src/lib.
> The Qt binaries are in E:/devel/2.7.2_Windows_64bit/install/qt4_src/bin.
> The Qt mkspecs directory is in
> E:/devel/2.7.2_Windows_64bit/install/qt4_src.
> These PyQt modules will be built: QtCore, QtGui, QtMultimedia, QtNetwork,
> QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtWebKit,
> QtXml, QtXmlPatterns.
> The PyQt Python package will be installed in
> E:\devel\2.7.2_Windows_64bit\install\pyqt4_src\site.
> PyQt is being built with generated docstrings.
> The Designer plugin will be installed in
> E:/devel/2.7.2_Windows_64bit/install/qt4_src/dll\designer.
> The PyQt .sip files will be installed in
> E:\devel\2.7.2_Windows_64bit\install\pyqt4_src\sip.
> pyuic4, pyrcc4 and pylupdate4 will be installed in
> E:\devel\2.7.2_Windows_64bit\install\qt4_src\bin.
> Generating the C++ source for the QtCore module...
> "E:\devel\2.7.2_Windows_64bit\install\qt4_src\bin\sip" -w -o -x VendorID
> -t WS_WIN -x PyQt_OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4
> _8_0 -x Py_v3 -g -a QtCore.api -c
> E:\devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1\QtCore -b
> QtCore\QtCore.sbf -I E:\
> devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1\sip
> E:\devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1/sip/Q
> tCore/QtCoremod.sip
> Creating the Makefile for the QtCore module...
> Generating the C++ source for the QtDeclarative module...
> "E:\devel\2.7.2_Windows_64bit\install\qt4_src\bin\sip" -w -o -x VendorID
> -t WS_WIN -x PyQt_OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4
> _8_0 -x Py_v3 -g -a QtDeclarative.api -c
> E:\devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1\QtDeclarative
> -b QtDeclarat
> ive\QtDeclarative.sbf -I
> E:\devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1\sip
> E:\devel\2.7.2_Windows_64bit\src\pyqt4_
> src\PyQt-win-gpl-4.9.1/sip/QtDeclarative/QtDeclarativemod.sip
> sip: __or__() unsupported function return type - provide %MethodCode and a
> C++ signature
>
> I already found a discussion about a similar error from last january, but
> with no solution. Does anyone have any idea?
> Thanks!
> Daniel
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
"Attention, attention. Here and now, boys," the mynah repeated. "Here and
now, boys."

[Attachment #5 (text/html)]

<div class="gmail_extra">Hey Daniel,</div><div class="gmail_extra"><br></div><div \
class="gmail_extra">I will quote Brian&#39;s response to the problem.  I had that \
same error (building on linux) back in December, but this did the trick.  I believe \
the change was mentioned to be available in a perhaps future snapshot.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><blockquote \
class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-le \
ft:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


Edit PyQt-*-4.9.1/sip/QtNetwork/qssl.sip<br>You need to edit the bottom of the file \
so that the Qflags portion are  inside the  <br> %If (Qt_4_3_0 -)<br> %If \
(PyQt_OpenSSL) <br>statements at the top of the file<br>The lines at the end should \
look like the following<br>

==================<br>};<br>%If (Qt_4_8_0 -)<br>QFlags&lt;QSsl::SslOption&gt; \
operator|(QSsl::SslOption f1, QFlags&lt;QSsl::SslOption&gt; f2);<br>%End<br>%If \
(Qt_4_8_0 -)<br>QFlags&lt;QSsl::SslOption&gt; operator|(QSsl::SslOption f1, \
QSsl::SslOption f2);<br>

%End<br>%End<br>%End<br>==================</blockquote><br><div \
class="gmail_quote">On Thu, Mar 22, 2012 at 4:06 AM, Daniel Barbeau <span \
dir="ltr">&lt;<a href="mailto:daniel.barbeau@inria.fr" \
target="_blank">daniel.barbeau@inria.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new \
roman,new york,times,serif">Hello PyQt folks!<br><br>I need to build PyQt4 myself for \
several reasons and have succeeded in the past. However, the combination of PyQt4 \
4.9.1, SIP 4.13.2 and qt  4.8.0 doesn&#39;t work. The sip being used is the correct \
one.<br>

My system is Win7 64bits, gcc.exe (GCC) 4.7.0 20120311 (prerelease) from \
mingw64.<br><br>The output is this one:<br><br>Qt v4.8.0 free edition is being \
used.<br>SIP 4.13.2 is being used.<br>The Qt header files are in<br> \
E:/devel/2.7.2_Windows_64bit/install/qt4_src/include.<br> The shared Qt libraries are \
in<br>E:/devel/2.7.2_Windows_64bit/install/qt4_src/lib.<br>The Qt binaries are in \
E:/devel/2.7.2_Windows_64bit/install/qt4_src/bin.<br>The Qt mkspecs directory is in \
E:/devel/2.7.2_Windows_64bit/install/qt4_src.<br>

These PyQt modules will be built: QtCore, QtGui, QtMultimedia, \
QtNetwork,<br>QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, \
QtWebKit,<br>QtXml, QtXmlPatterns.<br>The PyQt Python package will be installed \
in<br>

E:\devel\2.7.2_Windows_64bit\install\pyqt4_src\site.<br>PyQt is being built with \
generated docstrings.<br>The Designer plugin will be installed \
in<br>E:/devel/2.7.2_Windows_64bit/install/qt4_src/dll\designer.<br>The PyQt .sip \
files will be installed in<br>

E:\devel\2.7.2_Windows_64bit\install\pyqt4_src\sip.<br>pyuic4, pyrcc4 and pylupdate4 \
will be installed in<br>E:\devel\2.7.2_Windows_64bit\install\qt4_src\bin.<br>Generating \
the C++ source for the QtCore \
module...<br>&quot;E:\devel\2.7.2_Windows_64bit\install\qt4_src\bin\sip&quot; -w -o \
-x VendorID -t WS_WIN -x PyQt_OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4<br>

_8_0 -x Py_v3 -g -a QtCore.api -c \
E:\devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1\QtCore -b \
QtCore\QtCore.sbf -I \
E:\<br>devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1\sip \
E:\devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1/sip/Q<br>

tCore/QtCoremod.sip<br>Creating the Makefile for the QtCore module...<br>Generating \
the C++ source for the QtDeclarative \
module...<br>&quot;E:\devel\2.7.2_Windows_64bit\install\qt4_src\bin\sip&quot; -w -o \
-x VendorID -t WS_WIN -x PyQt_OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4<br>

_8_0 -x Py_v3 -g -a QtDeclarative.api -c \
E:\devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1\QtDeclarative -b \
QtDeclarat<br>ive\QtDeclarative.sbf -I \
E:\devel\2.7.2_Windows_64bit\src\pyqt4_src\PyQt-win-gpl-4.9.1\sip \
E:\devel\2.7.2_Windows_64bit\src\pyqt4_<br>

src\PyQt-win-gpl-4.9.1/sip/QtDeclarative/QtDeclarativemod.sip<br>sip: __or__() \
unsupported function return type - provide %MethodCode and a C++ \
signature<span><span></span></span><br><br>I already found a discussion about a \
similar error from last january, but with no solution. Does anyone have any idea?<br>

Thanks!<span class="HOEnZb"><font \
color="#888888"><br>Daniel<br></font></span></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><br \
clear="all"><div><br></div>-- <br>&quot;Attention, attention. Here and now, \
boys,&quot; the mynah repeated. &quot;Here and now, boys.&quot;<br>


</div>



_______________________________________________
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