[PyQt] Error when trying to build 5.8.2 from source
Phil Thompson
phil at riverbankcomputing.com
Fri Jun 23 17:09:16 BST 2017
On 23 Jun 2017, at 4:52 pm, Dave Deters <ddeters at rocklandflooring.com> wrote:
>
> Hello,
> I am trying to build PyQt 5.8.2 from source on Ubuntu 16.04
>
> Configure.py runs without error, but when I run make I get the following errors:
>
> make[1]: Leaving directory '/home/dave/Downloads/PyQt5_gpl-5.8.2/QtMultimediaWidgets'
> cd QtNetwork/ && ( test -e Makefile || /usr/local/Qt-5.9.0/bin/qmake -o Makefile /home/dave/Downloads/PyQt5_gpl-5.8.2/QtNetwork/QtNetw
> ork.pro ) && make -f Makefile
> make[1]: Entering directory '/home/dave/Downloads/PyQt5_gpl-5.8.2/QtNetwork'
> g++ -c -pipe -O2 -std=gnu++11 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_EXCEPTI
> ONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/python3.5m -I/usr/local/Qt-5.9.0/include -I
> /usr/local/Qt-5.9.0/include/QtNetwork -I/usr/local/Qt-5.9.0/include/QtCore -I. -I/usr/local/Qt-5.9.0/mkspecs/linux-g++ -o sipQtNetwork
> QNetworkRequest.o sipQtNetworkQNetworkRequest.cpp
> /home/dave/Downloads/PyQt5_gpl-5.8.2/QtNetwork/sipQtNetworkQNetworkRequest.cpp: In function ‘PyObject* meth_QNetworkRequest_sslConfigu
> ration(PyObject*, PyObject*)’:
> /home/dave/Downloads/PyQt5_gpl-5.8.2/QtNetwork/sipQtNetworkQNetworkRequest.cpp:362:55: error: ‘const class QNetworkRequest’ has no mem
> ber named ‘sslConfiguration’
> sipRes = new ::QSslConfiguration(sipCpp->sslConfiguration());
> ^
> /home/dave/Downloads/PyQt5_gpl-5.8.2/QtNetwork/sipQtNetworkQNetworkRequest.cpp:362:73: error: invalid use of incomplete type ‘class QS
> slConfiguration’
> sipRes = new ::QSslConfiguration(sipCpp->sslConfiguration());
> ^
> In file included from /home/dave/Downloads/PyQt5_gpl-5.8.2/sip/QtNetwork/qnetworkrequest.sip:26:0:
> /usr/local/Qt-5.9.0/include/QtNetwork/qnetworkrequest.h:51:7: note: forward declaration of ‘class QSslConfiguration’
> class QSslConfiguration;
> ^
> /home/dave/Downloads/PyQt5_gpl-5.8.2/QtNetwork/sipQtNetworkQNetworkRequest.cpp: In function ‘PyObject* meth_QNetworkRequest_setSslConf
> iguration(PyObject*, PyObject*)’:
> /home/dave/Downloads/PyQt5_gpl-5.8.2/QtNetwork/sipQtNetworkQNetworkRequest.cpp:388:21: error: ‘class QNetworkRequest’ has no member na
> med ‘setSslConfiguration’
> sipCpp->setSslConfiguration(*a0);
> ^
> Makefile:971: recipe for target 'sipQtNetworkQNetworkRequest.o' failed
> make[1]: *** [sipQtNetworkQNetworkRequest.o] Error 1
> make[1]: Leaving directory '/home/dave/Downloads/PyQt5_gpl-5.8.2/QtNetwork'
> Makefile:295: recipe for target 'sub-QtNetwork-make_first-ordered' failed
> make: *** [sub-QtNetwork-make_first-ordered] Error 2
>
>
> I do not have a lot of experience developing on Linux and could use some help. I’ve searched the errors I am getting in the hope that someone had posted a solution, but I didn’t have any luck.
>
> I’m using Qt 5.9.0 which I have built from source.
...so you need to use the current PyQt snapshot (or compile Qt with SSL support).
Phil
More information about the PyQt
mailing list