[PyQt] Error when trying to build 5.8.2 from source

Dave Deters ddeters at rocklandflooring.com
Fri Jun 23 16:52:13 BST 2017


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


make[1]: Leaving directory

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

-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

pp: In function 'PyObject* meth_QNetworkRequest_sslConfigu

ration(PyObject*, PyObject*)':

pp:362:55: error: 'const class QNetworkRequest' has no mem

ber named 'sslConfiguration'

             sipRes = new  ::QSslConfiguration(sipCpp->sslConfiguration());


pp:362:73: error: invalid use of incomplete type 'class QS


             sipRes = new  ::QSslConfiguration(sipCpp->sslConfiguration());


In file included from

/usr/local/Qt-5.9.0/include/QtNetwork/qnetworkrequest.h:51:7: note: forward
declaration of 'class QSslConfiguration'

class QSslConfiguration;


pp: In function 'PyObject* meth_QNetworkRequest_setSslConf

iguration(PyObject*, PyObject*)':

pp:388:21: error: 'class QNetworkRequest' has no member na

med 'setSslConfiguration'



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.


Thanks in advance for any help that is provided,

Dave Deters


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170623/643a79f0/attachment.html>

More information about the PyQt mailing list