[PyQt] Building PyQt to work with Qt5
Phil Thompson
phil at riverbankcomputing.com
Tue Apr 23 08:16:42 BST 2013
On Mon, 22 Apr 2013 18:53:35 -0400, James Jong <ribonucleico at gmail.com>
wrote:
> When building/installing PyQt (from source or using pip), how do I
specify
> the path to the local Qt5 installation?
>
> I built Qt5 from source
>
(qt-everywhere-opensource-src-5.0.2.tar.gz<http://download.qt-project.org/official_releases/qt/5.0/5.0.2/single/qt-everywhere-opensource-src-5.0.2.tar.gz>)
> with the following command:
>
> wget
>
http://download.qt-project.org/official_releases/qt/5.0/5.0.2/single/qt-everywhere-opensource-src-5.0.2.tar.gz
> tar -xvf qt-everywhere-opensource-src-5.0.2.tar.gz
>
> cd qt-everywhere-opensource-src-5.0.2./configure -prefix $PWD/qtbase
> -opensource -nomake tests
> make -j 4
>
> If I then cd into qtbase I see:
>
> bin/
> dist/
> doc/
> examples/
> imports/
> include/
> lib/
> etc ...
>
> Looking at the PyQt4 installation
> instructions<http://pyqt.sourceforge.net/Docs/PyQt4/installation.html>
> I
> could not find a flag or an option to specify the location of the Qt
> installation.
>
> Is there a way to tell PyQt4 where to find Qt5?
> Note: I left a copy of this thread on StackOverflow:
>
http://stackoverflow.com/questions/16154402/building-pyqt-to-work-with-qt5
>
> Thanks,
>
> Josh
Use the --qmake argument to configure.py or configure-ng.py.
Phil
More information about the PyQt
mailing list