[英]Building PyQt to work with Qt5
When building/installing PyQt (from source or using pip
), how do I specify the path to the local Qt5 installation? 在构建/安装PyQt时(从源代码或使用pip
),如何指定本地Qt5安装的路径?
I built Qt5 from source ( qt-everywhere-opensource-src-5.0.2.tar.gz ) with the following command: 我使用以下命令从源代码( qt-everywhere-opensource-src-5.0.2.tar.gz )构建了Qt5:
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: 如果我然后cd
到qtbase
我看到:
bin/
dist/
doc/
examples/
imports/
include/
lib/
etc ...
Looking at the PyQt4 installation instructions I could not find a flag or an option to specify the location of the Qt installation. 查看PyQt4 安装说明,我找不到标志或选项来指定Qt安装的位置。
Is there a way to tell PyQt4 where to find Qt5? 有没有办法告诉PyQt4在哪里可以找到Qt5?
Note: I do not have root privileges, and need to install this locally. 注意:我没有root权限,需要在本地安装。
配置PyQt4:
python configure.py --qmake <path to your qt5 qmake>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.