我在redhat 6上构建了pyqt4
与python2.7
。我已经从源代码安装了python2.7
,对于我尝试过的其他方法都可以正常工作。当我运行python2.7 configure.py
,我得到以下错误:无法在Linux上构建PYQT
\# python2.7 configure.py
确定你的Qt的安装布局...
错误:无法确定您的Qt的安装布局。请尝试使用--verbose
标志 再次查看有关该问题的更多详细信息。
我读过,解决这个问题的方法是,发出以下命令,这似乎工作:
\# python2.7 configure.py --qmake /usr/bin/qmake-qt4 -g
这成功完成。但是当我运行make时,出现以下错误。
make[1]: Entering directory /root/Downloads/PyQt-x11-gpl-4.11/qpy<br />
make[2]: Entering directory /root/Downloads/PyQt-x11-gpl-4.11/qpy/QtCore<br />
g++ -m64 -Wl,-O1 -o w_qpycore -lQtGui -lQtCore -lpthread<br />
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/crt1.o:<br />
In function _start: (.text+0x20): undefined reference to main<br />
collect2: ld returned 1 exit status<br />
make[2]: [w_qpycore] Error 1<br />
make[2]: Leaving directory /root/Downloads/PyQt-x11-gpl-4.11/qpy/QtCore<br />
make[1]: \*\*\* [all] Error 2<br />
make[1]: Leaving directory /root/Downloads/PyQt-x11-gpl-4.11/qpy<br />
make: \*\*\* [all] Error 2<br />
感谢您的任何帮助。 - 马克