2013-04-22 51 views
1

在构建/安装PyQt(从源代码或使用pip)时,如何指定本地Qt5安装的路径?构建PyQt以与Qt5一起使用

我建QT5从源(qt-everywhere-opensource-src-5.0.2.tar.gz)用下面的命令:

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 

如果我再cdqtbase我看到:

bin/ 
dist/ 
doc/ 
examples/ 
imports/ 
include/ 
lib/ 
etc ... 

望着PyQt4的installation instructions我找不到标志或一个选项来指定Qt安装的位置。

有没有办法告诉PyQt4在哪里可以找到Qt5?

注意:我没有root权限,需要在本地安装。

回答

3

配置PyQt4的:

python configure.py --qmake <path to your qt5 qmake> 
相关问题